Index: third_party/WebKit/WebCore/dom/Node.cpp |
=================================================================== |
--- third_party/WebKit/WebCore/dom/Node.cpp (revision 9391) |
+++ third_party/WebKit/WebCore/dom/Node.cpp (working copy) |
@@ -613,9 +613,14 @@ |
RenderBox* Node::renderBox() const |
{ |
- return m_renderer && m_renderer->isBox() ? static_cast<RenderBox*>(m_renderer) : 0; |
+ return m_renderer && m_renderer->isBox() ? toRenderBox(m_renderer) : 0; |
} |
+RenderBoxModelObject* Node::renderBoxModelObject() const |
+{ |
+ return m_renderer && m_renderer->isBoxModelObject() ? toRenderBoxModelObject(m_renderer) : 0; |
+} |
+ |
IntRect Node::getRect() const |
{ |
// FIXME: broken with transforms |