summaryrefslogtreecommitdiffstats
path: root/ui/gfx/render_text.h
diff options
context:
space:
mode:
authorxji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-12 02:19:33 +0000
committerxji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-12 02:19:33 +0000
commit5f4fd30eb1a03f9853e732a8b97c1b2ce8cf3aaf (patch)
treecad152f58ed4cf17c3b71b57edb9e913356a081a /ui/gfx/render_text.h
parentb0e13f27c9116a3b92b699c934cec24d96785655 (diff)
downloadchromium_src-5f4fd30eb1a03f9853e732a8b97c1b2ce8cf3aaf.zip
chromium_src-5f4fd30eb1a03f9853e732a8b97c1b2ce8cf3aaf.tar.gz
chromium_src-5f4fd30eb1a03f9853e732a8b97c1b2ce8cf3aaf.tar.bz2
Fix input text is not visible in Find bar textfield and Add Bookmark name field.
The display area's height in find-in-page and bookmark bubble textfields are smaller than font.GetHeight(). The size_t/int conversion in GetOriginForSkiaDrawing() made origin.y (drawing y coordindate) a very large negative number. BUG=109327 TEST=manual find-in-page and bookmark bubble. RenderTextTest.OriginForSkiaDrawing Review URL: http://codereview.chromium.org/9181001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/render_text.h')
-rw-r--r--ui/gfx/render_text.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 217f846..5b9c15a 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -298,6 +298,7 @@ class UI_EXPORT RenderText {
FRIEND_TEST_ALL_PREFIXES(RenderTextTest, StyleRangesAdjust);
FRIEND_TEST_ALL_PREFIXES(RenderTextTest, GraphemePositions);
FRIEND_TEST_ALL_PREFIXES(RenderTextTest, SelectionModels);
+ FRIEND_TEST_ALL_PREFIXES(RenderTextTest, OriginForSkiaDrawing);
// Return an index belonging to the |next| or previous logical grapheme.
// If |next| is false and |IsCursorablePosition(index)| is true, the result