diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 02:51:42 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 02:51:42 +0000 |
commit | d02982248bb68073e940deeec7e36f5c3aab9ee6 (patch) | |
tree | ed8f78c90e0a5c8a4af9d43d39ef0e84797939de /webkit | |
parent | 3332977cf064c71b0d25f83bc6e35d8856059d56 (diff) | |
download | chromium_src-d02982248bb68073e940deeec7e36f5c3aab9ee6.zip chromium_src-d02982248bb68073e940deeec7e36f5c3aab9ee6.tar.gz chromium_src-d02982248bb68073e940deeec7e36f5c3aab9ee6.tar.bz2 |
Revert 18765 to try to repair perf regression
TBR=mpcomplete
Review URL: http://codereview.chromium.org/131093
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18784 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/webframe.h | 7 | ||||
-rw-r--r-- | webkit/glue/webframe_impl.cc | 14 | ||||
-rw-r--r-- | webkit/glue/webframe_impl.h | 2 |
3 files changed, 0 insertions, 23 deletions
diff --git a/webkit/glue/webframe.h b/webkit/glue/webframe.h index faa98bd..1789bfb 100644 --- a/webkit/glue/webframe.h +++ b/webkit/glue/webframe.h @@ -191,13 +191,6 @@ class WebFrame { // Returns the top-most frame in the frame hierarchy containing this frame. virtual WebFrame* GetTop() const = 0; - // Returns the first child frame of this frame, or NULL if it has no children. - virtual WebFrame* GetFirstChild() const = 0; - - // Returns the next sibling frame of this frame, or NULL if there are no more - // siblings. - virtual WebFrame* GetNextSibling() const = 0; - // Returns the child frame with the given xpath. // The document of this frame is used as the context node. // The xpath may need a recursive traversal if non-trivial diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc index c8c50ef..24d1e4b 100644 --- a/webkit/glue/webframe_impl.cc +++ b/webkit/glue/webframe_impl.cc @@ -683,20 +683,6 @@ WebFrame* WebFrameImpl::GetTop() const { return NULL; } -WebFrame* WebFrameImpl::GetFirstChild() const { - if (frame_ && frame_->tree()->firstChild()) - return FromFrame(frame_->tree()->firstChild()); - - return NULL; -} - -WebFrame* WebFrameImpl::GetNextSibling() const { - if (frame_ && frame_->tree()->nextSibling()) - return FromFrame(frame_->tree()->nextSibling()); - - return NULL; -} - WebFrame* WebFrameImpl::GetChildFrame(const std::wstring& xpath) const { // xpath string can represent a frame deep down the tree (across multiple // frame DOMs). diff --git a/webkit/glue/webframe_impl.h b/webkit/glue/webframe_impl.h index 5ddfdea..6db3aa0 100644 --- a/webkit/glue/webframe_impl.h +++ b/webkit/glue/webframe_impl.h @@ -106,8 +106,6 @@ class WebFrameImpl : public WebFrame, public base::RefCounted<WebFrameImpl> { virtual WebFrame* GetOpener() const; virtual WebFrame* GetParent() const; virtual WebFrame* GetTop() const; - virtual WebFrame* GetFirstChild() const; - virtual WebFrame* GetNextSibling() const; virtual WebFrame* GetChildFrame(const std::wstring& xpath) const; virtual WebView* GetView() const; virtual void GetForms(std::vector<WebKit::WebForm>* forms) const; |