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

Unified Diff: Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.h

Issue 10443073: Merge 117225 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.h
===================================================================
--- Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.h (revision 118874)
+++ Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.h (working copy)
@@ -43,14 +43,14 @@
WTF_MAKE_NONCOPYABLE(SVGTextLayoutAttributesBuilder);
public:
SVGTextLayoutAttributesBuilder();
- void buildLayoutAttributesForWholeTree(RenderSVGText*);
+ bool buildLayoutAttributesForForSubtree(RenderSVGText*);
void buildLayoutAttributesForTextRenderer(RenderSVGInlineText*);
- void rebuildMetricsForWholeTree(RenderSVGText*);
void rebuildMetricsForTextRenderer(RenderSVGInlineText*);
// Invoked whenever the underlying DOM tree changes, so that m_textPositions is rebuild.
void clearTextPositioningElements() { m_textPositions.clear(); }
+ unsigned numberOfTextPositioningElements() const { return m_textPositions.size(); }
private:
struct TextPosition {
@@ -66,9 +66,8 @@
unsigned length;
};
- bool buildLayoutAttributesIfNeeded(RenderSVGText*);
+ void buildCharacterDataMap(RenderSVGText*);
void collectTextPositioningElements(RenderObject*, const UChar*& lastCharacter);
- void buildLayoutAttributes(RenderSVGText*);
void fillCharacterDataMap(const TextPosition&);
private:
« no previous file with comments | « Source/WebCore/rendering/svg/SVGRootInlineBox.cpp ('k') | Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698