Changeset 109417 in webkit


Ignore:
Timestamp:
Mar 1, 2012 1:53:23 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

:empty still applies to elements made non-empty via page dynamics.
https://bugs.webkit.org/show_bug.cgi?id=79734

Check for :empty style change should be made even if the RenderStyle for the element is NULL
as changes to the element's children can trigger a change in :empty state of the parent element.

Patch by Joe Thomas <joethomas@motorola.com> on 2012-03-01
Reviewed by Antti Koivisto.

Source/WebCore:

Test: fast/selectors/empty-element-made-non-empty.html

  • dom/Element.cpp:

(WebCore::checkForSiblingStyleChanges):

LayoutTests:

  • fast/selectors/empty-element-made-non-empty-expected.txt: Added.
  • fast/selectors/empty-element-made-non-empty.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r109402 r109417  
     12012-03-01  Joe Thomas  <joethomas@motorola.com>
     2
     3        :empty still applies to elements made non-empty via page dynamics.
     4        https://bugs.webkit.org/show_bug.cgi?id=79734
     5
     6        Check for :empty style change should be made even if the RenderStyle for the element is NULL
     7        as changes to the element's children can trigger a change in :empty state of the parent element.
     8
     9        Reviewed by Antti Koivisto.
     10
     11        * fast/selectors/empty-element-made-non-empty-expected.txt: Added.
     12        * fast/selectors/empty-element-made-non-empty.html: Added.
     13
    1142012-03-01  Kangil Han  <kangil.han@samsung.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r109411 r109417  
     12012-03-01  Joe Thomas  <joethomas@motorola.com>
     2
     3        :empty still applies to elements made non-empty via page dynamics.
     4        https://bugs.webkit.org/show_bug.cgi?id=79734
     5
     6        Check for :empty style change should be made even if the RenderStyle for the element is NULL
     7        as changes to the element's children can trigger a change in :empty state of the parent element.
     8
     9        Reviewed by Antti Koivisto.
     10
     11        Test: fast/selectors/empty-element-made-non-empty.html
     12
     13        * dom/Element.cpp:
     14        (WebCore::checkForSiblingStyleChanges):
     15
    1162012-02-29  Nat Duca  <nduca@chromium.org>
    217
  • trunk/Source/WebCore/dom/Element.cpp

    r109285 r109417  
    12161216                                        Node* beforeChange, Node* afterChange, int childCountDelta)
    12171217{
     1218    // :empty selector.
     1219    checkForEmptyStyleChange(e, style);
     1220   
    12181221    if (!style || (e->needsStyleRecalc() && style->childrenAffectedByPositionalRules()))
    12191222        return;
     
    12871290        (style->childrenAffectedByBackwardPositionalRules() && beforeChange))
    12881291        e->setNeedsStyleRecalc();
    1289    
    1290     // :empty selector.
    1291     checkForEmptyStyleChange(e, style);
    12921292}
    12931293
Note: See TracChangeset for help on using the changeset viewer.