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

Issue 14458008: Clean up RenderLayer paintOrderLists code (Closed)

Created:
7 years, 8 months ago by esprehn
Modified:
7 years, 7 months ago
CC:
blink-reviews, jchaffraix+rendering, hartmanng
Visibility:
Public.

Description

Clean up RenderLayer paintOrderLists code r149028 added a ton of code to RenderLayer that was more complex than it needed to be. We should never use NodeLists from inside the render tree, and there's also no reason to use a HashSet to store RenderLayer related nodes as we can never see the same one twice. The code was also passing around the size of Vectors which is silly, Vectors have size()! :) This patch simplifies the code a bunch to match best practice in the render tree. This patch also cleans up style guide violations such as missing whitespace around keywords, an improperly indented switch, and removes the default: clause from the switch statements that match all cases as this is preferred since adding a new type for the switch enum would cause compilation failure. Another advantage of this patch is that paintOrderLists is the last user of StaticHashSetNodeList. After this patch we can remove this class. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149382

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase and fix compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -171 lines) Patch
M Source/core/rendering/RenderLayer.h View 2 chunks +3 lines, -6 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 chunks +62 lines, -164 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
esprehn
7 years, 8 months ago (2013-04-26 03:27:22 UTC) #1
jamesr
7 years, 8 months ago (2013-04-26 03:44:17 UTC) #2
Ian Vollick
Looks great, thanks! I tested the patch out and confirmed that the opt-in layout tests ...
7 years, 8 months ago (2013-04-26 13:28:16 UTC) #3
Julien - ping for review
You just proved that I have been too involved in the multiple iterations of this ...
7 years, 8 months ago (2013-04-26 14:31:14 UTC) #4
esprehn
On 2013/04/26 14:31:14, Julien Chaffraix wrote: > You just proved that I have been too ...
7 years, 8 months ago (2013-04-26 22:52:43 UTC) #5
esprehn
PTAL. It would be nice to land this so I can remove StaticHashSetNodeList. :)
7 years, 7 months ago (2013-04-28 09:27:11 UTC) #6
Julien - ping for review
LGTM (thanks to Ian for testing the change).
7 years, 7 months ago (2013-04-29 20:28:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/14458008/8001
7 years, 7 months ago (2013-04-29 21:31:13 UTC) #8
commit-bot: I haz the power
7 years, 7 months ago (2013-04-29 23:16:37 UTC) #9
Message was sent while issue was closed.
Change committed as 149382

Powered by Google App Engine
This is Rietveld 408576698