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

Unified Diff: third_party/WebKit/Source/core/dom/StaticRange.idl

Issue 2791373002: [InputEvent] Make StaticRange immutable and move tests to wpt (Closed)
Patch Set: Make attributes immutable and address foolip's comments Created 3 years, 8 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
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..5583f4dde33be10fc70eb8699e73a0603740f5af 100644
--- a/third_party/WebKit/Source/core/dom/StaticRange.idl
+++ b/third_party/WebKit/Source/core/dom/StaticRange.idl
@@ -10,14 +10,14 @@
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.
+ // void setStart(Node node, unsigned long offset);
+ // void setEnd(Node node, unsigned long offset);
+ // [NewObject, RaisesException] Range toRange();
};

Powered by Google App Engine
This is Rietveld 408576698