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

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: win fix? 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
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(
abarth-chromium 2013/11/04 00:43:24 Is there some way to DCHECK that this case is vali
Avi (use Gerrit) 2013/11/04 01:40:24 I suppose that's a good point. I'm not sure what t
Avi (use Gerrit) 2013/11/04 16:25:46 Ooooh. Did you mean if this CAST is valid? Does th
+ initialButtonDelay, autoscrollButtonDelay, jumpOnTrackClick, redraw);
}
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698