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

Issue 840463002: Fix assert when interpolating using unset (Closed)

Created:
5 years, 11 months ago by rwlbuis
Modified:
5 years, 11 months ago
Reviewers:
dstockwell, Timothy Loh
CC:
blink-reviews, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix assert when interpolating using unset In Debug mode interpolating using unset hit an ASSERT because StyleBuilder::applyProperty did not take it into account and assumed the CSSValue was a primitive value if not initial or inherit. So add the code to handle unset and determine if we should fallback to inherit or initial for the given property. Add a test for interpolating unset with an inherited property (font-size) and one which falls back to initial (background-color). BUG=445332 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188009

Patch Set 1 #

Patch Set 2 : Add tests #

Patch Set 3 : Remove unset handling code in StyleResolver::applyProperties #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -25 lines) Patch
A + LayoutTests/animations/interpolation/background-color-interpolation-unset.html View 1 2 chunks +2 lines, -13 lines 0 comments Download
A LayoutTests/animations/interpolation/background-color-interpolation-unset-expected.txt View 1 1 chunk +16 lines, -0 lines 0 comments Download
A + LayoutTests/animations/interpolation/font-size-interpolation-unset.html View 1 3 chunks +8 lines, -3 lines 0 comments Download
A LayoutTests/animations/interpolation/font-size-interpolation-unset-expected.txt View 1 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 chunk +8 lines, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
rwlbuis
PTAL. I think the mac bot problem is unrelated.
5 years, 11 months ago (2015-01-06 21:28:43 UTC) #2
Timothy Loh
Could you CC me to the bug? :) This duplicates the unset handling in StyleResolver::applyProperties, ...
5 years, 11 months ago (2015-01-06 23:34:52 UTC) #4
rwlbuis
On 2015/01/06 23:34:52, Timothy Loh wrote: > Could you CC me to the bug? :) ...
5 years, 11 months ago (2015-01-06 23:49:43 UTC) #5
rwlbuis
On 2015/01/06 23:34:52, Timothy Loh wrote: > Could you CC me to the bug? :) ...
5 years, 11 months ago (2015-01-07 01:43:54 UTC) #6
rwlbuis
On 2015/01/07 01:43:54, rwlbuis wrote: > > This duplicates the unset handling in StyleResolver::applyProperties, but ...
5 years, 11 months ago (2015-01-07 16:55:04 UTC) #7
Timothy Loh
On 2015/01/07 16:55:04, rwlbuis wrote: > On 2015/01/07 01:43:54, rwlbuis wrote: > > > This ...
5 years, 11 months ago (2015-01-07 23:07:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/840463002/40001
5 years, 11 months ago (2015-01-07 23:17:45 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 00:25:11 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188009

Powered by Google App Engine
This is Rietveld 408576698