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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2030033003: Replace cc::ViewportSelectionBound with gfx::SelectionBound (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Further cleanup Created 4 years, 6 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: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index 6624dcddb2be374ef7f63c9af3eeea1832bf7cc4..79bda8eeffbb748e78b5877a64c2f306f9d1db5a 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -111,14 +111,14 @@ cc::LayerSelectionBound ConvertWebSelectionBound(
const blink::WebSelectionBound& web_bound =
is_start ? web_selection.start() : web_selection.end();
DCHECK(web_bound.layerId);
- cc_bound.type = cc::SELECTION_BOUND_CENTER;
+ cc_bound.type = gfx::SelectionBound::CENTER;
if (web_selection.isRange()) {
if (is_start) {
- cc_bound.type = web_bound.isTextDirectionRTL ? cc::SELECTION_BOUND_RIGHT
- : cc::SELECTION_BOUND_LEFT;
+ cc_bound.type = web_bound.isTextDirectionRTL ? gfx::SelectionBound::RIGHT
+ : gfx::SelectionBound::LEFT;
} else {
- cc_bound.type = web_bound.isTextDirectionRTL ? cc::SELECTION_BOUND_LEFT
- : cc::SELECTION_BOUND_RIGHT;
+ cc_bound.type = web_bound.isTextDirectionRTL ? gfx::SelectionBound::LEFT
+ : gfx::SelectionBound::RIGHT;
}
}
cc_bound.layer_id = web_bound.layerId;
« no previous file with comments | « content/content_browser.gypi ('k') | ui/gfx/BUILD.gn » ('j') | ui/gfx/ipc/gfx_param_traits.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698