Changeset 158099 in webkit


Ignore:
Timestamp:
Oct 27, 2013, 5:17:44 PM (12 years ago)
Author:
akling@apple.com
Message:

Tone down overzealous assertion from r158097.

RenderElement::initializeStyle() really only cares that there are no
text renderers that we should be calling styleDidChange() on.

Tweak the code to only check that there are no text children.

  • rendering/RenderElement.cpp:

(WebCore::RenderElement::initializeStyle):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r158098 r158099  
     12013-10-27  Andreas Kling  <akling@apple.com>
     2
     3        Tone down overzealous assertion from r158097.
     4
     5        RenderElement::initializeStyle() really only cares that there are no
     6        text renderers that we should be calling styleDidChange() on.
     7
     8        Tweak the code to only check that there are no text children.
     9
     10        * rendering/RenderElement.cpp:
     11        (WebCore::RenderElement::initializeStyle):
     12
    1132013-10-27  Antti Koivisto  <antti@apple.com>
    214
  • trunk/Source/WebCore/rendering/RenderElement.cpp

    r158097 r158099  
    373373    styleDidChange(StyleDifferenceEqual, nullptr);
    374374
    375     // We shouldn't have any text (or other) children that need styleDidChange at this point.
    376     ASSERT(!firstChild());
     375#if !ASSERT_DISABLED
     376    // We shouldn't have any text children that would need styleDidChange at this point.
     377    for (RenderObject* child = firstChild(); child; child = child->nextSibling())
     378        ASSERT(!child->isText());
     379#endif
    377380
    378381    // It would be nice to assert that !parent() here, but some RenderLayer subrenderers
Note: See TracChangeset for help on using the changeset viewer.