Changeset 177244 in webkit


Ignore:
Timestamp:
Dec 12, 2014 3:38:36 PM (9 years ago)
Author:
Simon Fraser
Message:

REGRESSION (r168217): Images are cropped out during animation at jetblue.com
https://bugs.webkit.org/show_bug.cgi?id=136410

Reviewed by Dean Jackson.

We were hitting the new assertion under Page::setPageScaleFactor(), which
calls recalcStyle(), so move the AnimationUpdateBlock from updateStyleIfNeeded()
to recalcStyle().

  • dom/Document.cpp:

(WebCore::Document::recalcStyle):
(WebCore::Document::updateStyleIfNeeded):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r177243 r177244  
    1515        * page/FrameView.cpp:
    1616        (WebCore::FrameView::scrollContentsFastPath):
     17
     182014-12-12  Simon Fraser  <simon.fraser@apple.com>
     19
     20        REGRESSION (r168217): Images are cropped out during animation at jetblue.com
     21        https://bugs.webkit.org/show_bug.cgi?id=136410
     22
     23        Reviewed by Dean Jackson.
     24
     25        We were hitting the new assertion under Page::setPageScaleFactor(), which
     26        calls recalcStyle(), so move the AnimationUpdateBlock from updateStyleIfNeeded()
     27        to recalcStyle().
     28
     29        * dom/Document.cpp:
     30        (WebCore::Document::recalcStyle):
     31        (WebCore::Document::updateStyleIfNeeded):
    1732
    18332014-12-12  Simon Fraser  <simon.fraser@apple.com>
  • trunk/Source/WebCore/dom/Document.cpp

    r177048 r177244  
    17661766
    17671767    RenderView::RepaintRegionAccumulator repaintRegionAccumulator(renderView());
     1768    AnimationUpdateBlock animationUpdateBlock(&m_frame->animation());
    17681769
    17691770    // FIXME: We should update style on our ancestor chain before proceeding (especially for seamless),
     
    18381839        return;
    18391840
    1840     AnimationUpdateBlock animationUpdateBlock(m_frame ? &m_frame->animation() : nullptr);
    18411841    recalcStyle(Style::NoChange);
    18421842}
Note: See TracChangeset for help on using the changeset viewer.