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

Issue 8965006: Support SVGElement#elements, #innerHTML, and #outerHTML. Also add a .svg constructor. (Closed)

Created:
9 years ago by nweiz
Modified:
8 years, 11 months ago
Reviewers:
sra1, Jacob
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support SVGElement#elements, #innerHTML, and #outerHTML. Also add a .svg constructor. Committed: https://code.google.com/p/dart/source/detail?r=2975

Patch Set 1 #

Total comments: 10

Patch Set 2 : Code review changes. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -12 lines) Patch
M client/html/release/html.dart View 1 chunk +1 line, -0 lines 0 comments Download
M client/html/release/htmlimpl.dart View 6 chunks +56 lines, -6 lines 0 comments Download
M client/html/src/ElementWrappingImplementation.dart View 1 3 chunks +5 lines, -5 lines 0 comments Download
M client/html/src/SVGElement.dart View 1 chunk +1 line, -0 lines 0 comments Download
M client/html/src/SVGElementWrappingImplementation.dart View 1 2 chunks +50 lines, -0 lines 2 comments Download
M client/html/src/SVGSVGElementWrappingImplementation.dart View 1 chunk +1 line, -1 line 0 comments Download
M client/tests/client/client.status View 1 chunk +1 line, -0 lines 0 comments Download
A client/tests/client/html/SVGElementTests.dart View 1 1 chunk +181 lines, -0 lines 0 comments Download
M client/tests/client/html/html_tests.dart View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
nweiz
9 years ago (2011-12-15 21:23:24 UTC) #1
Jacob
looking very good. a few minor comments. http://codereview.chromium.org/8965006/diff/1/client/html/src/SVGElementWrappingImplementation.dart File client/html/src/SVGElementWrappingImplementation.dart (right): http://codereview.chromium.org/8965006/diff/1/client/html/src/SVGElementWrappingImplementation.dart#newcode14 client/html/src/SVGElementWrappingImplementation.dart:14: final match ...
9 years ago (2011-12-15 21:46:59 UTC) #2
nweiz
http://codereview.chromium.org/8965006/diff/1/client/html/src/SVGElementWrappingImplementation.dart File client/html/src/SVGElementWrappingImplementation.dart (right): http://codereview.chromium.org/8965006/diff/1/client/html/src/SVGElementWrappingImplementation.dart#newcode14 client/html/src/SVGElementWrappingImplementation.dart:14: final match = ElementWrappingImplementation._START_TAG_REGEXP. On 2011/12/15 21:46:59, Jacob wrote: ...
9 years ago (2011-12-15 23:02:01 UTC) #3
Jacob
lgtm
8 years, 11 months ago (2012-01-04 22:54:31 UTC) #4
sra1
http://codereview.chromium.org/8965006/diff/2002/client/html/src/SVGElementWrappingImplementation.dart File client/html/src/SVGElementWrappingImplementation.dart (right): http://codereview.chromium.org/8965006/diff/2002/client/html/src/SVGElementWrappingImplementation.dart#newcode62 client/html/src/SVGElementWrappingImplementation.dart:62: container.elements.addAll(this.clone(true).elements); This breaks the build because the static type ...
8 years, 11 months ago (2012-01-05 04:35:27 UTC) #5
Jacob
8 years, 11 months ago (2012-01-05 16:39:48 UTC) #6
http://codereview.chromium.org/8965006/diff/2002/client/html/src/SVGElementWr...
File client/html/src/SVGElementWrappingImplementation.dart (right):

http://codereview.chromium.org/8965006/diff/2002/client/html/src/SVGElementWr...
client/html/src/SVGElementWrappingImplementation.dart:62:
container.elements.addAll(this.clone(true).elements);
On 2012/01/05 04:35:27, sra1 wrote:
> This breaks the build because the static type returned by clone is Node.
> 
> dart://html/html/htmlimpl.dart:24074: "elements" is not a member of Node
>  24073:     final container = new Element.tag("div");
>  24074:     container.elements.addAll(this.clone(true).elements);
>                                                        ~~~~~~~~
> 
> Add a .dynamic

The better fix is to define .clone on Element as well as Node. The version for
Element should have a return type of Element rather than Node.

Powered by Google App Engine
This is Rietveld 408576698