Index: core/dom/Element.idl |
diff --git a/core/dom/Element.idl b/core/dom/Element.idl |
index 2d0574cfa815845e8441d21b7fbdeb810a129890..a516e09035e682ac49bb19b03416d2f4aae515df 100644 |
--- a/core/dom/Element.idl |
+++ b/core/dom/Element.idl |
@@ -18,11 +18,14 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
+// See |
+// https://docs.google.com/document/d/1VnvAqeWFG9JFZfgG5evBqrLGDZYRE5w6G5jEDORekPY |
+// for details. |
+enum NativeScrollBehavior { "disable-native-scroll", "perform-before-native-scroll", "perform-after-native-scroll" }; |
+ |
// https://dom.spec.whatwg.org/#interface-element |
-[ |
- TypeChecking=Interface, |
-] interface Element : Node { |
+interface Element : Node { |
readonly attribute DOMString? namespaceURI; |
readonly attribute DOMString? prefix; |
readonly attribute DOMString localName; |
@@ -30,7 +33,7 @@ |
[Reflect] attribute DOMString id; |
[Reflect=class] attribute DOMString className; |
- [SameObject, PerWorldBindings] readonly attribute DOMTokenList classList; |
+ [SameObject, PerWorldBindings, PutForwards=value] readonly attribute DOMTokenList classList; |
[MeasureAs=HasAttributes] boolean hasAttributes(); |
[SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes; |
@@ -65,9 +68,11 @@ |
// Shadow DOM |
// http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-interface |
[RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] ShadowRoot createShadowRoot(); |
- [RuntimeEnabled=CreateShadowRootWithParameter, RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] ShadowRoot createShadowRoot(ShadowRootInit shadowRootInitDict); |
+ [RuntimeEnabled=ShadowDOMV1, RaisesException, CallWith=ScriptState, MeasureAs=ElementAttachShadow] ShadowRoot attachShadow(ShadowRootInit shadowRootInitDict); |
NodeList getDestinationInsertionPoints(); |
- [PerWorldBindings] readonly attribute ShadowRoot? shadowRoot; |
+ [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRoot? shadowRoot; |
+ [RuntimeEnabled=ShadowDOMV1, Reflect] attribute DOMString slot; |
+ [RuntimeEnabled=ShadowDOMV1, ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement assignedSlot; |
// Pointer Lock |
// https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions-to-the-element-interface |
@@ -95,13 +100,10 @@ |
readonly attribute long clientLeft; |
readonly attribute long clientWidth; |
readonly attribute long clientHeight; |
- // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface |
- // FIXME: offset* should only be on HTMLElement. |
- [MeasureAs=ElementOffsetParent, PerWorldBindings] readonly attribute Element? offsetParent; |
- [MeasureAs=ElementOffsetTop] readonly attribute long offsetTop; |
- [MeasureAs=ElementOffsetLeft] readonly attribute long offsetLeft; |
- [MeasureAs=ElementOffsetWidth] readonly attribute long offsetWidth; |
- [MeasureAs=ElementOffsetHeight] readonly attribute long offsetHeight; |
+ |
+ // Scroll Customization API. See crbug.com/410974 for details. |
+ [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); |
+ [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); |
// Non-standard APIs |
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 |
@@ -123,10 +125,6 @@ |
attribute EventHandler onpaste; |
attribute EventHandler onsearch; |
attribute EventHandler onselectstart; |
- [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
- [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
- [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
- [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
attribute EventHandler onwheel; |
}; |