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

Issue 351033003: Simplify use of styleOrFirstLineStyle (Closed)

Created:
6 years, 6 months ago by davve
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@rename-style-bool-to-0
Project:
blink
Visibility:
Public.

Description

Simplify use of styleOrFirstLineStyle One case is when the parameter to styleOrFirstLineStyle is hardcoded, we can then just replace the call with what it expands to. The other case is when code checks document().styleEngine()->usesFirstLineRules() before calling styleOrFirstLineStyle(), firstLineStyle() itself checks document().styleEngine()->usesFirstLineRules() so the check is redundant.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -14 lines) Patch
M Source/core/rendering/RenderBR.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderInline.cpp View 2 chunks +3 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
davve
Follow-up to https://codereview.chromium.org/355843002/
6 years, 6 months ago (2014-06-25 14:18:23 UTC) #1
abarth-chromium
These changes seem reasonable, but I'm not the right reviewer. +eseidel,esprehn
6 years, 6 months ago (2014-06-25 19:49:27 UTC) #2
esprehn
I'd rather you added an enum and kept style(FirstLineStyle) or Style(OwnStyle) or something like that. ...
6 years, 6 months ago (2014-06-25 20:14:32 UTC) #3
davve
6 years, 6 months ago (2014-06-26 13:34:07 UTC) #4
On 2014/06/25 20:14:32, esprehn wrote:
> I'd rather you added an enum and kept style(FirstLineStyle) or Style(OwnStyle)
> or something like that. The bool argument is silly, which side does it mean?

I made https://codereview.chromium.org/351213002/ as a POC. Still not happy with
the name of the enum though, StyleSet feels a little bit too generic, but the
best one I could come up with for the moment.

Powered by Google App Engine
This is Rietveld 408576698