⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 126919 in webkit


Ignore:
Timestamp:
Aug 28, 2012, 1:10:49 PM (14 years ago)
Author:
Simon Fraser
Message:

Regression (r126774): Crash when scrolling after removing sticky element.
https://bugs.webkit.org/show_bug.cgi?id=95174

Reviewed by Abhishek Arya.

Source/WebCore:

RenderBox::willBeDestroyed() needs to check for both fixed and sticky
position to determine whether to remove an object from FrameView's
set of fixed objects.

Test: fast/css/sticky/remove-sticky-crash.html

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::willBeDestroyed):

LayoutTests:

Testcase with JS that removes a position:sticky element, then scrolls.

  • fast/css/sticky/remove-sticky-crash-expected.txt: Added.
  • fast/css/sticky/remove-sticky-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r126916 r126919  
     12012-08-28  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Regression (r126774): Crash when scrolling after removing sticky element.
     4        https://bugs.webkit.org/show_bug.cgi?id=95174
     5
     6        Reviewed by Abhishek Arya.
     7
     8        Testcase with JS that removes a position:sticky element, then scrolls.
     9
     10        * fast/css/sticky/remove-sticky-crash-expected.txt: Added.
     11        * fast/css/sticky/remove-sticky-crash.html: Added.
     12
    1132012-08-28  Robert Hogan  <robert@webkit.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r126914 r126919  
     12012-08-28  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Regression (r126774): Crash when scrolling after removing sticky element.
     4        https://bugs.webkit.org/show_bug.cgi?id=95174
     5
     6        Reviewed by Abhishek Arya.
     7
     8        RenderBox::willBeDestroyed() needs to check for both fixed and sticky
     9        position to determine whether to remove an object from FrameView's
     10        set of fixed objects.
     11
     12        Test: fast/css/sticky/remove-sticky-crash.html
     13
     14        * rendering/RenderBox.cpp:
     15        (WebCore::RenderBox::willBeDestroyed):
     16
    1172012-08-28  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
    218
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r126859 r126919  
    140140        if (RenderView* view = this->view()) {
    141141            if (FrameView* frameView = view->frameView()) {
    142                 if (style()->position() == FixedPosition)
     142                if (style()->hasViewportConstrainedPosition())
    143143                    frameView->removeFixedObject(this);
    144144            }
Note: See TracChangeset for help on using the changeset viewer.