summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-04 22:29:13 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-04 22:29:13 +0000
commitb2519c1860a414f0d69c61a14313199ddd893767 (patch)
tree9654d6f4364f27d01f34445e9df69691ec6c9d70
parent541759226fa44eb0280071c85833ee121ab7e585 (diff)
downloadchromium_src-b2519c1860a414f0d69c61a14313199ddd893767.zip
chromium_src-b2519c1860a414f0d69c61a14313199ddd893767.tar.gz
chromium_src-b2519c1860a414f0d69c61a14313199ddd893767.tar.bz2
Fix clang build.
Review URL: http://codereview.chromium.org/7574023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95522 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ui/gfx/render_text.cc4
-rw-r--r--ui/gfx/render_text.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
index 7e67d21..9a72d9a 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -130,6 +130,10 @@ void SelectionModel::Init(size_t start,
RenderText::~RenderText() {
}
+void RenderText::set_display_rect(const Rect& r) {
+ display_rect_ = r;
+}
+
void RenderText::SetText(const string16& text) {
size_t old_text_length = text_.length();
text_ = text;
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 020386b..99b4033 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -168,7 +168,7 @@ class UI_API RenderText {
void set_default_style(StyleRange style) { default_style_ = style; }
const Rect& display_rect() const { return display_rect_; }
- virtual void set_display_rect(const Rect& r) { display_rect_ = r; }
+ virtual void set_display_rect(const Rect& r);
const Point& display_offset() const { return display_offset_; }