Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(781)

Unified Diff: Source/core/dom/Node.cpp

Issue 428533003: Remove webkitConvertPointFromPageToNode() and webkitConvertPointFromNodeToPage() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 715cedf7c0813486da9fcb8af0a7f767c7bb8aa6..09f3e929593532114d0b58c5147ecaffb9020f60 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -1665,34 +1665,6 @@ unsigned short Node::compareDocumentPosition(const Node* otherNode, ShadowTreesT
DOCUMENT_POSITION_PRECEDING | DOCUMENT_POSITION_CONTAINS | connection;
}
-FloatPoint Node::convertToPage(const FloatPoint& p) const
-{
- // If there is a renderer, just ask it to do the conversion
- if (renderer())
- return renderer()->localToAbsolute(p, UseTransforms);
-
- // Otherwise go up the tree looking for a renderer
- if (Element* parent = parentElement())
- return parent->convertToPage(p);
-
- // No parent - no conversion needed
- return p;
-}
-
-FloatPoint Node::convertFromPage(const FloatPoint& p) const
-{
- // If there is a renderer, just ask it to do the conversion
- if (renderer())
- return renderer()->absoluteToLocal(p, UseTransforms);
-
- // Otherwise go up the tree looking for a renderer
- if (Element* parent = parentElement())
- return parent->convertFromPage(p);
-
- // No parent - no conversion needed
- return p;
-}
-
String Node::debugName() const
{
StringBuilder name;
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698