Changeset 223194 in webkit
- Timestamp:
- Oct 11, 2017 11:32:58 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r223193 r223194 1 2017-10-11 Antti Koivisto <antti@apple.com> 2 3 Remove some obsolete layout assertions 4 https://bugs.webkit.org/show_bug.cgi?id=178170 5 6 Reviewed by Zalan Bujtas. 7 8 We have strong assertions against render tree mutation functions being called in layout. These are unnecessary. 9 10 * rendering/RenderBoxModelObject.cpp: 11 (WebCore::RenderBoxModelObject::moveChildTo): 12 * rendering/RenderElement.cpp: 13 (WebCore::RenderElement::takeChildInternal): 14 * rendering/RenderElement.h: 15 * rendering/RenderListItem.cpp: 16 (WebCore::RenderListItem::layout): 17 * rendering/RenderListItem.h: 18 1 19 2017-10-11 Andy Estes <aestes@apple.com> 2 20 -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r223131 r223194 2586 2586 void RenderBoxModelObject::moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child, RenderObject* beforeChild, bool fullRemoveInsert) 2587 2587 { 2588 #if !ASSERT_DISABLED2589 SetForScope<bool> reparentingChild(m_reparentingChild, true);2590 #endif2591 2588 // We assume that callers have cleared their positioned objects list for child moves (!fullRemoveInsert) so the 2592 2589 // positioned renderer maps don't become stale. It would be too slow to do the map lookup on each call. -
trunk/Source/WebCore/rendering/RenderElement.cpp
r223127 r223194 86 86 void* lastChild; 87 87 RenderStyle style; 88 #if !ASSERT_DISABLED89 bool reparentingChild;90 #endif91 88 }; 92 89 … … 635 632 if (AXObjectCache* cache = document().existingAXObjectCache()) 636 633 cache->childrenChanged(this); 637 #if !ASSERT_DISABLED638 // Check if the marker gets detached while laying out the list item.639 if (is<RenderListMarker>(oldChild))640 ASSERT(m_reparentingChild || !downcast<RenderListMarker>(oldChild).listItem().inLayout());641 #endif642 634 643 635 return RenderPtr<RenderObject>(&oldChild); -
trunk/Source/WebCore/rendering/RenderElement.h
r223127 r223194 359 359 static bool s_affectsParentBlock; 360 360 static bool s_noLongerAffectsParentBlock; 361 362 protected:363 #if !ASSERT_DISABLED364 bool m_reparentingChild { false };365 #endif366 361 }; 367 362 -
trunk/Source/WebCore/rendering/RenderListItem.cpp
r222936 r223194 235 235 ASSERT(needsLayout()); 236 236 237 #if !ASSERT_DISABLED238 SetForScope<bool> inListItemLayout(m_inLayout, true);239 #endif240 237 RenderBlockFlow::layout(); 241 238 } -
trunk/Source/WebCore/rendering/RenderListItem.h
r222936 r223194 60 60 void setMarkerRenderer(RenderListMarker& marker) { m_marker = makeWeakPtr(marker); } 61 61 62 #if !ASSERT_DISABLED63 bool inLayout() const { return m_inLayout; }64 #endif65 66 62 private: 67 63 void willBeDestroyed() override; … … 91 87 WeakPtr<RenderListMarker> m_marker; 92 88 mutable int m_value; 93 #if !ASSERT_DISABLED94 bool m_inLayout { false };95 #endif96 89 bool m_hasExplicitValue : 1; 97 90 mutable bool m_isValueUpToDate : 1;
Note: See TracChangeset
for help on using the changeset viewer.