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

Unified Diff: sky/engine/bindings/core/v8/custom/V8ElementCustom.cpp

Issue 878303002: Remove more scrolling code from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | sky/engine/core/core.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/core/v8/custom/V8ElementCustom.cpp
diff --git a/sky/engine/bindings/core/v8/custom/V8ElementCustom.cpp b/sky/engine/bindings/core/v8/custom/V8ElementCustom.cpp
index 7d6f651dabe96f1552327e30200271752e2ab715..b19c65bbc087087198f01dec173d4447712da707 100644
--- a/sky/engine/bindings/core/v8/custom/V8ElementCustom.cpp
+++ b/sky/engine/bindings/core/v8/custom/V8ElementCustom.cpp
@@ -44,38 +44,6 @@
namespace blink {
-void V8Element::scrollLeftAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
-{
- ExceptionState exceptionState(ExceptionState::SetterContext, "scrollLeft", "Element", info.Holder(), info.GetIsolate());
- Element* impl = V8Element::toNative(info.Holder());
-
- if (RuntimeEnabledFeatures::cssomSmoothScrollEnabled() && value->IsObject()) {
- TONATIVE_VOID(Dictionary, scrollOptionsHorizontal, Dictionary(value, info.GetIsolate()));
- impl->setScrollLeft(scrollOptionsHorizontal, exceptionState);
- exceptionState.throwIfNeeded();
- return;
- }
-
- TONATIVE_VOID_EXCEPTIONSTATE(float, position, toInt32(value, exceptionState), exceptionState);
- impl->setScrollLeft(position);
-}
-
-void V8Element::scrollTopAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
-{
- ExceptionState exceptionState(ExceptionState::SetterContext, "scrollTop", "Element", info.Holder(), info.GetIsolate());
- Element* impl = V8Element::toNative(info.Holder());
-
- if (RuntimeEnabledFeatures::cssomSmoothScrollEnabled() && value->IsObject()) {
- TONATIVE_VOID(Dictionary, scrollOptionsVertical, Dictionary(value, info.GetIsolate()));
- impl->setScrollTop(scrollOptionsVertical, exceptionState);
- exceptionState.throwIfNeeded();
- return;
- }
-
- TONATIVE_VOID_EXCEPTIONSTATE(float, position, toInt32(value, exceptionState), exceptionState);
- impl->setScrollTop(position);
-}
-
////////////////////////////////////////////////////////////////////////////////
// Overload resolution for animate()
// FIXME: needs support for union types http://crbug.com/240176
« no previous file with comments | « no previous file | sky/engine/core/core.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698