Index: Source/core/inspector/InspectorOverlay.cpp |
diff --git a/Source/core/inspector/InspectorOverlay.cpp b/Source/core/inspector/InspectorOverlay.cpp |
index c81ac7f44099bdcee008fba1e651b2715505fe89..fc2dfd0f4e9efc0d6a183804a147411dd4815aa6 100644 |
--- a/Source/core/inspector/InspectorOverlay.cpp |
+++ b/Source/core/inspector/InspectorOverlay.cpp |
@@ -141,7 +141,7 @@ static void contentsQuadToPage(const FrameView* mainView, const FrameView* view, |
static bool buildNodeQuads(Node* node, Vector<FloatQuad>& quads) |
{ |
RenderObject* renderer = node->renderer(); |
- Frame* containingFrame = node->document()->frame(); |
+ Frame* containingFrame = node->document().frame(); |
if (!renderer || !containingFrame) |
return false; |
@@ -214,7 +214,7 @@ static bool buildNodeQuads(Node* node, Vector<FloatQuad>& quads) |
static void buildNodeHighlight(Node* node, const HighlightConfig& highlightConfig, Highlight* highlight) |
{ |
RenderObject* renderer = node->renderer(); |
- Frame* containingFrame = node->document()->frame(); |
+ Frame* containingFrame = node->document().frame(); |
if (!renderer || !containingFrame) |
return; |
@@ -527,10 +527,10 @@ void InspectorOverlay::drawNodeHighlight() |
RefPtr<JSONObject> highlightObject = buildObjectForHighlight(highlight); |
Node* node = m_highlightNode.get(); |
- if (node->isElementNode() && m_nodeHighlightConfig.showInfo && node->renderer() && node->document()->frame()) { |
+ if (node->isElementNode() && m_nodeHighlightConfig.showInfo && node->renderer() && node->document().frame()) { |
RefPtr<JSONObject> elementInfo = JSONObject::create(); |
Element* element = toElement(node); |
- bool isXHTML = element->document()->isXHTMLDocument(); |
+ bool isXHTML = element->document().isXHTMLDocument(); |
elementInfo->setString("tagName", isXHTML ? element->nodeName() : element->nodeName().lower()); |
elementInfo->setString("idValue", element->getIdAttribute()); |
HashSet<AtomicString> usedClassNames; |
@@ -549,7 +549,7 @@ void InspectorOverlay::drawNodeHighlight() |
} |
RenderObject* renderer = node->renderer(); |
- Frame* containingFrame = node->document()->frame(); |
+ Frame* containingFrame = node->document().frame(); |
FrameView* containingView = containingFrame->view(); |
IntRect boundingBox = pixelSnappedIntRect(containingView->contentsToRootView(renderer->absoluteBoundingBoxRect())); |
RenderBoxModelObject* modelObject = renderer->isBoxModelObject() ? toRenderBoxModelObject(renderer) : 0; |