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

Unified Diff: sky/specs/apis.md

Issue 686243002: Specs: move findId() to TreeScope since it wouldn't be O(1) on Element (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/apis.md
diff --git a/sky/specs/apis.md b/sky/specs/apis.md
index 765d674de1c9d0039a8ae101acac03d13f964b0d..afb0bede84291d27af34a821b3b63cc312b9ac2b 100644
--- a/sky/specs/apis.md
+++ b/sky/specs/apis.md
@@ -77,8 +77,6 @@ module 'sky:core' {
void append(ChildArgument... nodes); // O(N) in number of arguments plus all their descendants
void prepend(ChildArgument... nodes); // O(N) in number of arguments plus all their descendants
void replaceChildrenWith(ChildArgument... nodes); // O(N) in number of descendants plus arguments plus all their descendants
-
- Element? findId(String id); // O(1)
}
interface Attr {
@@ -129,6 +127,8 @@ module 'sky:core' {
abstract interface TreeScope : ParentNode {
readonly attribute Document? ownerDocument; // O(1)
readonly attribute TreeScope? parentScope; // O(1)
+
+ Element? findId(String id); // O(1)
}
interface ShadowRoot : TreeScope {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698