Index: Source/core/page/Selection.idl |
diff --git a/Source/core/page/Selection.idl b/Source/core/page/Selection.idl |
index dee956d98e940dfe5bea208e64d1be16e4a71a5a..53b0826171bd7f6edf7d947f72554f62c79f969f 100644 |
--- a/Source/core/page/Selection.idl |
+++ b/Source/core/page/Selection.idl |
@@ -61,28 +61,27 @@ |
[NotEnumerable] DOMString toString(); |
// WebKit extensions |
- readonly attribute Node baseNode; |
- readonly attribute long baseOffset; |
- readonly attribute Node extentNode; |
- readonly attribute long extentOffset; |
+ [MeasureAs=SelectionBaseNode] readonly attribute Node baseNode; |
+ [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset; |
+ [MeasureAs=SelectionExtentNode] readonly attribute Node extentNode; |
+ [MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset; |
// WebKit's "type" accessor returns "None", "Range" and "Caret" |
// IE's type accessor returns "none", "text" and "control" |
- readonly attribute DOMString type; |
+ [MeasureAs=SelectionType] readonly attribute DOMString type; |
- void modify([Default=Undefined] optional DOMString alter, |
- [Default=Undefined] optional DOMString direction, |
- [Default=Undefined] optional DOMString granularity); |
- [RaisesException] void setBaseAndExtent([Default=Undefined] optional Node baseNode, |
- [Default=Undefined] optional long baseOffset, |
- [Default=Undefined] optional Node extentNode, |
- [Default=Undefined] optional long extentOffset); |
+ [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMString alter, |
+ [Default=Undefined] optional DOMString direction, |
+ [Default=Undefined] optional DOMString granularity); |
+ [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent([Default=Undefined] optional Node baseNode, |
+ [Default=Undefined] optional long baseOffset, |
+ [Default=Undefined] optional Node extentNode, |
+ [Default=Undefined] optional long extentOffset); |
[ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException, TypeChecking=Interface|Nullable] void setPosition(Node node, |
- optional long offset); |
- |
+ optional long offset); |
// IE extentions |
// http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx |
- void empty(); |
+ [MeasureAs=SelectionEmpty] void empty(); |
}; |