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

Issue 146193003: Remove SVGDocument binding (Closed)

Created:
6 years, 11 months ago by rwlbuis
Modified:
6 years, 10 months ago
CC:
blink-reviews, ed+blinkwatch_opera.com, krit, arv+blink, sof, eae+blinkwatch, fs, dglazkov+blink, f(malita), adamk+blink_chromium.org, gyuyoung.kim_webkit.org, Stephen Chennney, watchdog-blink-watchlist_google.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove SVGDocument binding The SVG2 specification removes the SVGDocument interface and instead suggests the SVG document to be a partial implementation on Document. This patch does that except it does a partial implement of XMLDocument, since an SVG document is also an XML Document according to DOM4. The createEvent specialization for SVG is now handled by Document. The rootElement method is still on the native SVGDocument for now. The GetSVGDocument interface now returns a Document instead of an SVGDocument as specified in SVG2 spec. BUG=238366 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166179

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix some of the comments #

Total comments: 4

Patch Set 3 : Fix getSVGDocument to return SVGDocument #

Total comments: 9

Patch Set 4 : Fix tests and add use counters #

Patch Set 5 : Rebase against ToT #

Total comments: 3

Patch Set 6 : Only put use counter on optional argument #

Patch Set 7 : Rebase against ToT #

Patch Set 8 : Rebase against ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -111 lines) Patch
M LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D LayoutTests/platform/win/svg/custom/dynamic-svg-document-creation-expected.png View 1 2 3 Binary file 0 comments Download
D LayoutTests/platform/win/svg/custom/dynamic-svg-document-creation-expected.txt View 1 2 3 1 chunk +0 lines, -36 lines 0 comments Download
M LayoutTests/svg/custom/clone-node.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/svg/custom/clone-node-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/svg/custom/dynamic-svg-document-creation.svg View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M LayoutTests/svg/custom/dynamic-svg-document-creation-expected.txt View 1 2 3 1 chunk +9 lines, -36 lines 0 comments Download
M LayoutTests/svg/custom/frame-getSVGDocument.html View 4 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/svg/custom/frame-getSVGDocument-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/svg/custom/global-constructors-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/svg/custom/manually-parsed-svg-allowed-in-dashboard-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/custom/script-tests/global-constructors.js View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/virtual/stable/webexposed/global-constructors-listing-expected.txt View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/webexposed/global-constructors-listing-expected.txt View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/dom/Document.idl View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/XMLDocument.idl View 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLEmbedElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFrameElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFrameOwnerElement.h View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M Source/core/html/HTMLIFrameElement.idl View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLObjectElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGDocument.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGDocument.cpp View 1 2 3 4 1 chunk +7 lines, -3 lines 0 comments Download
M Source/core/svg/SVGDocument.idl View 1 2 3 4 5 6 7 1 chunk +2 lines, -6 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Inactive
https://codereview.chromium.org/146193003/diff/1/Source/core/html/HTMLFrameOwnerElement.cpp File Source/core/html/HTMLFrameOwnerElement.cpp (right): https://codereview.chromium.org/146193003/diff/1/Source/core/html/HTMLFrameOwnerElement.cpp#newcode116 Source/core/html/HTMLFrameOwnerElement.cpp:116: Document* HTMLFrameOwnerElement::getSVGDocument(ExceptionState& exceptionState) const Why do we need to ...
6 years, 11 months ago (2014-01-24 00:00:38 UTC) #1
rwlbuis
On 2014/01/24 00:00:38, Chris Dumez wrote: > https://codereview.chromium.org/146193003/diff/1/Source/core/html/HTMLFrameOwnerElement.cpp > File Source/core/html/HTMLFrameOwnerElement.cpp (right): > > https://codereview.chromium.org/146193003/diff/1/Source/core/html/HTMLFrameOwnerElement.cpp#newcode116 ...
6 years, 11 months ago (2014-01-24 00:14:59 UTC) #2
Inactive
There is likely tests failing in the test/ folder. I know I added a test ...
6 years, 11 months ago (2014-01-24 00:23:47 UTC) #3
Inactive
On 2014/01/24 00:23:47, Chris Dumez wrote: > There is likely tests failing in the test/ ...
6 years, 11 months ago (2014-01-24 00:24:10 UTC) #4
rwlbuis
On 2014/01/24 00:23:47, Chris Dumez wrote: > There is likely tests failing in the test/ ...
6 years, 11 months ago (2014-01-24 00:40:18 UTC) #5
Erik Dahlström (inactive)
https://codereview.chromium.org/146193003/diff/160001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/146193003/diff/160001/Source/core/dom/Document.cpp#newcode3707 Source/core/dom/Document.cpp:3707: PassRefPtr<Event> Document::createEvent(ExceptionState& exceptionState) Do we know how much content ...
6 years, 11 months ago (2014-01-24 10:30:36 UTC) #6
Erik Dahlström (inactive)
https://codereview.chromium.org/146193003/diff/160001/Source/core/svg/SVGDocument.idl File Source/core/svg/SVGDocument.idl (right): https://codereview.chromium.org/146193003/diff/160001/Source/core/svg/SVGDocument.idl#newcode23 Source/core/svg/SVGDocument.idl:23: readonly attribute SVGSVGElement rootElement; Please add a UseCounter for ...
6 years, 11 months ago (2014-01-24 12:57:00 UTC) #7
Inactive
Looks like there are a few valid failures on the bots. https://codereview.chromium.org/146193003/diff/160001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): ...
6 years, 11 months ago (2014-01-24 14:01:59 UTC) #8
arv (Not doing code reviews)
Awesome. A few comments. https://codereview.chromium.org/146193003/diff/160001/LayoutTests/svg/custom/dynamic-svg-document-creation-expected.txt File LayoutTests/svg/custom/dynamic-svg-document-creation-expected.txt (right): https://codereview.chromium.org/146193003/diff/160001/LayoutTests/svg/custom/dynamic-svg-document-creation-expected.txt#newcode6 LayoutTests/svg/custom/dynamic-svg-document-creation-expected.txt:6: RenderBlock {html} at (0,0) size ...
6 years, 11 months ago (2014-01-24 14:46:51 UTC) #9
rwlbuis
Hi, On 2014/01/24 14:46:51, arv wrote: > Awesome. A few comments. > > https://codereview.chromium.org/146193003/diff/160001/LayoutTests/svg/custom/dynamic-svg-document-creation-expected.txt > ...
6 years, 11 months ago (2014-01-24 16:13:57 UTC) #10
rwlbuis
All green! Ready for review...
6 years, 11 months ago (2014-01-26 21:15:14 UTC) #11
Inactive
+jochen as API Owner. https://codereview.chromium.org/146193003/diff/330001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/146193003/diff/330001/Source/core/dom/Document.cpp#newcode3712 Source/core/dom/Document.cpp:3712: if (!isSVGDocument()) { The UseCounter ...
6 years, 11 months ago (2014-01-27 15:48:54 UTC) #12
jochen (gone - plz use gerrit)
what's the impact on existing web content of these changes?
6 years, 10 months ago (2014-01-28 13:15:07 UTC) #13
Inactive
On 2014/01/28 13:15:07, jochen wrote: > what's the impact on existing web content of these ...
6 years, 10 months ago (2014-01-28 14:13:33 UTC) #14
Inactive
lgtm but this needs approval from an API Owner. Also, please make sure arv / ...
6 years, 10 months ago (2014-01-28 14:17:08 UTC) #15
rwlbuis
On 2014/01/28 14:17:08, Chris Dumez wrote: > lgtm but this needs approval from an API ...
6 years, 10 months ago (2014-01-28 14:41:15 UTC) #16
rwlbuis
6 years, 10 months ago (2014-01-28 14:41:36 UTC) #17
pdr.
On 2014/01/28 14:41:36, rwlbuis wrote: LGTM2
6 years, 10 months ago (2014-01-28 21:16:35 UTC) #18
Erik Dahlström (inactive)
On 2014/01/28 21:16:35, pdr wrote: > On 2014/01/28 14:41:36, rwlbuis wrote: > > LGTM2 lgtm ...
6 years, 10 months ago (2014-01-29 00:00:38 UTC) #19
jochen (gone - plz use gerrit)
lgtm
6 years, 10 months ago (2014-01-30 08:29:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/146193003/570001
6 years, 10 months ago (2014-01-30 12:11:13 UTC) #21
commit-bot: I haz the power
Failed to apply patch for Source/core/frame/UseCounter.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-01-30 12:11:27 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 12:11:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/146193003/580001
6 years, 10 months ago (2014-01-30 20:13:24 UTC) #24
commit-bot: I haz the power
Change committed as 166179
6 years, 10 months ago (2014-01-30 22:40:59 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 22:41:09 UTC) #26
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 22:41:46 UTC) #27
Nils Barth (inactive)
6 years, 10 months ago (2014-01-31 01:26:50 UTC) #28
Message was sent while issue was closed.
Bindings generator side CL here:
Remove SVGDocument from bindings generator and test cases
https://codereview.chromium.org/151043002/

(Removing test and special-casing.)

Powered by Google App Engine
This is Rietveld 408576698