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

Issue 176763009: Have DOMWindow deal with references instead of pointers when possible (Closed)

Created:
6 years, 9 months ago by Inactive
Modified:
6 years, 9 months ago
CC:
blink-reviews, kojih, arv+blink, jsbell+bindings_chromium.org, feature-media-reviews_chromium.org, rwlbuis, eric.carlson_apple.com, sof, eae+blinkwatch, gavinp+loader_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, philipj_slow
Visibility:
Public.

Description

Have DOMWindow deal with references instead of pointers when possible Have DOMWindow deal with references instead of pointers when possible. This makes the code look safer and gets rid of unnecessary null checks. This CL also updates the generated bindings so that they allow for the implementation to return references instead of pointers in more cases. R=adamk@chromium.org, nbarth@chromium.org, adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168422

Patch Set 1 #

Patch Set 2 : Remove FIXME comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -142 lines) Patch
M Source/bindings/scripts/v8_callback_interface.py View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/v8_interface.py View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/attributes.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.cpp View 9 chunks +9 lines, -9 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M Source/core/frame/DOMWindow.h View 8 chunks +21 lines, -21 lines 0 comments Download
M Source/core/frame/DOMWindow.cpp View 18 chunks +51 lines, -55 lines 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/CreateWindow.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/CreateWindow.cpp View 4 chunks +30 lines, -28 lines 0 comments Download
M Source/modules/mediasource/VideoPlaybackQuality.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webmidi/MIDIOutput.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Inactive
6 years, 9 months ago (2014-03-04 02:40:39 UTC) #1
Nils Barth (inactive)
haraken: we're ok with using WTF::getPtr if it's useful, right? LGTM While the WTF::getPtr makes ...
6 years, 9 months ago (2014-03-04 02:50:39 UTC) #2
Inactive
On 2014/03/04 02:50:39, Nils Barth wrote: > While the WTF::getPtr makes the CG a little ...
6 years, 9 months ago (2014-03-04 03:20:45 UTC) #3
haraken
> haraken: we're ok with using WTF::getPtr if it's useful, right? Yes. A few months ...
6 years, 9 months ago (2014-03-04 03:27:23 UTC) #4
Inactive
On 2014/03/04 02:50:39, Nils Barth wrote: > Also, since this and previous CL (removing [SetWrapperReferenceFromReference]) ...
6 years, 9 months ago (2014-03-04 03:31:37 UTC) #5
Inactive
adamk / abarth: could you please take a look at the tiny change in web/ ...
6 years, 9 months ago (2014-03-04 03:32:06 UTC) #6
Nils Barth (inactive)
On 2014/03/04 03:31:37, Chris Dumez wrote: > On 2014/03/04 02:50:39, Nils Barth wrote: > > ...
6 years, 9 months ago (2014-03-04 03:51:14 UTC) #7
adamk
rslgtm for web, but I wouldn't be surprised if you need some module owners (or ...
6 years, 9 months ago (2014-03-04 04:52:04 UTC) #8
Inactive
On 2014/03/04 04:52:04, adamk wrote: > rslgtm for web, but I wouldn't be surprised if ...
6 years, 9 months ago (2014-03-04 05:00:11 UTC) #9
Inactive
6 years, 9 months ago (2014-03-05 03:10:37 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 manually as r168422 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698