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

Issue 68253003: StyleResolverParentPusher can decide if it needs to push at creation time (Closed)

Created:
7 years, 1 month ago by esprehn
Modified:
7 years, 1 month ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

StyleResolverParentPusher can decide if it needs to push at creation time We can decide at creation time if the ParentPusher needs to push a parent style to the bloom filter instead of having a push() method call inside of each of the loops during recalcStyle. I also removed the ASSERT and if statement (with the same check) from inside the ParentPusher. There's no reason to guard against getting the parent stack wrong, the stack itself already has guards against it and getting it wrong is not a security issue (so there's no reason for an ASSERT and duplicate if). Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161770

Patch Set 1 #

Total comments: 1

Patch Set 2 : add back explicit #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -30 lines) Patch
M Source/core/dom/Element.cpp View 1 2 3 5 chunks +13 lines, -30 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
esprehn
7 years, 1 month ago (2013-11-11 02:58:05 UTC) #1
leviw_travelin_and_unemployed
LGTM. https://codereview.chromium.org/68253003/diff/1/Source/core/dom/Element.cpp File Source/core/dom/Element.cpp (right): https://codereview.chromium.org/68253003/diff/1/Source/core/dom/Element.cpp#newcode112 Source/core/dom/Element.cpp:112: StyleResolverParentPusher(Element& parent, StyleRecalcChange change = NoChange) Since the ...
7 years, 1 month ago (2013-11-11 18:56:15 UTC) #2
esprehn
On 2013/11/11 18:56:15, Levi wrote: > LGTM. > > https://codereview.chromium.org/68253003/diff/1/Source/core/dom/Element.cpp > File Source/core/dom/Element.cpp (right): > ...
7 years, 1 month ago (2013-11-11 19:02:53 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/68253003/60001
7 years, 1 month ago (2013-11-11 19:08:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/68253003/190001
7 years, 1 month ago (2013-11-12 06:13:09 UTC) #5
commit-bot: I haz the power
7 years, 1 month ago (2013-11-12 07:16:08 UTC) #6
Message was sent while issue was closed.
Change committed as 161770

Powered by Google App Engine
This is Rietveld 408576698