|
Replace StyleRange with BreakList; update RenderText, etc.
This is a functional rewrite with no observable behavior/appearance changes.
(it helps by merging adjacent equivalent styles, reducing artificial run breaks)
(it helps disambiguate font/adornment styles for application in layout/drawing)
Remove gfx::StyleRange and its use within gfx::RenderText[Win|Linux|Mac].
Add new BreakList class for managing [ranged] colors and styles; add/update tests.
Add gfx::TextStyle enum for bold, italic, underline, strike, and diagonal strike.
Split ApplyStyleRange into [Set|Apply]Color and [Set|Apply]Style.
Split ApplyDefaultStyle and |default_style_| into the first colors_ and styles_.
Split up SkiaTextRenderer::DrawDecorations for Underline/Strike/DiagonalStrike.
Update ApplyCompositionAndSelectionStyles, add UndoCompositionAndSelectionStyles.
Add temporary StyleIterator convenience class for RenderText subclass style iteration.
Update RenderText[Win|Linux|Mac], Textfield classes, and other users.
Simplify OmniboxResultView (nix bold font, and ClassificationData).
Rename gfx::Font::FontStyle::UNDERLINE (was UNDERLINED);
TODO(followup): Only break runs for bold/italic, color/adorn while drawing.
TODO(followup): Support more custom/ranged colors; merge TextStyle/FontStyle?
BUG= 90426, 164047, 131660
TEST=No observable appearance/performance/behavior changes.
R=asvitkine@chromium.org,pkasting@chromium.org,sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180067
Total comments: 40
Total comments: 18
Total comments: 42
Total comments: 4
Total comments: 8
Total comments: 26
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1109 lines, -978 lines) |
Patch |
 |
M |
ash/system/user/tray_user.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
2 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/extensions/extension_installed_bubble.cc
|
View
|
1
2
3
4
5
6
7
8
11
|
1 chunk |
+5 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h
|
View
|
1
2
3
4
5
6
7
11
|
2 chunks |
+5 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/omnibox/omnibox_result_view.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
5 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/omnibox/omnibox_result_view.cc
|
View
|
1
2
3
4
5
6
7
8
|
9 chunks |
+50 lines, -74 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
View
|
1
|
3 chunks |
+9 lines, -25 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/search_result_view.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -14 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/break_list.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+165 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/break_list_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+166 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/canvas_skia.cc
|
View
|
1
2
3
4
5
|
18 chunks |
+48 lines, -60 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/font.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/font_list.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/pango_util.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font_pango.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font_win.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/render_text.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
10 chunks |
+61 lines, -35 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/render_text.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
13 chunks |
+168 lines, -222 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/render_text_linux.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/render_text_linux.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
5 chunks |
+73 lines, -86 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/render_text_mac.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/render_text_mac.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
6 chunks |
+34 lines, -30 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/render_text_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+136 lines, -263 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/render_text_win.h
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/render_text_win.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
5 chunks |
+30 lines, -34 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/text_constants.h
|
View
|
1
2
3
4
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/ui.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/ui_unittests.gypi
|
View
|
1
2
3
4
5
6
7
8
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/link.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/textfield/native_textfield_views.h
|
View
|
1
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/textfield/native_textfield_views.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+17 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/textfield/native_textfield_win.h
|
View
|
1
2
3
4
5
6
7
11
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/textfield/native_textfield_win.cc
|
View
|
1
2
3
4
5
6
7
11
|
1 chunk |
+12 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/textfield/native_textfield_wrapper.h
|
View
|
1
|
2 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/textfield/textfield.h
|
View
|
1
2
3
4
5
|
3 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/textfield/textfield.cc
|
View
|
1
2
3
|
1 chunk |
+16 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/views/examples/text_example.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/examples/textfield_example.cc
|
View
|
1
2
3
4
5
6
7
11
|
1 chunk |
+11 lines, -14 lines |
0 comments
|
Download
|
Total messages: 24 (0 generated)
|