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

Unified Diff: Source/web/mac/WebScrollbarTheme.cpp

Issue 57463002: Have Blink be told of scrollbar changes rather than paying attention itself (Blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: good version Created 7 years, 1 month 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
« no previous file with comments | « Source/core/platform/ScrollbarThemeMacCommon.mm ('k') | Source/web/web.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/mac/WebScrollbarTheme.cpp
diff --git a/Source/web/WebCustomElement.cpp b/Source/web/mac/WebScrollbarTheme.cpp
similarity index 81%
copy from Source/web/WebCustomElement.cpp
copy to Source/web/mac/WebScrollbarTheme.cpp
index f34222e06d6618038524382490e65e9d7e6fa746..d242f31c6ac2ca81986f149a14f60d427f0a31a0 100644
--- a/Source/web/WebCustomElement.cpp
+++ b/Source/web/mac/WebScrollbarTheme.cpp
@@ -29,20 +29,20 @@
*/
#include "config.h"
-#include "WebCustomElement.h"
+#include "WebScrollbarTheme.h"
-#include "../platform/WebString.h"
-#include "RuntimeEnabledFeatures.h"
-#include "core/dom/custom/CustomElement.h"
+#include "core/platform/ScrollbarThemeMacCommon.h"
using namespace WebCore;
namespace WebKit {
-void WebCustomElement::addEmbedderCustomElementName(const WebString& name)
+void WebScrollbarTheme::updateScrollbars(
+ float initialButtonDelay, float autoscrollButtonDelay,
+ bool jumpOnTrackClick, bool redraw)
{
- ASSERT(RuntimeEnabledFeatures::embedderCustomElementsEnabled());
- CustomElement::addEmbedderCustomElementName(name);
+ static_cast<ScrollbarThemeMacCommon*>(ScrollbarTheme::theme())->preferencesChanged(
+ initialButtonDelay, autoscrollButtonDelay, jumpOnTrackClick, redraw);
}
} // namespace WebKit
« no previous file with comments | « Source/core/platform/ScrollbarThemeMacCommon.mm ('k') | Source/web/web.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698