| Index: Source/core/rendering/svg/SVGInlineTextBox.cpp
|
| diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp
|
| index 76df41e42f776ebfb6cfb7e2f48d19bfe2b8c1fc..21a5b9e0bcd90165c03ac2a77864e120efaef92b 100644
|
| --- a/Source/core/rendering/svg/SVGInlineTextBox.cpp
|
| +++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp
|
| @@ -83,7 +83,7 @@ int SVGInlineTextBox::offsetForPositionInFragment(const SVGTextFragment& fragmen
|
| float scalingFactor = textRenderer.scalingFactor();
|
| ASSERT(scalingFactor);
|
|
|
| - RenderStyle* style = textRenderer.style();
|
| + const RenderStyle* style = textRenderer.style();
|
| ASSERT(style);
|
|
|
| TextRun textRun = constructTextRun(style, fragment);
|
| @@ -105,7 +105,7 @@ FloatWillBeLayoutUnit SVGInlineTextBox::positionForOffset(int) const
|
| return 0;
|
| }
|
|
|
| -FloatRectWillBeLayoutRect SVGInlineTextBox::selectionRectForTextFragment(const SVGTextFragment& fragment, int startPosition, int endPosition, RenderStyle* style)
|
| +FloatRectWillBeLayoutRect SVGInlineTextBox::selectionRectForTextFragment(const SVGTextFragment& fragment, int startPosition, int endPosition, const RenderStyle* style)
|
| {
|
| ASSERT(startPosition < endPosition);
|
| ASSERT(style);
|
| @@ -139,7 +139,7 @@ LayoutRect SVGInlineTextBox::localSelectionRect(int startPosition, int endPositi
|
| if (startPosition >= endPosition)
|
| return LayoutRect();
|
|
|
| - RenderStyle* style = renderer().style();
|
| + const RenderStyle* style = renderer().style();
|
| ASSERT(style);
|
|
|
| AffineTransform fragmentTransform;
|
| @@ -173,7 +173,7 @@ void SVGInlineTextBox::paint(const PaintInfo& paintInfo, const LayoutPoint& pain
|
| SVGInlineTextBoxPainter(*this).paint(paintInfo, paintOffset);
|
| }
|
|
|
| -TextRun SVGInlineTextBox::constructTextRun(RenderStyle* style, const SVGTextFragment& fragment) const
|
| +TextRun SVGInlineTextBox::constructTextRun(const RenderStyle* style, const SVGTextFragment& fragment) const
|
| {
|
| ASSERT(style);
|
|
|
| @@ -234,12 +234,12 @@ bool SVGInlineTextBox::mapStartEndPositionsIntoFragmentCoordinates(const SVGText
|
| return true;
|
| }
|
|
|
| -void SVGInlineTextBox::paintDocumentMarker(GraphicsContext*, const FloatPointWillBeLayoutPoint&, DocumentMarker*, RenderStyle*, const Font&, bool)
|
| +void SVGInlineTextBox::paintDocumentMarker(GraphicsContext*, const FloatPointWillBeLayoutPoint&, DocumentMarker*, const RenderStyle*, const Font&, bool)
|
| {
|
| // SVG does not have support for generic document markers (e.g., spellchecking, etc).
|
| }
|
|
|
| -void SVGInlineTextBox::paintTextMatchMarker(GraphicsContext* context, const FloatPointWillBeLayoutPoint& point, DocumentMarker* marker, RenderStyle* style, const Font& font)
|
| +void SVGInlineTextBox::paintTextMatchMarker(GraphicsContext* context, const FloatPointWillBeLayoutPoint& point, DocumentMarker* marker, const RenderStyle* style, const Font& font)
|
| {
|
| SVGInlineTextBoxPainter(*this).paintTextMatchMarker(context, point.toFloatPoint(), marker, style, font);
|
| }
|
|
|