Changeset 224225 in webkit


Ignore:
Timestamp:
Oct 31, 2017 1:39:38 AM (6 years ago)
Author:
rniwa@webkit.org
Message:

Assert that no script is executed during LayoutPhase::InRenderTreeLayout
https://bugs.webkit.org/show_bug.cgi?id=179046

Reviewed by Antti Koivisto.

Added NoEventDispatchAssertion to LayoutPhase::InRenderTreeLayout.

  • page/LayoutContext.cpp:

(WebCore::LayoutContext::layout):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r224224 r224225  
     12017-10-30  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Assert that no script is executed during LayoutPhase::InRenderTreeLayout
     4        https://bugs.webkit.org/show_bug.cgi?id=179046
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Added NoEventDispatchAssertion to LayoutPhase::InRenderTreeLayout.
     9
     10        * page/LayoutContext.cpp:
     11        (WebCore::LayoutContext::layout):
     12
    1132017-10-31  Devin Rousso  <webkit@devinrousso.com>
    214
  • trunk/Source/WebCore/page/LayoutContext.cpp

    r224150 r224225  
    3333#include "InspectorInstrumentation.h"
    3434#include "Logging.h"
     35#include "NoEventDispatchAssertion.h"
    3536#include "RenderElement.h"
    3637#include "RenderView.h"
     
    211212    {
    212213        SetForScope<LayoutPhase> layoutPhase(m_layoutPhase, LayoutPhase::InRenderTreeLayout);
    213    
     214        NoEventDispatchAssertion noEventDispatchAssertion;
    214215        SubtreeLayoutStateMaintainer subtreeLayoutStateMaintainer(subtreeLayoutRoot());
    215216        RenderView::RepaintRegionAccumulator repaintRegionAccumulator(renderView());
     
    223224#endif
    224225        clearSubtreeLayoutRoot();
    225 
    226226    }
    227227    {
Note: See TracChangeset for help on using the changeset viewer.