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

TextFlow is layed out on each pulse

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • tbd
    • 9
    • javafx

    Description

      This is another performance regression from the JDK-8137252.
      Run hello.HelloTextFlow with -Djavafx.pulseLogger=true and observe that there is a constant stream of pulses.
      Copying the comment from related JDK-8164933:
      In the fix for JDK-8137252 new method Parent.requestLayout(boolean) was introduced and it is called in some cases instead of old Parent.requestLayout()
      But some classes (Axis and TextFlow are the examples) override requestLayout and do some tricks to modify layout behaviour.
      So before the fix for example Node.doNotifyLayoutBoundsChanged was calling requestLayout and if parent has it overridden, it modified the behaviour.
      But now the requestLayout(boolean) is called so overridden method is not called hence the bug.

      Attachments

        Issue Links

          Activity

            People

              ckyang Chien Yang (Inactive)
              vadim Vadim Pakhnushev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: