Changeset 245396 in webkit


Ignore:
Timestamp:
May 16, 2019 6:54:56 AM (5 years ago)
Author:
ajuma@chromium.org
Message:

[IntersectionObserver] Regression: No initial observation when nothing else triggers rendering
https://bugs.webkit.org/show_bug.cgi?id=197891

Reviewed by Simon Fraser.

Source/WebCore:

Schedule a rendering update whenever a new IntersectionObserver target is added.

Test: intersection-observer/initial-observation.html

  • page/IntersectionObserver.cpp:

(WebCore::IntersectionObserver::observe):

LayoutTests:

Add a test where other timers that can schedule rendering updates are disabled,
in order to verify that IntersectionObserver is scheduling rendering updates
itself.

  • intersection-observer/initial-observation.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245366 r245396  
     12019-05-16  Ali Juma  <ajuma@chromium.org>
     2
     3        [IntersectionObserver] Regression: No initial observation when nothing else triggers rendering
     4        https://bugs.webkit.org/show_bug.cgi?id=197891
     5
     6        Reviewed by Simon Fraser.
     7
     8        Add a test where other timers that can schedule rendering updates are disabled,
     9        in order to verify that IntersectionObserver is scheduling rendering updates
     10        itself.
     11
     12        * intersection-observer/initial-observation.html: Added.
     13
    1142019-05-15  Devin Rousso  <drousso@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r245393 r245396  
     12019-05-16  Ali Juma  <ajuma@chromium.org>
     2
     3        [IntersectionObserver] Regression: No initial observation when nothing else triggers rendering
     4        https://bugs.webkit.org/show_bug.cgi?id=197891
     5
     6        Reviewed by Simon Fraser.
     7
     8        Schedule a rendering update whenever a new IntersectionObserver target is added.
     9
     10        Test: intersection-observer/initial-observation.html
     11
     12        * page/IntersectionObserver.cpp:
     13        (WebCore::IntersectionObserver::observe):
     14
    1152019-05-16  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebCore/page/IntersectionObserver.cpp

    r244182 r245396  
    159159    if (!hadObservationTargets)
    160160        document->addIntersectionObserver(*this);
     161    document->scheduleRenderingUpdate();
    161162}
    162163
Note: See TracChangeset for help on using the changeset viewer.