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

Issue 924203002: Morph the APIs for Node, ParentNode, and Element closer to the specs (Closed)

Created:
5 years, 10 months ago by abarth-chromium
Modified:
5 years, 10 months ago
Reviewers:
eseidel, esprehn, ojan
CC:
ojan, mojo-reviews_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Morph the APIs for Node, ParentNode, and Element closer to the specs These still don't match the specs exactly, but they're much closer. R=ojan@chromium.org, eseidel@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/275a60b6fc1ed5774dade875484e59683038d5f6

Patch Set 1 #

Total comments: 23

Patch Set 2 : Less ref #

Total comments: 7

Patch Set 3 : more fixes #

Patch Set 4 : more #

Patch Set 5 : less #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -362 lines) Patch
M sky/engine/bindings/scripts/dart_types.py View 1 chunk +3 lines, -14 lines 0 comments Download
M sky/engine/core/core.gni View 4 chunks +1 line, -4 lines 0 comments Download
M sky/engine/core/dom/CharacterData.idl View 1 chunk +0 lines, -3 lines 0 comments Download
D sky/engine/core/dom/ChildNode.idl View 1 chunk +0 lines, -32 lines 0 comments Download
M sky/engine/core/dom/ContainerNode.h View 3 4 4 chunks +17 lines, -2 lines 0 comments Download
M sky/engine/core/dom/ContainerNode.cpp View 3 4 3 chunks +68 lines, -2 lines 0 comments Download
M sky/engine/core/dom/Document.idl View 2 chunks +1 line, -3 lines 0 comments Download
M sky/engine/core/dom/DocumentFragment.idl View 1 chunk +1 line, -3 lines 0 comments Download
M sky/engine/core/dom/Element.h View 1 chunk +3 lines, -0 lines 0 comments Download
M sky/engine/core/dom/Element.idl View 1 chunk +35 lines, -74 lines 0 comments Download
M sky/engine/core/dom/Node.h View 2 chunks +9 lines, -1 line 0 comments Download
M sky/engine/core/dom/Node.cpp View 1 2 3 2 chunks +55 lines, -1 line 0 comments Download
M sky/engine/core/dom/Node.idl View 1 chunk +18 lines, -51 lines 0 comments Download
D sky/engine/core/dom/ParentNode.h View 1 chunk +0 lines, -73 lines 0 comments Download
M sky/engine/core/dom/ParentNode.idl View 3 4 1 chunk +24 lines, -38 lines 0 comments Download
M sky/engine/core/editing/RemoveNodePreservingChildrenCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/editing/SplitElementCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/tonic/dart_converter.h View 1 chunk +4 lines, -3 lines 0 comments Download
M sky/engine/tonic/dart_wrappable.h View 1 chunk +4 lines, -0 lines 0 comments Download
M sky/engine/tonic/dart_wrappable.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sky/tests/dom/document-child-mutations.sky View 4 chunks +4 lines, -4 lines 0 comments Download
M sky/tests/dom/ownerScope.sky View 2 chunks +8 lines, -9 lines 0 comments Download
M sky/tests/dom/replaceChild.sky View 3 chunks +3 lines, -22 lines 0 comments Download
M sky/tests/dom/replaceChild-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M sky/tests/editing/delete_block_contents.sky View 1 chunk +1 line, -3 lines 0 comments Download
M sky/tests/lowlevel/bug-438036.sky View 1 chunk +1 line, -1 line 0 comments Download
M sky/tests/lowlevel/query-selector.sky View 3 chunks +8 lines, -8 lines 0 comments Download
M sky/tests/lowlevel/style-basic.sky View 2 chunks +2 lines, -2 lines 0 comments Download
M sky/tests/lowlevel/style-basic-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
esprehn
https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Element.h File sky/engine/core/dom/Element.h (right): https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Element.h#newcode79 sky/engine/core/dom/Element.h:79: void setAttribute(const AtomicString& name, ExceptionState& es) { default this ...
5 years, 10 months ago (2015-02-13 23:53:48 UTC) #2
abarth-chromium
https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Element.h File sky/engine/core/dom/Element.h (right): https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Element.h#newcode79 sky/engine/core/dom/Element.h:79: void setAttribute(const AtomicString& name, ExceptionState& es) { On 2015/02/13 ...
5 years, 10 months ago (2015-02-13 23:59:47 UTC) #3
eseidel
https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/ContainerNode.cpp File sky/engine/core/dom/ContainerNode.cpp (right): https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/ContainerNode.cpp#newcode887 sky/engine/core/dom/ContainerNode.cpp:887: return result; This copies the vector unless c++ is ...
5 years, 10 months ago (2015-02-14 00:12:23 UTC) #4
abarth-chromium
https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Node.idl File sky/engine/core/dom/Node.idl (right): https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Node.idl#newcode6 sky/engine/core/dom/Node.idl:6: // TODO(abarth): This should actually be a named argument. ...
5 years, 10 months ago (2015-02-14 00:27:19 UTC) #5
esprehn
https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Node.cpp File sky/engine/core/dom/Node.cpp (right): https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Node.cpp#newcode415 sky/engine/core/dom/Node.cpp:415: refNode = node.release(); On 2015/02/13 at 23:59:45, abarth wrote: ...
5 years, 10 months ago (2015-02-14 01:09:25 UTC) #6
abarth-chromium
https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Node.cpp File sky/engine/core/dom/Node.cpp (right): https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Node.cpp#newcode415 sky/engine/core/dom/Node.cpp:415: refNode = node.release(); On 2015/02/14 at 01:09:25, esprehn wrote: ...
5 years, 10 months ago (2015-02-14 01:28:27 UTC) #7
abarth-chromium
PTAL
5 years, 10 months ago (2015-02-14 01:34:37 UTC) #8
esprehn
On 2015/02/14 at 01:28:27, abarth wrote: > https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Node.cpp > File sky/engine/core/dom/Node.cpp (right): > > https://codereview.chromium.org/924203002/diff/1/sky/engine/core/dom/Node.cpp#newcode415 ...
5 years, 10 months ago (2015-02-14 01:37:12 UTC) #9
esprehn
https://codereview.chromium.org/924203002/diff/20001/sky/engine/core/dom/Node.cpp File sky/engine/core/dom/Node.cpp (right): https://codereview.chromium.org/924203002/diff/20001/sky/engine/core/dom/Node.cpp#newcode411 sky/engine/core/dom/Node.cpp:411: ContainerNode* parent = refNode->parentNode(); You don't need to keep ...
5 years, 10 months ago (2015-02-14 01:50:08 UTC) #10
esprehn
https://codereview.chromium.org/924203002/diff/20001/sky/engine/core/dom/Node.cpp File sky/engine/core/dom/Node.cpp (right): https://codereview.chromium.org/924203002/diff/20001/sky/engine/core/dom/Node.cpp#newcode434 sky/engine/core/dom/Node.cpp:434: } On 2015/02/14 at 01:50:08, esprehn wrote: > RefPtr<Node> ...
5 years, 10 months ago (2015-02-14 01:51:06 UTC) #11
abarth-chromium
https://codereview.chromium.org/924203002/diff/20001/sky/engine/core/dom/Node.cpp File sky/engine/core/dom/Node.cpp (right): https://codereview.chromium.org/924203002/diff/20001/sky/engine/core/dom/Node.cpp#newcode434 sky/engine/core/dom/Node.cpp:434: } On 2015/02/14 at 01:51:06, esprehn wrote: > On ...
5 years, 10 months ago (2015-02-14 02:30:53 UTC) #12
esprehn
https://codereview.chromium.org/924203002/diff/20001/sky/engine/core/dom/Node.cpp File sky/engine/core/dom/Node.cpp (right): https://codereview.chromium.org/924203002/diff/20001/sky/engine/core/dom/Node.cpp#newcode434 sky/engine/core/dom/Node.cpp:434: } On 2015/02/14 at 02:30:53, abarth wrote: > ...
5 years, 10 months ago (2015-02-14 02:37:43 UTC) #13
abarth-chromium
PTAL
5 years, 10 months ago (2015-02-14 04:22:32 UTC) #14
ojan
lgtm
5 years, 10 months ago (2015-02-14 05:11:23 UTC) #16
abarth-chromium
5 years, 10 months ago (2015-02-14 05:40:31 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
275a60b6fc1ed5774dade875484e59683038d5f6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698