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

Issue 181823002: Have Document::getCSSCanvasElement() return a reference (Closed)

Created:
6 years, 10 months ago by Inactive
Modified:
6 years, 10 months ago
Reviewers:
adamk
CC:
blink-reviews, sof, eae+blinkwatch, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears, rune+blink, Inactive, rwlbuis
Visibility:
Public.

Description

Have Document::getCSSCanvasElement() return a reference Have Document::getCSSCanvasElement() return a reference instead of a pointer as it can never return null. It makes the calling code look safer and gets rid of some unnecessary null checks. R=adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167934

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -11 lines) Patch
M Source/core/css/CSSCanvasValue.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/dom/Document.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 chunk +5 lines, -7 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Inactive
6 years, 10 months ago (2014-02-26 18:04:51 UTC) #1
adamk
lgtm
6 years, 10 months ago (2014-02-26 18:06:12 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/181823002/1
6 years, 10 months ago (2014-02-26 18:06:28 UTC) #3
commit-bot: I haz the power
6 years, 10 months ago (2014-02-26 22:12:46 UTC) #4
Message was sent while issue was closed.
Change committed as 167934

Powered by Google App Engine
This is Rietveld 408576698