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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp

Issue 2855523002: Deleted Widget/FrameViewBase (Closed)
Patch Set: update comments Created 3 years, 8 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: third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp
index aad4568c60ffca70a2c55681c72fabf18b4743b2..8198f38043bf397e4bae86275640ba1534bdafc6 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp
@@ -160,7 +160,7 @@ ScrollbarPart ScrollbarTheme::HitTest(const ScrollbarThemeClient& scrollbar,
return result;
IntPoint test_position =
- scrollbar.ConvertFromRootFrame(position_in_root_frame);
+ scrollbar.ConvertPointFromRootFrame(position_in_root_frame);
test_position.Move(scrollbar.X(), scrollbar.Y());
if (!scrollbar.FrameRect().Contains(test_position))
@@ -275,7 +275,7 @@ void ScrollbarTheme::PaintTickmarks(GraphicsContext& context,
bool ScrollbarTheme::ShouldSnapBackToDragOrigin(
const ScrollbarThemeClient& scrollbar,
const WebMouseEvent& evt) {
- IntPoint mouse_position = scrollbar.ConvertFromRootFrame(
+ IntPoint mouse_position = scrollbar.ConvertPointFromRootFrame(
FlooredIntPoint(evt.PositionInRootFrame()));
mouse_position.Move(scrollbar.X(), scrollbar.Y());
return Platform::Current()->ScrollbarBehavior()->ShouldSnapBackToDragOrigin(

Powered by Google App Engine
This is Rietveld 408576698