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

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

Issue 2572003003: NOT FOR SUBMIT: use counters for jdm@
Patch Set: Merge branch 'jdm-usecounters' into jdm-merge Created 4 years 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/Document.idl
diff --git a/third_party/WebKit/Source/core/dom/Document.idl b/third_party/WebKit/Source/core/dom/Document.idl
index 9c103953e6985fcfcae96daf0f31a17831b01a78..b04d28acf8f76f967bdbb9241b63fc33ef7d6b54 100644
--- a/third_party/WebKit/Source/core/dom/Document.idl
+++ b/third_party/WebKit/Source/core/dom/Document.idl
@@ -36,12 +36,12 @@ typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
// FIXME: Document should have a constructor. crbug.com/238234
interface Document : Node {
- [SameObject] readonly attribute DOMImplementation implementation;
+ [SameObject, Measure] readonly attribute DOMImplementation implementation;
readonly attribute DOMString URL;
// FIXME: documentURI should not be nullable.
[ImplementedAs=url] readonly attribute DOMString? documentURI;
- readonly attribute DOMString origin;
- [RuntimeEnabled=suborigins] readonly attribute DOMString suborigin;
+ [Measure] readonly attribute DOMString origin;
+ [RuntimeEnabled=suborigins, Measure] readonly attribute DOMString suborigin;
readonly attribute DOMString compatMode;
readonly attribute DOMString characterSet;
@@ -59,7 +59,7 @@ interface Document : Node {
[NewObject, DoNotTestNewObject, CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName);
[NewObject] DocumentFragment createDocumentFragment();
[NewObject] Text createTextNode(DOMString data);
- [NewObject, RaisesException] CDATASection createCDATASection(DOMString data);
+ [Measure, NewObject, RaisesException] CDATASection createCDATASection(DOMString data);
[NewObject] Comment createComment(DOMString data);
[NewObject, RaisesException] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
@@ -78,7 +78,7 @@ interface Document : Node {
[NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
// NonDocumentRootScroller (https://github.com/bokand/NonDocumentRootScroller)
- [RaisesException=Setter, RuntimeEnabled=SetRootScroller, Measure] attribute Element? rootScroller;
+ [Measure, RaisesException=Setter, RuntimeEnabled=SetRootScroller, Measure] attribute Element? rootScroller;
// FIXME: xmlEncoding/xmlVersion/xmlStandalone have been removed from the spec.
[MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding;
@@ -91,7 +91,7 @@ interface Document : Node {
// resource metadata management
[PutForwards=href, Unforgeable] readonly attribute Location? location;
- [RaisesException=Setter] attribute DOMString domain;
+ [Measure, RaisesException=Setter] attribute DOMString domain;
readonly attribute DOMString referrer;
[RaisesException] attribute DOMString cookie;
readonly attribute DOMString lastModified;
@@ -99,7 +99,7 @@ interface Document : Node {
// DOM tree accessors
[CEReactions, CustomElementCallbacks] attribute DOMString title;
- [CEReactions, CustomElementCallbacks] attribute DOMString dir;
+ [Measure, CEReactions, CustomElementCallbacks] attribute DOMString dir;
[CEReactions, RaisesException=Setter, CustomElementCallbacks, PerWorldBindings] attribute HTMLElement? body;
readonly attribute HTMLHeadElement? head;
[SameObject, Measure] readonly attribute HTMLCollection images;
@@ -114,20 +114,20 @@ interface Document : Node {
// dynamic markup insertion
// FIXME: There are two open() methods in the spec.
[Custom, CEReactions, CustomElementCallbacks, RaisesException, MeasureAs=DocumentOpen] void open();
- [CEReactions, RaisesException] void close();
- [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesException] void write(DOMString... text);
- [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesException] void writeln(DOMString... text);
+ [Measure, CEReactions, RaisesException] void close();
+ [Measure, CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesException] void write(DOMString... text);
+ [Measure, CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesException] void writeln(DOMString... text);
// user interaction
[ImplementedAs=domWindow] readonly attribute Window? defaultView;
boolean hasFocus();
[CEReactions, CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribute DOMString designMode;
- [CEReactions, CustomElementCallbacks, RaisesException] boolean execCommand(DOMString commandId, optional boolean showUI = false, optional DOMString value = "");
- [RaisesException] boolean queryCommandEnabled(DOMString commandId);
- [RaisesException] boolean queryCommandIndeterm(DOMString commandId);
- [RaisesException] boolean queryCommandState(DOMString commandId);
- [RaisesException] boolean queryCommandSupported(DOMString commandId);
- [RaisesException] DOMString queryCommandValue(DOMString commandId);
+ [Measure, CEReactions, CustomElementCallbacks, RaisesException] boolean execCommand(DOMString commandId, optional boolean showUI = false, optional DOMString value = "");
+ [MeasureAs=DocumentQuery, RaisesException] boolean queryCommandEnabled(DOMString commandId);
+ [MeasureAs=DocumentQuery, RaisesException] boolean queryCommandIndeterm(DOMString commandId);
+ [MeasureAs=DocumentQuery, RaisesException] boolean queryCommandState(DOMString commandId);
+ [MeasureAs=DocumentQuery, RaisesException] boolean queryCommandSupported(DOMString commandId);
+ [MeasureAs=DocumentQuery, RaisesException] DOMString queryCommandValue(DOMString commandId);
[LenientThis] attribute EventHandler onreadystatechange;
@@ -143,15 +143,15 @@ interface Document : Node {
// CSS Object Model (CSSOM)
// https://dev.w3.org/csswg/cssom/#extensions-to-the-document-interface
- attribute DOMString? selectedStylesheetSet;
- readonly attribute DOMString? preferredStylesheetSet;
+ [Measure] attribute DOMString? selectedStylesheetSet;
+ [Measure] readonly attribute DOMString? preferredStylesheetSet;
- readonly attribute Element? scrollingElement;
+ [Measure] readonly attribute Element? scrollingElement;
// Pointer Lock
// https://w3c.github.io/pointerlock/#extensions-to-the-document-interface
- attribute EventHandler onpointerlockchange;
- attribute EventHandler onpointerlockerror;
+ [Measure] attribute EventHandler onpointerlockchange;
+ [Measure] attribute EventHandler onpointerlockerror;
[MeasureAs=DocumentExitPointerLock] void exitPointerLock();
// Touch Events
@@ -182,12 +182,12 @@ interface Document : Node {
// Page Visibility
// https://www.w3.org/TR/page-visibility/#sec-document-interface
- readonly attribute boolean hidden;
- readonly attribute VisibilityState visibilityState;
+ [Measure] readonly attribute boolean hidden;
+ [Measure] readonly attribute VisibilityState visibilityState;
// CORS and RFC1918
// https://wicg.github.io/cors-rfc1918/#feature-detect
- [RuntimeEnabled=CorsRFC1918, ImplementedAs=addressSpaceForBindings] readonly attribute AddressSpace addressSpace;
+ [Measure, RuntimeEnabled=CorsRFC1918, ImplementedAs=addressSpaceForBindings] readonly attribute AddressSpace addressSpace;
// Non-standard APIs
[MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=Undefined] optional long x, [Default=Undefined] optional long y);
@@ -199,17 +199,17 @@ interface Document : Node {
[MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
// Event handler attributes
- attribute EventHandler onbeforecopy;
- attribute EventHandler onbeforecut;
- attribute EventHandler onbeforepaste;
- attribute EventHandler oncopy;
- attribute EventHandler oncut;
- attribute EventHandler onpaste;
- attribute EventHandler onsearch;
- [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHandler onsecuritypolicyviolation;
- attribute EventHandler onselectionchange;
- attribute EventHandler onselectstart;
- attribute EventHandler onwheel;
+ [Measure] attribute EventHandler onbeforecopy;
+ [Measure] attribute EventHandler onbeforecut;
+ [Measure] attribute EventHandler onbeforepaste;
+ [Measure] attribute EventHandler oncopy;
+ [Measure] attribute EventHandler oncut;
+ [Measure] attribute EventHandler onpaste;
+ [Measure] attribute EventHandler onsearch;
+ [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures, Measure] attribute EventHandler onsecuritypolicyviolation;
+ [Measure] attribute EventHandler onselectionchange;
+ [Measure] attribute EventHandler onselectstart;
+ [Measure] attribute EventHandler onwheel;
};
Document implements GlobalEventHandlers;
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.idl ('k') | third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698