Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118377

WebPage.scroll duplicates call to updateDirty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • 7u6
    • javafx
    • None
    • web

      As the matter of fact, the WebPage.scroll method called by the WebPage.updateContent method always calls the WebPage.updateDirty method as follows:

          updateDirty(null);

      Interestingly, the WebPage.updateContent method itself also calls the WebPage.updateDirty method, though a little differently:

         updateDirty(toPaint);

      So, if the WebPage.updateContent method happens to call the WebPage.scroll method one or more times, that results in WebPage.updateDirty being called multiple times.

      This looks like a problem as it should be sufficient to have just a single call to WebPage.updateDirty per WebPage.updateContent. Additionally, calling WebPage.updateDirty with a null argument does not feel right.

            ant Anton Tarasov (Inactive)
            vbaranov Vasiliy Baranov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: