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

Issue 21430003: Implement interfaces in PaintInfo and make it a class. (Closed)

Created:
7 years, 4 months ago by Savago-old
Modified:
7 years, 4 months ago
CC:
blink-reviews, jamesr, chromiumbugtracker_adobe.com, eae+blinkwatch, leviw+renderwatch, danakj, feature-media-reviews_chromium.org, dglazkov+blink, Rik, f(malita), jchaffraix+rendering, pdr, Stephen Chennney, jeez, abinader
Base URL:
https://chromium.googlesource.com/chromium/blink.git@getterPaintInfo01
Visibility:
Public.

Description

Implement interfaces in PaintInfo and make it a class. PaintInfo is a struct used all around in rendering, there is a FIXME that dates way back to August 2011 to implement interfaces on it. This patch implement setters/getters as needed by current rendering/svg classes. It is interesting to observe that in several places, PaintInfo users were using a const pointer to access its members and call non const methods on them (thus making the use of const qualifier in the PaintInfo pointer at best useless and at worst misleading). Attention to RenderSVGResourceFilter class since its apply/postApplyResource methods may write into the received context, thus the need to restore the GraphicsContext in PaintInfo. BUG=266575 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155955

Patch Set 1 #

Patch Set 2 : Second try #

Total comments: 13

Patch Set 3 : Fixed Linux compilation (hopefuly Windows too), addressing some reviewer's suggestions. #

Total comments: 4

Patch Set 4 : Have a const function member to access the graphics context and a function for the ref-to-pointer c… #

Patch Set 5 : Step 01: PaintContainer. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M Source/core/rendering/PaintInfo.h View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Savago-old
It is simple, but a long patch. It implements setters/getters in PaintInfo (as marked in ...
7 years, 4 months ago (2013-07-31 23:58:49 UTC) #1
do-not-use
I haven't looked at everything yet because the CL is big. But it is important ...
7 years, 4 months ago (2013-08-01 18:50:14 UTC) #2
Savago-old
Christophe Thanks a lot for the review. I will comment ASAP.
7 years, 4 months ago (2013-08-02 14:54:11 UTC) #3
Savago-old
https://codereview.chromium.org/21430003/diff/6001/Source/core/platform/graphics/GraphicsContextAnnotation.h File Source/core/platform/graphics/GraphicsContextAnnotation.h (right): https://codereview.chromium.org/21430003/diff/6001/Source/core/platform/graphics/GraphicsContextAnnotation.h#newcode93 Source/core/platform/graphics/GraphicsContextAnnotation.h:93: void annotate(PaintInfo&, const RenderObject*); On 2013/08/01 18:50:14, Christophe Dumez ...
7 years, 4 months ago (2013-08-02 14:56:55 UTC) #4
do-not-use
https://codereview.chromium.org/21430003/diff/17001/Source/core/platform/graphics/GraphicsContextAnnotation.h File Source/core/platform/graphics/GraphicsContextAnnotation.h (right): https://codereview.chromium.org/21430003/diff/17001/Source/core/platform/graphics/GraphicsContextAnnotation.h#newcode63 Source/core/platform/graphics/GraphicsContextAnnotation.h:63: GraphicsContextAnnotation(PaintInfo&, const RenderObject*); I guess we could have 2 ...
7 years, 4 months ago (2013-08-05 11:16:29 UTC) #5
Savago-old
Thanks again for the review, the last version of patch addresses the issues you listed: ...
7 years, 4 months ago (2013-08-06 19:19:48 UTC) #6
eseidel
OK, this is great. BUT, we need to do this in tiny pieces for it ...
7 years, 4 months ago (2013-08-09 20:38:54 UTC) #7
eseidel
lgtm
7 years, 4 months ago (2013-08-12 19:55:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a.cavalcanti@partner.samsung.com/21430003/32001
7 years, 4 months ago (2013-08-12 19:55:19 UTC) #9
commit-bot: I haz the power
7 years, 4 months ago (2013-08-12 22:16:36 UTC) #10
Message was sent while issue was closed.
Change committed as 155955

Powered by Google App Engine
This is Rietveld 408576698