Title: [131739] trunk/Source/WebCore
- Revision
- 131739
- Author
- [email protected]
- Date
- 2012-10-18 06:22:36 -0700 (Thu, 18 Oct 2012)
Log Message
treeScopeOfParent doesn't return the TreeScope of the parent
https://bugs.webkit.org/show_bug.cgi?id=98207
Reviewed by Hajime Morita.
A minor clean up. Remove treeScopeOfParent() in Element.cpp.
No tests needed, this is just a clean up.
* dom/Element.cpp:
(WebCore::Element::removedFrom):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (131738 => 131739)
--- trunk/Source/WebCore/ChangeLog 2012-10-18 13:20:17 UTC (rev 131738)
+++ trunk/Source/WebCore/ChangeLog 2012-10-18 13:22:36 UTC (rev 131739)
@@ -1,3 +1,17 @@
+2012-10-18 Hayato Ito <[email protected]>
+
+ treeScopeOfParent doesn't return the TreeScope of the parent
+ https://bugs.webkit.org/show_bug.cgi?id=98207
+
+ Reviewed by Hajime Morita.
+
+ A minor clean up. Remove treeScopeOfParent() in Element.cpp.
+
+ No tests needed, this is just a clean up.
+
+ * dom/Element.cpp:
+ (WebCore::Element::removedFrom):
+
2012-10-18 Alexander Pavlov <[email protected]>
Web Inspector: [Styles] Forcibly invoke property names suggestion box for empty prefix
Modified: trunk/Source/WebCore/dom/Element.cpp (131738 => 131739)
--- trunk/Source/WebCore/dom/Element.cpp 2012-10-18 13:20:17 UTC (rev 131738)
+++ trunk/Source/WebCore/dom/Element.cpp 2012-10-18 13:22:36 UTC (rev 131739)
@@ -962,14 +962,6 @@
return InsertionDone;
}
-static inline TreeScope* treeScopeOfParent(Node* node, ContainerNode* insertionPoint)
-{
- if (Node* parent = node->parentNode())
- parent->treeScope();
- return insertionPoint->treeScope();
-}
-
-
void Element::removedFrom(ContainerNode* insertionPoint)
{
#if ENABLE(FULLSCREEN_API)
@@ -986,7 +978,7 @@
if (insertionPoint->inDocument()) {
const AtomicString& idValue = getIdAttribute();
if (!idValue.isNull() && inDocument())
- updateId(treeScopeOfParent(this, insertionPoint), idValue, nullAtom);
+ updateId(insertionPoint->treeScope(), idValue, nullAtom);
const AtomicString& nameValue = getNameAttribute();
if (!nameValue.isNull())
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes