Index: third_party/WebKit/Source/web/WebNode.cpp |
diff --git a/third_party/WebKit/Source/web/WebNode.cpp b/third_party/WebKit/Source/web/WebNode.cpp |
index ba4cbbfa669e75367c9bd0b2c5a061be8225601f..02a0cc47c92fb20f15bfe89852dce1218dfa8690 100644 |
--- a/third_party/WebKit/Source/web/WebNode.cpp |
+++ b/third_party/WebKit/Source/web/WebNode.cpp |
@@ -136,6 +136,11 @@ WebNode WebNode::parentNode() const |
return WebNode(const_cast<ContainerNode*>(m_private->parentNode())); |
} |
+WebString WebNode::nodeName() const |
+{ |
+ return m_private->nodeName(); |
+} |
+ |
WebString WebNode::nodeValue() const |
{ |
return m_private->nodeValue(); |
@@ -171,7 +176,7 @@ bool WebNode::hasChildNodes() const |
return m_private->hasChildren(); |
} |
-WebNodeList WebNode::childNodes() |
+WebNodeList WebNode::childNodes() const |
{ |
return WebNodeList(m_private->childNodes()); |
} |
@@ -324,4 +329,15 @@ WebNode::operator PassRefPtrWillBeRawPtr<Node>() const |
return m_private.get(); |
} |
+ |
+ExportedBoundingBox WebNode::boundingBox() const { |
+ ExportedBoundingBox exportedBoundingBox; |
+ auto boundingBox = m_private->boundingBox(); |
+ exportedBoundingBox.minX = boundingBox.x(); |
+ exportedBoundingBox.minY = boundingBox.y(); |
+ exportedBoundingBox.maxX = boundingBox.maxX(); |
+ exportedBoundingBox.maxY = boundingBox.maxY(); |
+ return exportedBoundingBox; |
+} |
+ |
} // namespace blink |