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

Issue 181513002: Kill [SetWrapperReferenceFromReference] IDL extended attribute (Closed)

Created:
6 years, 10 months ago by Inactive
Modified:
6 years, 9 months ago
CC:
blink-reviews, kojih, arv+blink, jsbell+bindings_chromium.org, rwlbuis, sof, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, watchdog-blink-watchlist_google.com, deepak.sa
Visibility:
Public.

Description

Kill [SetWrapperReferenceFromReference] IDL extended attribute Kill [SetWrapperReferenceFromReference] IDL extended attribute to reduce the complexity of our IDL and of our bindings generators. We now use only [SetWrapperReferenceFrom] IDL extended attribute and the generated bindings code will accept that the implementation returns either a reference or a pointer (by constructing using WTF::getPtr()). R=haraken, adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168048

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix nit #

Total comments: 2

Patch Set 3 : Use WTF::getPtr() #

Patch Set 4 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -346 lines) Patch
M Source/bindings/IDLExtendedAttributes.txt View 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/scripts/v8_interface.py View 1 2 3 3 chunks +1 line, -4 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 2 chunks +3 lines, -5 lines 2 comments Download
D Source/bindings/tests/idls/TestInterfacePython4.idl View 1 chunk +0 lines, -12 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfacePython2.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
D Source/bindings/tests/results/V8TestInterfacePython4.h View 1 chunk +0 lines, -156 lines 0 comments Download
D Source/bindings/tests/results/V8TestInterfacePython4.cpp View 1 chunk +0 lines, -162 lines 0 comments Download
M Source/core/dom/DOMImplementation.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLAllCollection.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLCollection.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFormControlsCollection.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLOptionsCollection.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/wtf/GetPtr.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Inactive
https://codereview.chromium.org/181513002/diff/1/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/181513002/diff/1/Source/bindings/scripts/code_generator_v8.pm#newcode572 Source/bindings/scripts/code_generator_v8.pm:572: if (RefPtr<Node> owner = PassRefPtr<Node>(impl->${isReachableMethod}())) { The RefPtr / ...
6 years, 10 months ago (2014-02-26 14:16:55 UTC) #1
Inactive
+deepak in cc as he added the attribute.
6 years, 10 months ago (2014-02-26 14:17:31 UTC) #2
haraken
LGTM https://codereview.chromium.org/181513002/diff/1/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/181513002/diff/1/Source/bindings/scripts/code_generator_v8.pm#newcode572 Source/bindings/scripts/code_generator_v8.pm:572: if (RefPtr<Node> owner = PassRefPtr<Node>(impl->${isReachableMethod}())) { $isReachableMethod => ...
6 years, 10 months ago (2014-02-26 16:06:39 UTC) #3
Inactive
https://codereview.chromium.org/181513002/diff/1/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/181513002/diff/1/Source/bindings/scripts/code_generator_v8.pm#newcode572 Source/bindings/scripts/code_generator_v8.pm:572: if (RefPtr<Node> owner = PassRefPtr<Node>(impl->${isReachableMethod}())) { On 2014/02/26 16:06:40, ...
6 years, 10 months ago (2014-02-26 16:14:15 UTC) #4
adamk
Seems fine, but I wonder if this could be a little simpler... https://codereview.chromium.org/181513002/diff/20001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm ...
6 years, 10 months ago (2014-02-26 17:55:37 UTC) #5
Inactive
https://codereview.chromium.org/181513002/diff/20001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/181513002/diff/20001/Source/bindings/scripts/code_generator_v8.pm#newcode572 Source/bindings/scripts/code_generator_v8.pm:572: if (RefPtr<Node> owner = PassRefPtr<Node>(impl->${setWrapperReferenceMethod}())) { On 2014/02/26 17:55:38, ...
6 years, 10 months ago (2014-02-26 18:01:56 UTC) #6
Inactive
I am now using WTF::getPtr(). +tkent for the change to wtf/
6 years, 10 months ago (2014-02-26 18:18:04 UTC) #7
haraken
tkent@ is OOO today. jochen@: would you take a look at wtf?
6 years, 10 months ago (2014-02-26 22:48:18 UTC) #8
Inactive
On 2014/02/26 22:48:18, haraken wrote: > tkent@ is OOO today. > > jochen@: would you ...
6 years, 10 months ago (2014-02-26 22:50:22 UTC) #9
Inactive
+eseidel for wtf/
6 years, 10 months ago (2014-02-26 22:50:47 UTC) #10
jochen (gone - plz use gerrit)
lgtm
6 years, 9 months ago (2014-02-27 14:24:11 UTC) #11
Inactive
On 2014/02/27 14:24:11, jochen (OOO from March 1) wrote: > lgtm Thanks!
6 years, 9 months ago (2014-02-27 14:25:26 UTC) #12
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 9 months ago (2014-02-27 14:25:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/181513002/40001
6 years, 9 months ago (2014-02-27 14:26:11 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 16:15:44 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=29414
6 years, 9 months ago (2014-02-27 16:15:45 UTC) #16
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 9 months ago (2014-02-27 16:18:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/181513002/40001
6 years, 9 months ago (2014-02-27 16:18:35 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 16:18:38 UTC) #19
commit-bot: I haz the power
Failed to apply patch for Source/bindings/scripts/code_generator_v8.pm: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 9 months ago (2014-02-27 16:18:39 UTC) #20
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 9 months ago (2014-02-27 16:25:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/181513002/60001
6 years, 9 months ago (2014-02-27 16:25:49 UTC) #22
commit-bot: I haz the power
Change committed as 168048
6 years, 9 months ago (2014-02-27 19:42:49 UTC) #23
Nils Barth (inactive)
On 2014/02/27 19:42:49, I haz the power (commit-bot) wrote: > Change committed as 168048 Thanks ...
6 years, 9 months ago (2014-02-28 02:16:34 UTC) #24
Nils Barth (inactive)
Just noticed some cruft; will fix. https://codereview.chromium.org/181513002/diff/60001/Source/bindings/templates/interface.cpp File Source/bindings/templates/interface.cpp (right): https://codereview.chromium.org/181513002/diff/60001/Source/bindings/templates/interface.cpp#newcode706 Source/bindings/templates/interface.cpp:706: {% if reachable_node_function ...
6 years, 9 months ago (2014-02-28 02:18:16 UTC) #25
Nils Barth (inactive)
6 years, 9 months ago (2014-03-03 01:58:30 UTC) #26
Message was sent while issue was closed.
https://codereview.chromium.org/181513002/diff/60001/Source/bindings/template...
File Source/bindings/templates/interface.cpp (right):

https://codereview.chromium.org/181513002/diff/60001/Source/bindings/template...
Source/bindings/templates/interface.cpp:706: {% if reachable_node_function or
set_wrapper_reference_to_list %}
On 2014/02/28 02:18:16, Nils Barth wrote:
> This conditional is no longer necessary; I'll fix in a followup.

Fixed in:
Cleanup [SetWrapperReferenceFromReference] cruft
https://codereview.chromium.org/176993007/

Powered by Google App Engine
This is Rietveld 408576698