diff options
author | dglazkov@google.com <dglazkov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-13 18:12:00 +0000 |
---|---|---|
committer | dglazkov@google.com <dglazkov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-13 18:12:00 +0000 |
commit | 628da89f7ff111bd9937ee93544866f5d076298a (patch) | |
tree | c9b6da7200f47ccdae800adda1d568c4a578a098 /webkit/pending/TreeWalker.cpp | |
parent | 5a179bcc5dace716b7bf87622ac1cac960c2ad9b (diff) | |
download | chromium_src-628da89f7ff111bd9937ee93544866f5d076298a.zip chromium_src-628da89f7ff111bd9937ee93544866f5d076298a.tar.gz chromium_src-628da89f7ff111bd9937ee93544866f5d076298a.tar.bz2 |
Second attempt at introducing cross-platform ExceptionContext in the midst of unforking.
This time I also made changes to files in pending, to temporarily keep them in sync until they are removed and avoid ambiguitiy due to include search path order.
Review URL: http://codereview.chromium.org/7267
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3296 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/pending/TreeWalker.cpp')
-rw-r--r-- | webkit/pending/TreeWalker.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/webkit/pending/TreeWalker.cpp b/webkit/pending/TreeWalker.cpp index 716c167..32e4a37 100644 --- a/webkit/pending/TreeWalker.cpp +++ b/webkit/pending/TreeWalker.cpp @@ -274,4 +274,46 @@ Children: return 0; } +Node* TreeWalker::parentNode() +{ + ExceptionContext context(m_current.get()); + return parentNode(&context); +} + +Node* TreeWalker::firstChild() +{ + ExceptionContext context(m_current.get()); + return firstChild(&context); +} + +Node* TreeWalker::lastChild() +{ + ExceptionContext context(m_current.get()); + return lastChild(&context); +} + +Node* TreeWalker::previousSibling() +{ + ExceptionContext context(m_current.get()); + return previousSibling(&context); +} + +Node* TreeWalker::nextSibling() +{ + ExceptionContext context(m_current.get()); + return nextSibling(&context); +} + +Node* TreeWalker::previousNode() +{ + ExceptionContext context(m_current.get()); + return previousNode(&context); +} + +Node* TreeWalker::nextNode() +{ + ExceptionContext context(m_current.get()); + return nextNode(&context); +} + } // namespace WebCore |