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

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

Issue 295923002: Use tighter typing for RenderTextFragment::firstLetter() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderTextFragment.h
diff --git a/Source/core/rendering/RenderTextFragment.h b/Source/core/rendering/RenderTextFragment.h
index 9d81d43cf1813d85dc8284cac81e0076dcb7fa38..de9858c4862a0c0ffd4b4e93ff6645d3eb747f61 100644
--- a/Source/core/rendering/RenderTextFragment.h
+++ b/Source/core/rendering/RenderTextFragment.h
@@ -45,8 +45,8 @@ public:
unsigned end() const { return m_end; }
virtual unsigned textStartOffset() const OVERRIDE { return start(); }
- RenderObject* firstLetter() const { return m_firstLetter; }
- void setFirstLetter(RenderObject* firstLetter) { m_firstLetter = firstLetter; }
+ RenderBoxModelObject* firstLetter() const { return m_firstLetter; }
+ void setFirstLetter(RenderBoxModelObject* firstLetter) { m_firstLetter = firstLetter; }
RenderText* firstRenderTextInFirstLetter() const;
StringImpl* contentString() const { return m_contentString.get(); }
@@ -69,7 +69,7 @@ private:
unsigned m_start;
unsigned m_end;
RefPtr<StringImpl> m_contentString;
- RenderObject* m_firstLetter;
+ RenderBoxModelObject* m_firstLetter;
};
DEFINE_TYPE_CASTS(RenderTextFragment, RenderObject, object, toRenderText(object)->isTextFragment(), toRenderText(object).isTextFragment());
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698