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

Issue 33523002: Have Frame::script() return a reference (Closed)

Created:
7 years, 2 months ago by Inactive
Modified:
7 years, 2 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, Nils Barth (inactive), caseq+blink_chromium.org, Nate Chapin, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, devtools-reviews_chromium.org, nessy, loislo+blink_chromium.org, lushnikov+blink_chromium.org, feature-media-reviews_chromium.org, paulirish+reviews_chromium.org, kojih, vcarbune.chromium, jsbell+bindings_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org
Visibility:
Public.

Description

Have Frame::script() return a reference Have Frame::script() return a reference instead of a pointer as it can never return null. This makes the calling code look safer and gets rid of a few unnecessary null-checks. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160271

Patch Set 1 #

Patch Set 2 : Rebase on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -125 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/DOMWrapperWorld.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/DOMWrapperWorld.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/NPV8Object.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/bindings/v8/PageScriptDebugServer.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/v8/ScheduledAction.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/v8/ScriptController.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M Source/bindings/v8/ScriptEventListener.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M Source/bindings/v8/ScriptPreprocessor.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/ScriptPreprocessor.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/ScriptState.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/v8/V8EventListener.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8Initializer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8LazyEventListener.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8WindowShell.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8HTMLDocumentCustom.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8WindowCustom.cpp View 1 5 chunks +6 lines, -6 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 8 chunks +8 lines, -8 lines 0 comments Download
M Source/core/dom/ScriptLoader.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/ContentSecurityPolicy.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/DOMWindow.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/Frame.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/frame/Frame.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/Navigator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLCanvasElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLDocument.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFrameElementBase.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLPlugInElement.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/parser/HTMLParserOptions.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorAgent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorClient.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M Source/core/inspector/InspectorIndexedDBAgent.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/inspector/InspectorOverlay.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/inspector/PageRuntimeAgent.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 5 chunks +6 lines, -6 lines 0 comments Download
M Source/core/page/EventSource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/XMLTreeViewer.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/websockets/WebSocket.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/InspectorFrontendClientImpl.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebBindings.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebDevToolsAgentImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebDevToolsFrontendImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 6 chunks +12 lines, -11 lines 0 comments Download
M Source/web/WebPluginContainerImpl.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Inactive
7 years, 2 months ago (2013-10-21 19:42:47 UTC) #1
haraken
LGTM
7 years, 2 months ago (2013-10-21 22:32:10 UTC) #2
Inactive
tkent@, could you please take a look for Source/web?
7 years, 2 months ago (2013-10-22 13:18:24 UTC) #3
abarth-chromium
rs=me
7 years, 2 months ago (2013-10-22 18:41:20 UTC) #4
abarth-chromium
lgtm
7 years, 2 months ago (2013-10-22 18:41:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/33523002/1
7 years, 2 months ago (2013-10-22 20:31:34 UTC) #6
commit-bot: I haz the power
Failed to apply patch for Source/core/inspector/PageRuntimeAgent.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 2 months ago (2013-10-22 20:31:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/33523002/100001
7 years, 2 months ago (2013-10-22 21:21:14 UTC) #8
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 2 months ago (2013-10-22 23:24:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/33523002/100001
7 years, 2 months ago (2013-10-22 23:28:49 UTC) #10
commit-bot: I haz the power
7 years, 2 months ago (2013-10-22 23:30:12 UTC) #11
Message was sent while issue was closed.
Change committed as 160271

Powered by Google App Engine
This is Rietveld 408576698