OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "bindings/core/v8/V8AnimationEffect.h" | 36 #include "bindings/core/v8/V8AnimationEffect.h" |
37 #include "bindings/core/v8/V8AnimationPlayer.h" | 37 #include "bindings/core/v8/V8AnimationPlayer.h" |
38 #include "bindings/core/v8/V8Binding.h" | 38 #include "bindings/core/v8/V8Binding.h" |
39 #include "bindings/core/v8/V8BindingMacros.h" | 39 #include "bindings/core/v8/V8BindingMacros.h" |
40 #include "core/animation/ElementAnimation.h" | 40 #include "core/animation/ElementAnimation.h" |
41 #include "core/dom/Element.h" | 41 #include "core/dom/Element.h" |
42 #include "core/frame/UseCounter.h" | 42 #include "core/frame/UseCounter.h" |
43 #include "platform/RuntimeEnabledFeatures.h" | 43 #include "platform/RuntimeEnabledFeatures.h" |
44 #include "wtf/GetPtr.h" | 44 #include "wtf/GetPtr.h" |
45 | 45 |
46 namespace WebCore { | 46 namespace blink { |
47 | 47 |
48 void V8Element::scrollLeftAttributeSetterCustom(v8::Local<v8::Value> value, cons
t v8::PropertyCallbackInfo<void>& info) | 48 void V8Element::scrollLeftAttributeSetterCustom(v8::Local<v8::Value> value, cons
t v8::PropertyCallbackInfo<void>& info) |
49 { | 49 { |
50 ExceptionState exceptionState(ExceptionState::SetterContext, "scrollLeft", "
Element", info.Holder(), info.GetIsolate()); | 50 ExceptionState exceptionState(ExceptionState::SetterContext, "scrollLeft", "
Element", info.Holder(), info.GetIsolate()); |
51 Element* impl = V8Element::toNative(info.Holder()); | 51 Element* impl = V8Element::toNative(info.Holder()); |
52 | 52 |
53 if (RuntimeEnabledFeatures::cssomSmoothScrollEnabled() && value->IsObject())
{ | 53 if (RuntimeEnabledFeatures::cssomSmoothScrollEnabled() && value->IsObject())
{ |
54 TONATIVE_VOID(Dictionary, scrollOptionsHorizontal, Dictionary(value, inf
o.GetIsolate())); | 54 TONATIVE_VOID(Dictionary, scrollOptionsHorizontal, Dictionary(value, inf
o.GetIsolate())); |
55 impl->setScrollLeft(scrollOptionsHorizontal, exceptionState); | 55 impl->setScrollLeft(scrollOptionsHorizontal, exceptionState); |
56 exceptionState.throwIfNeeded(); | 56 exceptionState.throwIfNeeded(); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 break; | 226 break; |
227 default: | 227 default: |
228 throwArityTypeError(exceptionState, "[1]", info.Length()); | 228 throwArityTypeError(exceptionState, "[1]", info.Length()); |
229 return; | 229 return; |
230 break; | 230 break; |
231 } | 231 } |
232 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 232 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
233 exceptionState.throwIfNeeded(); | 233 exceptionState.throwIfNeeded(); |
234 } | 234 } |
235 | 235 |
236 } // namespace WebCore | 236 } // namespace blink |
OLD | NEW |