Changeset 167705 in webkit


Ignore:
Timestamp:
Apr 23, 2014 5:30:22 AM (10 years ago)
Author:
abucur@adobe.com
Message:

[CSS Regions] Improve the debugging infrastructure
https://bugs.webkit.org/show_bug.cgi?id=132042

Reviewed by Mihnea Ovidenie.

This patch improves the debugging code for CSS Regions.

Tests: No function change. No new tests.

  • rendering/RenderObject.cpp:

(WebCore::RenderObject::showRegionsInformation): Print brackets around the region range when dumping
the render tree to the console.

  • rendering/RootInlineBox.cpp:

(WebCore::RootInlineBox::containingRegion): Convert the ASSERT to an ASSERT_WITH_SECURITY_IMPLICATION.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r167700 r167705  
     12014-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
    1182014-04-22  Ryosuke Niwa  <rniwa@webkit.org>
    219
  • trunk/Source/WebCore/rendering/RenderObject.cpp

    r167652 r167705  
    14271427            RenderRegion* endRegion = nullptr;
    14281428            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);
    14301430        }
    14311431    }
  • trunk/Source/WebCore/rendering/RootInlineBox.cpp

    r165214 r167705  
    219219RenderRegion* RootInlineBox::containingRegion() const
    220220{
     221    RenderRegion* region = m_hasContainingRegion ? containingRegionMap().get(this) : nullptr;
     222
    221223#ifndef NDEBUG
    222224    if (m_hasContainingRegion) {
    223225        RenderFlowThread* flowThread = blockFlow().flowThreadContainingBlock();
    224226        const RenderRegionList& regionList = flowThread->renderRegionList();
    225         ASSERT(regionList.contains(containingRegionMap().get(this)));
     227        ASSERT_WITH_SECURITY_IMPLICATION(regionList.contains(region));
    226228    }
    227229#endif
    228     return m_hasContainingRegion ? containingRegionMap().get(this) : nullptr;
     230
     231    return region;
    229232}
    230233
Note: See TracChangeset for help on using the changeset viewer.