Title: [190995] trunk/Source/WebCore
Revision
190995
Author
[email protected]
Date
2015-10-13 11:34:22 -0700 (Tue, 13 Oct 2015)

Log Message

Try to fix ENABLE(DETAILS_ELEMENT) with SHADOW_DOM disabled.

* dom/Element.cpp:
(WebCore::Element::attributeChanged):
* dom/Node.cpp:
(WebCore::traverseStyleParent):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (190994 => 190995)


--- trunk/Source/WebCore/ChangeLog	2015-10-13 18:05:17 UTC (rev 190994)
+++ trunk/Source/WebCore/ChangeLog	2015-10-13 18:34:22 UTC (rev 190995)
@@ -1,3 +1,12 @@
+2015-10-13  Antti Koivisto  <[email protected]>
+
+        Try to fix ENABLE(DETAILS_ELEMENT) with SHADOW_DOM disabled.
+
+        * dom/Element.cpp:
+        (WebCore::Element::attributeChanged):
+        * dom/Node.cpp:
+        (WebCore::traverseStyleParent):
+
 2015-10-13  Youenn Fablet  <[email protected]>
 
         Fix license and copyrights of WebCore js binding builtin files

Modified: trunk/Source/WebCore/dom/Element.cpp (190994 => 190995)


--- trunk/Source/WebCore/dom/Element.cpp	2015-10-13 18:05:17 UTC (rev 190994)
+++ trunk/Source/WebCore/dom/Element.cpp	2015-10-13 18:34:22 UTC (rev 190995)
@@ -1235,7 +1235,7 @@
             elementData()->setHasNameAttribute(!newValue.isNull());
         else if (name == HTMLNames::pseudoAttr)
             shouldInvalidateStyle |= testShouldInvalidateStyle && isInShadowTree();
-#if ENABLE(SHADOW_DOM)
+#if ENABLE(SHADOW_DOM) || ENABLE(DETAILS_ELEMENT)
         else if (name == HTMLNames::slotAttr) {
             if (auto* parent = parentElement()) {
                 if (auto* shadowRoot = parent->shadowRoot())

Modified: trunk/Source/WebCore/dom/Node.cpp (190994 => 190995)


--- trunk/Source/WebCore/dom/Node.cpp	2015-10-13 18:05:17 UTC (rev 190994)
+++ trunk/Source/WebCore/dom/Node.cpp	2015-10-13 18:34:22 UTC (rev 190995)
@@ -749,7 +749,7 @@
             return downcast<ShadowRoot>(node).host();
         return nullptr;
     }
-#if ENABLE(SHADOW_DOM)
+#if ENABLE(SHADOW_DOM) || ENABLE(DETAILS_ELEMENT)
     if (auto* shadowRoot = parent->shadowRoot()) {
         if (auto* assignedSlot = shadowRoot->findAssignedSlot(node))
             return assignedSlot;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to