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

Issue 18139007: Remove StyleResolverState::styledElement() since we can just check isHTMLElement() or isSVGElement() (Closed)

Created:
7 years, 5 months ago by esprehn
Modified:
7 years, 5 months ago
Reviewers:
eae, dglazkov, eseidel
CC:
blink-reviews, apavlov+blink_chromium.org, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, darktears
Visibility:
Public.

Description

Remove StyleResolverState::styledElement() since we can just check isHTMLElement() or isSVGElement() StyledElement just means "HTML or SVG element" so we can just check that in the getter and use element() in the StyleResolver. This removes one more bit of state from the style resolver and simplifies the code. R=eseidel@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154096

Patch Set 1 #

Total comments: 1

Patch Set 2 : Simplify further #

Patch Set 3 : Add a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -71 lines) Patch
M Source/core/css/ElementRuleCollector.cpp View 2 chunks +4 lines, -5 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 6 chunks +31 lines, -29 lines 0 comments Download
M Source/core/css/resolver/StyleResolverState.h View 5 chunks +0 lines, -5 lines 0 comments Download
M Source/core/css/resolver/StyleResolverState.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/Node.h View 1 2 4 chunks +38 lines, -31 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
esprehn
7 years, 5 months ago (2013-07-12 06:24:41 UTC) #1
eseidel
lgtm https://codereview.chromium.org/18139007/diff/1/Source/core/dom/Node.h File Source/core/dom/Node.h (right): https://codereview.chromium.org/18139007/diff/1/Source/core/dom/Node.h#newcode261 Source/core/dom/Node.h:261: bool isStyledElement() const { return isHTMLElement() || isSVGElement(); ...
7 years, 5 months ago (2013-07-12 06:31:31 UTC) #2
esprehn
On 2013/07/12 06:31:31, eseidel wrote: > lgtm > > https://codereview.chromium.org/18139007/diff/1/Source/core/dom/Node.h > File Source/core/dom/Node.h (right): > ...
7 years, 5 months ago (2013-07-12 06:37:03 UTC) #3
eseidel
lgtm OK.
7 years, 5 months ago (2013-07-12 06:50:27 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/18139007/5001
7 years, 5 months ago (2013-07-12 06:50:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/18139007/10002
7 years, 5 months ago (2013-07-12 07:26:00 UTC) #6
esprehn
7 years, 5 months ago (2013-07-12 07:40:11 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r154096 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698