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

Unified Diff: sky/specs/dom.md

Issue 912653003: Specs: Dartification or various odds and ends (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/specs/debug.md ('k') | sky/specs/idl.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/dom.md
diff --git a/sky/specs/dom.md b/sky/specs/dom.md
index 02070e0c4fd451bb71c1776ce74181dbee47fb97..7262fcf2d1d9e8fa6d6c9afbbb3fa1df9bc59ac9 100644
--- a/sky/specs/dom.md
+++ b/sky/specs/dom.md
@@ -2,6 +2,10 @@ Sky DOM APIs
============
```dart
+SKY MODULE
+<!-- part of sky:core -->
+
+<script>
// ELEMENT TREE API
abstract class ChildNode {
@@ -183,7 +187,7 @@ Type rootLayoutManager = BlockLayoutManager; // O(1)
@tagname('import')
class ImportElement extends Element {
- //XXX ImportElement = Element;
+ ImportElement = Element;
@override
Type getLayoutManager() => null; // O(1)
@@ -191,7 +195,7 @@ class ImportElement extends Element {
@tagname('template')
class TemplateElement extends Element {
- //XXX TemplateElement = Element;
+ TemplateElement = Element;
// TODO(ianh): convert <template> to using a token stream instead of a DocumentFragment
@@ -203,7 +207,7 @@ class TemplateElement extends Element {
@tagname('script')
class ScriptElement extends Element {
- //XXX ScriptElement = Element;
+ ScriptElement = Element;
@override
Type getLayoutManager() => null; // O(1)
@@ -211,7 +215,7 @@ class ScriptElement extends Element {
@tagname('style')
class StyleElement extends Element {
- //XXX StyleElement = Element;
+ StyleElement = Element;
@nonnull external List</*@nonnull*/ Rule> getRules(); // O(N) in rules
@@ -221,7 +225,7 @@ class StyleElement extends Element {
@tagname('content')
class ContentElement extends Element {
- //XXX ContentElement = Element;
+ ContentElement = Element;
@nonnull external List</*@nonnull*/ Node> getDistributedNodes(); // O(N) in distributed nodes
@@ -231,7 +235,7 @@ class ContentElement extends Element {
@tagname('img')
class ImgElement extends Element {
- //XXX ImgElement = Element;
+ ImgElement = Element;
@override
Type getLayoutManager() => ImgElementLayoutManager; // O(1)
@@ -239,17 +243,17 @@ class ImgElement extends Element {
@tagname('div')
class DivElement extends Element {
- //XXX DivElement = Element;
+ DivElement = Element;
}
@tagname('span')
class SpanElement extends Element {
- //XXX SpanElement = Element;
+ SpanElement = Element;
}
@tagname('iframe')
class IframeElement extends Element {
- //XXX IframeElement = Element;
+ IframeElement = Element;
@override
Type getLayoutManager() => IframeElementLayoutManager; // O(1)
@@ -257,27 +261,27 @@ class IframeElement extends Element {
@tagname('t')
class TElement extends Element {
- //XXX TElement = Element;
+ TElement = Element;
}
@tagname('a')
class AElement extends Element {
- //XXX AElement = Element;
+ AElement = Element;
}
@tagname('title')
class TitleElement extends Element {
- //XXX TitleElement = Element;
+ TitleElement = Element;
@override
Type getLayoutManager() => null; // O(1)
}
-class ErrorElement extends Element {
- ErrorElement._create();
+class _ErrorElement extends Element {
+ _ErrorElement._create();
@override
- Type getLayoutManager() => ErrorElementLayoutManager; // O(1)
+ Type getLayoutManager() => _ErrorElementLayoutManager; // O(1)
}
class SelectorQuery {
@@ -287,4 +291,5 @@ class SelectorQuery {
external Element find(@nonnull FindRoot root); // O(N*F())+O(M) where N is the number of descendants and M the average depth of the tree
@nonnull external List</*@nonnull*/ Element> findAll(FindRoot root); // O(N*F())+O(N*M) where N is the number of descendants and M the average depth of the tree
}
+</script>
```
« no previous file with comments | « sky/specs/debug.md ('k') | sky/specs/idl.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698