Changeset 107005 in webkit


Ignore:
Timestamp:
Feb 7, 2012 4:14:42 PM (12 years ago)
Author:
leviw@chromium.org
Message:

[SVG] Use element disappears after scripted change
https://bugs.webkit.org/show_bug.cgi?id=74392

Reviewed by Eric Seidel.

Source/WebCore:

Solution uncovered by Nikolas Zimmermann. Removing an early return that caused
SVGUseElements to not update the shadow root's style, and therefor not render
correctly.

Test: svg/custom/use-disappears-after-style-update.svg

  • svg/SVGUseElement.cpp:

(WebCore::SVGUseElement::didRecalcStyle):

LayoutTests:

  • platform/mac-snowleopard/svg/custom/use-disappears-after-style-update-expected.png: Added.
  • platform/mac-snowleopard/svg/custom/use-disappears-after-style-update-expected.txt: Added.
  • svg/custom/use-disappears-after-style-update.svg: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r107000 r107005  
     12012-02-07  Levi Weintraub  <leviw@chromium.org>
     2
     3        [SVG] Use element disappears after scripted change
     4        https://bugs.webkit.org/show_bug.cgi?id=74392
     5
     6        Reviewed by Eric Seidel.
     7
     8        * platform/mac-snowleopard/svg/custom/use-disappears-after-style-update-expected.png: Added.
     9        * platform/mac-snowleopard/svg/custom/use-disappears-after-style-update-expected.txt: Added.
     10        * svg/custom/use-disappears-after-style-update.svg: Added.
     11
    1122012-02-07  Levi Weintraub  <leviw@chromium.org>
    213
  • trunk/Source/WebCore/ChangeLog

    r107004 r107005  
     12012-02-07  Levi Weintraub  <leviw@chromium.org>
     2
     3        [SVG] Use element disappears after scripted change
     4        https://bugs.webkit.org/show_bug.cgi?id=74392
     5
     6        Reviewed by Eric Seidel.
     7
     8        Solution uncovered by Nikolas Zimmermann. Removing an early return that caused
     9        SVGUseElements to not update the shadow root's style, and therefor not render
     10        correctly.
     11
     12        Test: svg/custom/use-disappears-after-style-update.svg
     13
     14        * svg/SVGUseElement.cpp:
     15        (WebCore::SVGUseElement::didRecalcStyle):
     16
    1172012-02-07  Kentaro Hara  <haraken@chromium.org>
    218
  • trunk/Source/WebCore/svg/SVGUseElement.cpp

    r106769 r107005  
    359359        return;
    360360   
    361     bool needsStyleUpdate = !m_needsShadowTreeRecreation;
    362361    if (m_needsShadowTreeRecreation) {
    363362        shadowRoot->markShadowTreeForRecreation();
     
    366365
    367366    shadowRoot->updateFromElement();
    368 
    369     if (!needsStyleUpdate)
    370         return;
    371 
    372367    shadowRoot->updateStyle(change);
    373368}
Note: See TracChangeset for help on using the changeset viewer.