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

Issue 107073003: Introduce DEFINE_DOCUMENT_TYPE_CASTS, and use it (Closed)

Created:
7 years ago by gyuyoung-inactive
Modified:
7 years ago
Reviewers:
tkent
CC:
blink-reviews, krit, eae+blinkwatch, dglazkov+blink, f(malita), adamk+blink_chromium.org, pdr, Stephen Chennney, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Introduce DEFINE_DOCUMENT_TYPE_CASTS, and use it As a step to use DEFINE_TYPE_CASTS, this cl introduce DEFINE_DOCUMENT_TYPE_CASTS. It's used by HTMLDocument, ImageDocument, PluginDocument, and SVGDocument in order to replace manual toFoo() with generated toFoo() which supports all cast functions. BUG=309516 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163404

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -74 lines) Patch
M Source/core/dom/Document.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/html/HTMLDocument.h View 1 2 3 1 chunk +1 line, -26 lines 0 comments Download
M Source/core/html/ImageDocument.h View 1 2 3 1 chunk +1 line, -14 lines 0 comments Download
M Source/core/html/PluginDocument.h View 1 2 3 1 chunk +1 line, -20 lines 0 comments Download
M Source/core/svg/SVGDocument.h View 1 2 3 1 chunk +1 line, -14 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
gyuyoung-inactive
7 years ago (2013-12-08 14:42:28 UTC) #1
tkent
https://codereview.chromium.org/107073003/diff/20001/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/107073003/diff/20001/Source/core/dom/Document.h#newcode1349 Source/core/dom/Document.h:1349: #define DEFINE_DOCUMENT_CASTS_WITH_FUNCTION(thisType) \ This is inconsistent with others. * ...
7 years ago (2013-12-09 00:17:27 UTC) #2
gyuyoung-inactive
https://codereview.chromium.org/107073003/diff/20001/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/107073003/diff/20001/Source/core/dom/Document.h#newcode1349 Source/core/dom/Document.h:1349: #define DEFINE_DOCUMENT_CASTS_WITH_FUNCTION(thisType) \ On 2013/12/09 00:17:27, tkent wrote: > ...
7 years ago (2013-12-09 03:58:09 UTC) #3
tkent
https://codereview.chromium.org/107073003/diff/80001/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/107073003/diff/80001/Source/core/dom/Document.h#newcode1350 Source/core/dom/Document.h:1350: #define DEFINE_DOCUMENT_TYPE_CASTS(thisType, predicate) \ You don't need to add ...
7 years ago (2013-12-09 04:08:17 UTC) #4
gyuyoung-inactive
https://codereview.chromium.org/107073003/diff/80001/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/107073003/diff/80001/Source/core/dom/Document.h#newcode1350 Source/core/dom/Document.h:1350: #define DEFINE_DOCUMENT_TYPE_CASTS(thisType, predicate) \ On 2013/12/09 04:08:17, tkent wrote: ...
7 years ago (2013-12-09 04:42:27 UTC) #5
tkent
please update the CL description.
7 years ago (2013-12-09 04:54:33 UTC) #6
gyuyoung-inactive
On 2013/12/09 04:54:33, tkent wrote: > please update the CL description. Updated.
7 years ago (2013-12-09 05:06:27 UTC) #7
tkent
https://codereview.chromium.org/107073003/diff/100001/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/107073003/diff/100001/Source/core/dom/Document.h#newcode1350 Source/core/dom/Document.h:1350: #define DEFINE_DOCUMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ As I already wrote, this function ...
7 years ago (2013-12-09 05:12:29 UTC) #8
gyuyoung-inactive
On 2013/12/09 05:12:29, tkent wrote: > https://codereview.chromium.org/107073003/diff/100001/Source/core/dom/Document.h > File Source/core/dom/Document.h (right): > > https://codereview.chromium.org/107073003/diff/100001/Source/core/dom/Document.h#newcode1350 > ...
7 years ago (2013-12-09 05:17:17 UTC) #9
gyuyoung-inactive
On 2013/12/09 05:17:17, gyuyoung wrote: > On 2013/12/09 05:12:29, tkent wrote: > > > https://codereview.chromium.org/107073003/diff/100001/Source/core/dom/Document.h ...
7 years ago (2013-12-09 05:36:46 UTC) #10
tkent
lgtm
7 years ago (2013-12-09 05:56:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gyuyoung.kim@samsung.com/107073003/120001
7 years ago (2013-12-09 05:56:44 UTC) #12
commit-bot: I haz the power
7 years ago (2013-12-09 07:55:48 UTC) #13
Message was sent while issue was closed.
Change committed as 163404

Powered by Google App Engine
This is Rietveld 408576698