Changeset 167705 in webkit
- Timestamp:
- Apr 23, 2014 5:30:22 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r167700 r167705 1 2014-04-23 Andrei Bucur <abucur@adobe.com> 2 3 [CSS Regions] Improve the debugging infrastructure 4 https://bugs.webkit.org/show_bug.cgi?id=132042 5 6 Reviewed by Mihnea Ovidenie. 7 8 This patch improves the debugging code for CSS Regions. 9 10 Tests: No function change. No new tests. 11 12 * rendering/RenderObject.cpp: 13 (WebCore::RenderObject::showRegionsInformation): Print brackets around the region range when dumping 14 the render tree to the console. 15 * rendering/RootInlineBox.cpp: 16 (WebCore::RootInlineBox::containingRegion): Convert the ASSERT to an ASSERT_WITH_SECURITY_IMPLICATION. 17 1 18 2014-04-22 Ryosuke Niwa <rniwa@webkit.org> 2 19 -
trunk/Source/WebCore/rendering/RenderObject.cpp
r167652 r167705 1427 1427 RenderRegion* endRegion = nullptr; 1428 1428 flowThread->getRegionRangeForBox(box, startRegion, endRegion); 1429 printedCharacters += fprintf(stderr, " Rs:%p Re:%p", startRegion, endRegion);1429 printedCharacters += fprintf(stderr, " [Rs:%p Re:%p]", startRegion, endRegion); 1430 1430 } 1431 1431 } -
trunk/Source/WebCore/rendering/RootInlineBox.cpp
r165214 r167705 219 219 RenderRegion* RootInlineBox::containingRegion() const 220 220 { 221 RenderRegion* region = m_hasContainingRegion ? containingRegionMap().get(this) : nullptr; 222 221 223 #ifndef NDEBUG 222 224 if (m_hasContainingRegion) { 223 225 RenderFlowThread* flowThread = blockFlow().flowThreadContainingBlock(); 224 226 const RenderRegionList& regionList = flowThread->renderRegionList(); 225 ASSERT (regionList.contains(containingRegionMap().get(this)));227 ASSERT_WITH_SECURITY_IMPLICATION(regionList.contains(region)); 226 228 } 227 229 #endif 228 return m_hasContainingRegion ? containingRegionMap().get(this) : nullptr; 230 231 return region; 229 232 } 230 233
Note: See TracChangeset
for help on using the changeset viewer.