Changeset 243035 in webkit


Ignore:
Timestamp:
Mar 16, 2019 12:37:24 AM (5 years ago)
Author:
rniwa@webkit.org
Message:

Remove LayoutAssertionDisableScope after r241289
https://bugs.webkit.org/show_bug.cgi?id=195848

Reviewed by Antti Koivisto.

Remove LayoutAssertionDisableScope for good now that the underlying bug has been fixed in r241289.

  • dom/Document.cpp:

(WebCore::isSafeToUpdateStyleOrLayout):

  • dom/ScriptDisallowedScope.h:

(WebCore::ScriptDisallowedScope::LayoutAssertionDisableScope): Deleted.

  • page/FrameViewLayoutContext.cpp:

(WebCore::FrameViewLayoutContext::layout):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r243033 r243035  
     12019-03-16  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Remove LayoutAssertionDisableScope after r241289
     4        https://bugs.webkit.org/show_bug.cgi?id=195848
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Remove LayoutAssertionDisableScope for good now that the underlying bug has been fixed in r241289.
     9
     10        * dom/Document.cpp:
     11        (WebCore::isSafeToUpdateStyleOrLayout):
     12        * dom/ScriptDisallowedScope.h:
     13        (WebCore::ScriptDisallowedScope::LayoutAssertionDisableScope): Deleted.
     14        * page/FrameViewLayoutContext.cpp:
     15        (WebCore::FrameViewLayoutContext::layout):
     16
    1172019-03-15  Eric Carlson  <eric.carlson@apple.com>
    218
  • trunk/Source/WebCore/dom/Document.cpp

    r242964 r243035  
    334334bool Document::hasEverCreatedAnAXObjectCache = false;
    335335
    336 unsigned ScriptDisallowedScope::LayoutAssertionDisableScope::s_layoutAssertionDisableCount = 0;
    337 
    338336// DOM Level 2 says (letters added):
    339337//
     
    20322030    auto* frameView = document.view();
    20332031    bool isInFrameFlattening = frameView && frameView->isInChildFrameWithFrameFlattening();
    2034     bool isAssertionDisabled = ScriptDisallowedScope::LayoutAssertionDisableScope::shouldDisable();
    2035     return isSafeToExecuteScript || isInFrameFlattening || !isInWebProcess() || isAssertionDisabled;
     2032    return isSafeToExecuteScript || isInFrameFlattening || !isInWebProcess();
    20362033}
    20372034
  • trunk/Source/WebCore/dom/ScriptDisallowedScope.h

    r239529 r243035  
    163163    };
    164164
    165     // FIXME: Remove all uses of this class.
    166     class LayoutAssertionDisableScope {
    167     public:
    168         LayoutAssertionDisableScope()
    169         {
    170             s_layoutAssertionDisableCount++;
    171         }
    172 
    173         ~LayoutAssertionDisableScope()
    174         {
    175             s_layoutAssertionDisableCount--;
    176         }
    177 
    178         static bool shouldDisable() { return s_layoutAssertionDisableCount; }
    179 
    180     private:
    181         static unsigned s_layoutAssertionDisableCount;
    182     };
    183 
    184165private:
    185166    WEBCORE_EXPORT static unsigned s_count;
  • trunk/Source/WebCore/page/FrameViewLayoutContext.cpp

    r240912 r243035  
    149149    LOG_WITH_STREAM(Layout, stream << "FrameView " << &view() << " FrameViewLayoutContext::layout() with size " << view().layoutSize());
    150150
    151     RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(!frame().document()->inRenderTreeUpdate() || ScriptDisallowedScope::LayoutAssertionDisableScope::shouldDisable());
     151    RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(!frame().document()->inRenderTreeUpdate());
    152152    ASSERT(LayoutDisallowedScope::isLayoutAllowed());
    153153    ASSERT(!view().isPainting());
Note: See TracChangeset for help on using the changeset viewer.