Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/StaticRange.idl |
| diff --git a/third_party/WebKit/Source/core/dom/StaticRange.idl b/third_party/WebKit/Source/core/dom/StaticRange.idl |
| index 5cc6feec5138b51cf948536d1fcb463a2eda9b7c..a9935f2a6b832ce527277b6e4f75471d038feadd 100644 |
| --- a/third_party/WebKit/Source/core/dom/StaticRange.idl |
| +++ b/third_party/WebKit/Source/core/dom/StaticRange.idl |
| @@ -5,19 +5,16 @@ |
| // https://garykac.github.io/staticrange/#interface-staticrange |
| [ |
| - Constructor, |
| - ConstructorCallWith=Document, |
| - Exposed=Window, |
| RuntimeEnabled=InputEvent, |
| ] interface StaticRange { |
| - attribute Node startContainer; |
| - attribute unsigned long startOffset; |
| - attribute Node endContainer; |
| - attribute unsigned long endOffset; |
| + readonly attribute Node startContainer; |
| + readonly attribute unsigned long startOffset; |
| + readonly attribute Node endContainer; |
| + readonly attribute unsigned long endOffset; |
| readonly attribute boolean collapsed; |
| - void setStart(Node node, unsigned long offset); |
| - void setEnd(Node node, unsigned long offset); |
| - |
| - [NewObject, RaisesException] Range toRange(); |
| + // TODO(chongz): Add back when the spec becomes stable. |
|
foolip
2017/04/13 06:13:40
Suggest removing this, the spec might not come to
chongz
2017/04/13 17:00:16
Done.
|
| + // void setStart(Node node, unsigned long offset); |
| + // void setEnd(Node node, unsigned long offset); |
| + // [NewObject, RaisesException] Range toRange(); |
| }; |