Changeset 243035 in webkit
- Timestamp:
- Mar 16, 2019 12:37:24 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r243033 r243035 1 2019-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 1 17 2019-03-15 Eric Carlson <eric.carlson@apple.com> 2 18 -
trunk/Source/WebCore/dom/Document.cpp
r242964 r243035 334 334 bool Document::hasEverCreatedAnAXObjectCache = false; 335 335 336 unsigned ScriptDisallowedScope::LayoutAssertionDisableScope::s_layoutAssertionDisableCount = 0;337 338 336 // DOM Level 2 says (letters added): 339 337 // … … 2032 2030 auto* frameView = document.view(); 2033 2031 bool isInFrameFlattening = frameView && frameView->isInChildFrameWithFrameFlattening(); 2034 bool isAssertionDisabled = ScriptDisallowedScope::LayoutAssertionDisableScope::shouldDisable(); 2035 return isSafeToExecuteScript || isInFrameFlattening || !isInWebProcess() || isAssertionDisabled; 2032 return isSafeToExecuteScript || isInFrameFlattening || !isInWebProcess(); 2036 2033 } 2037 2034 -
trunk/Source/WebCore/dom/ScriptDisallowedScope.h
r239529 r243035 163 163 }; 164 164 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 184 165 private: 185 166 WEBCORE_EXPORT static unsigned s_count; -
trunk/Source/WebCore/page/FrameViewLayoutContext.cpp
r240912 r243035 149 149 LOG_WITH_STREAM(Layout, stream << "FrameView " << &view() << " FrameViewLayoutContext::layout() with size " << view().layoutSize()); 150 150 151 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(!frame().document()->inRenderTreeUpdate() || ScriptDisallowedScope::LayoutAssertionDisableScope::shouldDisable());151 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(!frame().document()->inRenderTreeUpdate()); 152 152 ASSERT(LayoutDisallowedScope::isLayoutAllowed()); 153 153 ASSERT(!view().isPainting());
Note: See TracChangeset
for help on using the changeset viewer.