Chromium Code Reviews| Index: client/dom/templates/html/dartium/impl_Document.darttemplate |
| diff --git a/client/dom/templates/html/dartium/impl_Document.darttemplate b/client/dom/templates/html/dartium/impl_Document.darttemplate |
| index 08df5eea66cd89df139cfc06d4c0ba61694161f6..2ff6d9bd8e32be7a490096c9dbc3feda0547193a 100644 |
| --- a/client/dom/templates/html/dartium/impl_Document.darttemplate |
| +++ b/client/dom/templates/html/dartium/impl_Document.darttemplate |
| @@ -6,7 +6,7 @@ class $CLASSNAME extends _ElementImpl |
| implements Document { |
| $!MEMBERS |
| - final dom.Document _documentPtr; |
| + final dom.HTMLDocument _documentPtr; |
|
nweiz
2012/03/05 22:25:02
This type will be incorrect for XML documents. If
Jacob
2012/03/05 23:31:49
I'm not sure it makes sense for you to have
_XMLD
nweiz
2012/03/05 23:50:57
I guess since most of the members are auto-generat
|
| final _NodeImpl _wrappedDocumentPtr; |
| _DocumentImpl._wrap(ptr) : |
| @@ -15,12 +15,6 @@ _DocumentImpl._wrap(ptr) : |
| _wrappedDocumentPtr = ptr.parentNode != null ? |
| new _SecretHtmlDocumentImpl._wrap(ptr.parentNode) : null; |
| - // TODO(jacobr): remove these methods and let them be generated automatically |
| - // once dart supports defining fields with the same name in an interface and |
| - // its parent interface. |
| - String get title() => _documentPtr.title; |
| - void set title(String value) => _documentPtr.title = title; |
| - |
| // For efficiency and simplicity, we always use the HtmlElement as the |
| // Document but sometimes internally we need the real JS document object. |
| _NodeImpl get _rawDocument() => _wrappedDocumentPtr; |