summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/RenderLayerBacking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/rendering/RenderLayerBacking.cpp')
-rw-r--r--WebCore/rendering/RenderLayerBacking.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/WebCore/rendering/RenderLayerBacking.cpp b/WebCore/rendering/RenderLayerBacking.cpp
index 97c5544..b55a474 100644
--- a/WebCore/rendering/RenderLayerBacking.cpp
+++ b/WebCore/rendering/RenderLayerBacking.cpp
@@ -1029,7 +1029,7 @@ void RenderLayerBacking::paintIntoLayer(RenderLayer* rootLayer, GraphicsContext*
#if ENABLE(INSPECTOR)
static InspectorTimelineAgent* inspectorTimelineAgent(RenderObject* renderer)
{
- Frame* frame = renderer->document()->frame();
+ Frame* frame = renderer->frame();
if (!frame)
return 0;
Page* page = frame->page();
@@ -1252,10 +1252,9 @@ String RenderLayerBacking::nameForLayer() const
String name = renderer()->renderName();
if (Node* node = renderer()->node()) {
if (node->isElementNode())
- name += " " + static_cast<Element *>(node)->tagName();
-
- if (node->isHTMLElement() && static_cast<HTMLElement *>(node)->hasID())
- name += " \'" + static_cast<Element *>(node)->getIDAttribute() + "\'";
+ name += " " + static_cast<Element*>(node)->tagName();
+ if (node->hasID())
+ name += " \'" + static_cast<Element*>(node)->getIdAttribute() + "\'";
}
if (m_owningLayer->isReflection())