Changeset 92744 in webkit


Ignore:
Timestamp:
Aug 9, 2011 7:04:06 PM (13 years ago)
Author:
abarth@webkit.org
Message:

Source/WebCore: Style change not propagating for before, after content
for table parts.
https://bugs.webkit.org/show_bug.cgi?id=51862

Fix by Chris Evans (cevans@chromium.org).
In the table case, make sure to return the before /
after parent rather then the before / after node
itself.

Patch by Abhishek Arya <inferno@chromium.org> on 2011-08-09
Reviewed by Simon Fraser.

  • rendering/RenderObjectChildList.cpp:

(WebCore::findBeforeAfterParent):

LayoutTests: Fix functional bug where style change was not getting propogated to before, after
content.
https://bugs.webkit.org/show_bug.cgi?id=51862

Patch by Abhishek Arya <inferno@chromium.org> on 2011-08-09
Reviewed by Simon Fraser.

  • platform/mac/fast/css-generated-content/table-row-before-after-child-add-expected.png:
  • platform/mac/fast/css-generated-content/table-table-before-after-child-add-expected.png:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r92741 r92744  
     12011-08-09  Abhishek Arya  <inferno@chromium.org>
     2
     3        Fix functional bug where style change was not getting propogated to before, after
     4        content.
     5        https://bugs.webkit.org/show_bug.cgi?id=51862
     6
     7        Reviewed by Simon Fraser.
     8
     9        * platform/mac/fast/css-generated-content/table-row-before-after-child-add-expected.png:
     10        * platform/mac/fast/css-generated-content/table-table-before-after-child-add-expected.png:
     11
    1122011-08-09  Kent Tamura  <tkent@chromium.org>
    213
  • trunk/Source/WebCore/ChangeLog

    r92742 r92744  
     12011-08-09  Abhishek Arya  <inferno@chromium.org>
     2
     3        Style change not propagating for before, after content
     4        for table parts.
     5        https://bugs.webkit.org/show_bug.cgi?id=51862
     6
     7        Fix by Chris Evans (cevans@chromium.org).
     8        In the table case, make sure to return the before /
     9        after parent rather then the before / after node
     10        itself.
     11
     12        Reviewed by Simon Fraser.
     13
     14        * rendering/RenderObjectChildList.cpp:
     15        (WebCore::findBeforeAfterParent):
     16
    1172011-08-09  Luke Macpherson   <macpherson@chromium.org>
    218
  • trunk/Source/WebCore/rendering/RenderObjectChildList.cpp

    r92200 r92744  
    259259    while (beforeAfterParent && !(beforeAfterParent->isText() || beforeAfterParent->isImage()))
    260260        beforeAfterParent = beforeAfterParent->firstChild();
    261     return beforeAfterParent;
     261    return beforeAfterParent ? beforeAfterParent->parent() : 0;
    262262}
    263263
Note: See TracChangeset for help on using the changeset viewer.