Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: Source/core/rendering/svg/RenderSVGInlineText.h

Issue 622253002: Pass start/length at InlineTextBox construction time. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderText.cpp ('k') | Source/core/rendering/svg/RenderSVGInlineText.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2008 Rob Buis <buis@kde.org> 4 * Copyright (C) 2008 Rob Buis <buis@kde.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE; 50 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE;
51 51
52 virtual FloatRect objectBoundingBox() const OVERRIDE { return floatLinesBoun dingBox(); } 52 virtual FloatRect objectBoundingBox() const OVERRIDE { return floatLinesBoun dingBox(); }
53 53
54 virtual bool isSVGInlineText() const OVERRIDE { return true; } 54 virtual bool isSVGInlineText() const OVERRIDE { return true; }
55 virtual bool isSVG() const OVERRIDE { return true; } 55 virtual bool isSVG() const OVERRIDE { return true; }
56 56
57 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE; 57 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE;
58 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0) OVERRIDE; 58 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0) OVERRIDE;
59 virtual IntRect linesBoundingBox() const OVERRIDE; 59 virtual IntRect linesBoundingBox() const OVERRIDE;
60 virtual InlineTextBox* createTextBox() OVERRIDE; 60 virtual InlineTextBox* createTextBox(int start, unsigned short length) OVERR IDE;
61 61
62 float m_scalingFactor; 62 float m_scalingFactor;
63 Font m_scaledFont; 63 Font m_scaledFont;
64 SVGTextLayoutAttributes m_layoutAttributes; 64 SVGTextLayoutAttributes m_layoutAttributes;
65 }; 65 };
66 66
67 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGInlineText, isSVGInlineText()); 67 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGInlineText, isSVGInlineText());
68 68
69 } 69 }
70 70
71 #endif // RenderSVGInlineText_h 71 #endif // RenderSVGInlineText_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderText.cpp ('k') | Source/core/rendering/svg/RenderSVGInlineText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698