Changeset 121344 in webkit


Ignore:
Timestamp:
Jun 27, 2012, 8:18:07 AM (13 years ago)
Author:
shinyak@chromium.org
Message:

HTMLStyleElement::removedFrom seems incorrect.
https://bugs.webkit.org/show_bug.cgi?id=89986

Reviewed by Hajime Morita.

This is a follow-up patch for Bug 88495. The Same bug as Bug 88495 seems to exist on
HTMLStyleElement::removedFrom().

No new tests, hard to write a test case.

  • html/HTMLStyleElement.cpp:

(WebCore::HTMLStyleElement::removedFrom):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r121343 r121344  
     12012-06-27  Shinya Kawanaka  <shinyak@chromium.org>
     2
     3        HTMLStyleElement::removedFrom seems incorrect.
     4        https://bugs.webkit.org/show_bug.cgi?id=89986
     5
     6        Reviewed by Hajime Morita.
     7
     8        This is a follow-up patch for Bug 88495. The Same bug as Bug 88495 seems to exist on
     9        HTMLStyleElement::removedFrom().
     10
     11        No new tests, hard to write a test case.
     12
     13        * html/HTMLStyleElement.cpp:
     14        (WebCore::HTMLStyleElement::removedFrom):
     15
    1162012-06-27  Mike Reed  <reed@google.com>
    217
  • trunk/Source/WebCore/html/HTMLStyleElement.cpp

    r120168 r121344  
    200200    // we'd need to find a way to discern whether that is the case, or whether <style scoped> itself is about to be removed.
    201201    if (m_scopedStyleRegistrationState != NotRegistered) {
    202         ContainerNode* scope = parentNode()? parentNode() : insertionPoint;
    203         if (m_scopedStyleRegistrationState == RegisteredInShadowRoot)
    204             scope = scope->shadowRoot();
     202        ContainerNode* scope;
     203        if (m_scopedStyleRegistrationState == RegisteredInShadowRoot) {
     204            scope = shadowRoot();
     205            if (!scope)
     206                scope = insertionPoint->shadowRoot();
     207        } else
     208            scope = parentNode() ? parentNode() : insertionPoint;
    205209        unregisterWithScopingNode(scope);
    206210    }
Note: See TracChangeset for help on using the changeset viewer.