Index: Source/core/platform/graphics/GraphicsContextAnnotation.cpp |
diff --git a/Source/core/platform/graphics/GraphicsContextAnnotation.cpp b/Source/core/platform/graphics/GraphicsContextAnnotation.cpp |
index 0a8c387cbdf81b4a74e5f70784fb44bc192254cb..fdb056618c032efb07671710c34ff48cb0184c02 100644 |
--- a/Source/core/platform/graphics/GraphicsContextAnnotation.cpp |
+++ b/Source/core/platform/graphics/GraphicsContextAnnotation.cpp |
@@ -82,21 +82,21 @@ static const char* paintPhaseName(WebCore::PaintPhase phase) |
namespace WebCore { |
-GraphicsContextAnnotation::GraphicsContextAnnotation(const PaintInfo& paintInfo, const RenderObject* object) |
+GraphicsContextAnnotation::GraphicsContextAnnotation(PaintInfo& paintInfo, const RenderObject* object) |
: m_rendererName(0) |
, m_paintPhase(0) |
{ |
- ASSERT(paintInfo.context); |
+ ASSERT(paintInfo.getContext()); |
ASSERT(object); |
- AnnotationModeFlags mode = paintInfo.context->annotationMode(); |
+ AnnotationModeFlags mode = paintInfo.getContext()->annotationMode(); |
Element* element = object->node() && object->node()->isElementNode() ? toElement(object->node()) : 0; |
if (mode & AnnotateRendererName) |
m_rendererName = object->renderName(); |
if (mode & AnnotatePaintPhase) |
- m_paintPhase = paintPhaseName(paintInfo.phase); |
+ m_paintPhase = paintPhaseName(paintInfo.getPhase()); |
if ((mode & AnnotateElementId) && element) { |
const AtomicString id = element->getIdAttribute(); |
@@ -142,11 +142,11 @@ void GraphicsContextAnnotation::asAnnotationList(AnnotationList &list) const |
list.append(std::make_pair(AnnotationKeyElementTag, m_elementTag)); |
} |
-void GraphicsContextAnnotator::annotate(const PaintInfo& paintInfo, const RenderObject* object) |
+void GraphicsContextAnnotator::annotate(PaintInfo& paintInfo, const RenderObject* object) |
{ |
ASSERT(!m_context); |
- m_context = paintInfo.context; |
+ m_context = paintInfo.getContext(); |
m_context->beginAnnotation(GraphicsContextAnnotation(paintInfo, object)); |
} |