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

Issue 2767853002: Remove default argument on ComputedStyle::setHasViewportUnits(). (Closed)

Created:
3 years, 9 months ago by shend
Modified:
3 years, 8 months ago
Reviewers:
rune
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove default argument on ComputedStyle::setHasViewportUnits(). Currently ComputedStyle::setHasViewportUnits() takes a boolean argument, which defaults to true. We would like to generate this field in a future patch, but we can't generate this type of setter yet. This patch removes the default argument on setHasViewportUnits() so that this setter can be generated without changing the generator. All the callers are updated to explicitly specify an argument as well. This is prework for generating setHasViewportUnits. BUG=628043 Review-Url: https://codereview.chromium.org/2767853002 Cr-Commit-Position: refs/heads/master@{#462270} Committed: https://chromium.googlesource.com/chromium/src/+/369fddb8128986e11c9485342635999297d97e96

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 1 chunk +2 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 24 (16 generated)
shend
Hi Renee, PTAL :)
3 years, 9 months ago (2017-03-22 05:10:40 UTC) #2
rune
The only reason we have a parameter here is a hack used by the ViewportStyleResolver. ...
3 years, 9 months ago (2017-03-22 08:59:51 UTC) #4
rune
Looking at the code now, we can probably afford cloning the documentStyle once per ViewportStyleResolver::resolve ...
3 years, 9 months ago (2017-03-22 09:11:06 UTC) #5
shend
On 2017/03/22 at 08:59:51, rune wrote: > The only reason we have a parameter here ...
3 years, 9 months ago (2017-03-22 22:47:20 UTC) #7
rune
On 2017/03/22 22:47:20, shend wrote: > On 2017/03/22 at 08:59:51, rune wrote: > > The ...
3 years, 9 months ago (2017-03-23 08:47:19 UTC) #8
rune
lgtm
3 years, 9 months ago (2017-03-23 08:49:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2767853002/40001
3 years, 8 months ago (2017-04-05 23:13:50 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 23:30:10 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/369fddb8128986e11c9485342635...

Powered by Google App Engine
This is Rietveld 408576698