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

Unified Diff: Source/core/platform/chromium/PlatformScreenChromium.cpp

Issue 26936002: Remove Widget's dependency upon its own inheritor aka ScrollView. This was nasty from an OO design… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Fix for clang compile error Created 7 years, 2 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: Source/core/platform/chromium/PlatformScreenChromium.cpp
diff --git a/Source/core/platform/chromium/PlatformScreenChromium.cpp b/Source/core/platform/chromium/PlatformScreenChromium.cpp
index 8bf58b6861da936bc6b02ab3b22d6b706791dce9..079c0400f6872d93083e87badcf8d39d617cabe5 100644
--- a/Source/core/platform/chromium/PlatformScreenChromium.cpp
+++ b/Source/core/platform/chromium/PlatformScreenChromium.cpp
@@ -31,7 +31,7 @@
#include "config.h"
#include "core/platform/PlatformScreen.h"
-#include "core/platform/ScrollView.h"
+#include "core/platform/Widget.h"
#include "platform/HostWindow.h"
#include "platform/geometry/FloatRect.h"
#include "public/platform/Platform.h"
@@ -43,7 +43,7 @@ static HostWindow* toHostWindow(Widget* widget)
{
if (!widget)
return 0;
- ScrollView* root = widget->root();
+ Widget* root = widget->root();
if (!root)
return 0;
return root->hostWindow();
« no previous file with comments | « Source/core/platform/Widget.cpp ('k') | Source/core/platform/chromium/support/WebScrollbarThemeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698