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

Unified Diff: Source/core/rendering/TextRunConstructor.h

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a crashers (everything is building!) Created 5 years, 11 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/core/rendering/TextRunConstructor.h
diff --git a/Source/core/rendering/TextRunConstructor.h b/Source/core/rendering/TextRunConstructor.h
index b044b892bb39f01c80862f20f0593684215110c7..486ba4508126b858d1f4634f8c074afef9589ebe 100644
--- a/Source/core/rendering/TextRunConstructor.h
+++ b/Source/core/rendering/TextRunConstructor.h
@@ -57,15 +57,15 @@ enum TextRunFlag {
typedef unsigned TextRunFlags;
// Direction resolved from string value.
-TextRun constructTextRun(RenderObject* context, const Font&, const String&, RenderStyle*, TextRunFlags = DefaultTextRunFlags);
-TextRun constructTextRun(RenderObject* context, const Font&, const RenderText*, unsigned offset, unsigned length, RenderStyle*);
+TextRun constructTextRun(RenderObject* context, const Font&, const String&, const RenderStyle*, TextRunFlags = DefaultTextRunFlags);
+TextRun constructTextRun(RenderObject* context, const Font&, const RenderText*, unsigned offset, unsigned length, const RenderStyle*);
// Explicit direction.
-TextRun constructTextRun(RenderObject*, const Font&, const String&, RenderStyle*, TextDirection, TextRunFlags = DefaultTextRunFlags);
-TextRun constructTextRun(RenderObject*, const Font&, const RenderText*, RenderStyle*, TextDirection);
-TextRun constructTextRun(RenderObject*, const Font&, const RenderText*, unsigned offset, unsigned length, RenderStyle*, TextDirection);
-TextRun constructTextRun(RenderObject*, const Font&, const LChar*, int length, RenderStyle*, TextDirection);
-TextRun constructTextRun(RenderObject*, const Font&, const UChar*, int length, RenderStyle*, TextDirection);
+TextRun constructTextRun(RenderObject*, const Font&, const String&, const RenderStyle*, TextDirection, TextRunFlags = DefaultTextRunFlags);
+TextRun constructTextRun(RenderObject*, const Font&, const RenderText*, const RenderStyle*, TextDirection);
+TextRun constructTextRun(RenderObject*, const Font&, const RenderText*, unsigned offset, unsigned length, const RenderStyle*, TextDirection);
+TextRun constructTextRun(RenderObject*, const Font&, const LChar*, int length, const RenderStyle*, TextDirection);
+TextRun constructTextRun(RenderObject*, const Font&, const UChar*, int length, const RenderStyle*, TextDirection);
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698