Remove redundant Document::getElementById
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Oct 2013 07:02:55 +0000 (07:02 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Oct 2013 07:02:55 +0000 (07:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=122813

Reviewed by Andreas Kling.

Merge https://chromium.googlesource.com/chromium/blink/+/4e8f1c5316415614b84370c602beae4a1008299f

This function simply calls virtual TreeScope::getElementById and Document inherits from TreeScope.

* WebCore.exp.in:
* dom/Document.cpp:
* dom/Document.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157444 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h

index 321142d..3c32310 100644 (file)
@@ -1,3 +1,18 @@
+2013-10-15  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Remove redundant Document::getElementById
+        https://bugs.webkit.org/show_bug.cgi?id=122813
+
+        Reviewed by Andreas Kling.
+
+        Merge https://chromium.googlesource.com/chromium/blink/+/4e8f1c5316415614b84370c602beae4a1008299f
+
+        This function simply calls virtual TreeScope::getElementById and Document inherits from TreeScope.
+
+        * WebCore.exp.in:
+        * dom/Document.cpp:
+        * dom/Document.h:
+
 2013-10-14  Santosh Mahto  <santosh.ma@samsung.com>
 
         in safari,the background-color of input[type="search"] can't work
index 8c0a085..53a86fc 100644 (file)
@@ -1649,7 +1649,6 @@ __ZNK7WebCore7IntRectcv6CGRectEv
 __ZNK7WebCore7RunLoop9TimerBase8isActiveEv
 __ZNK7WebCore8Document11completeURLERKN3WTF6StringE
 __ZNK7WebCore8Document13axObjectCacheEv
-__ZNK7WebCore8Document14getElementByIdERKN3WTF12AtomicStringE
 __ZNK7WebCore8Document31displayStringModifiedByEncodingERKN3WTF6StringE
 __ZNK7WebCore8Document4bodyEv
 __ZNK7WebCore8Document4pageEv
@@ -1709,6 +1708,7 @@ __ZNK7WebCore9InlineBox22canAccommodateEllipsisEbii
 __ZNK7WebCore9PageCache10frameCountEv
 __ZNK7WebCore9RenderBox11clientWidthEv
 __ZNK7WebCore9RenderBox12clientHeightEv
+__ZNK7WebCore9TreeScope14getElementByIdERKN3WTF12AtomicStringE
 __ZTVN7WebCore12ChromeClientE
 __ZTVN7WebCore14LoaderStrategyE
 __ZTVN7WebCore14StaticNodeListE
index 0743101..2cec215 100644 (file)
@@ -656,11 +656,6 @@ void Document::dropChildren()
 #endif
 }
 
-Element* Document::getElementById(const AtomicString& id) const
-{
-    return TreeScope::getElementById(id);
-}
-
 Element* Document::getElementByAccessKey(const String& key)
 {
     if (key.isEmpty())
index a714901..5d47165 100644 (file)
@@ -249,8 +249,6 @@ public:
     using ContainerNode::ref;
     using ContainerNode::deref;
 
-    Element* getElementById(const AtomicString& id) const;
-
     virtual bool canContainRangeEndPoint() const OVERRIDE { return true; }
 
     Element* getElementByAccessKey(const String& key);