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

Issue 179363005: Remove dependency on element in applying color properties (Closed)

Created:
6 years, 10 months ago by Timothy Loh
Modified:
6 years, 9 months ago
Reviewers:
dstockwell, esprehn
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), rwlbuis, rune+blink, dglazkov+blink, apavlov+blink_chromium.org, darktears, Steve Block, dino_apple.com, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove dependency on element in applying color properties This patch removes the state.element().isLink() calls in applying color properties for visited links. This has a small behavioural change where the -webkit-link color keyword will now be the visited link color for a visited link descendent (bug 82498). I don't think we can currently test visited link colors in a layout test. This also fixes a crash when trying to set color in a pseudo-element animation on a link element (or descendent), since we go through the StyleBuilder with a null element. Note that the other places in the StyleBuilder where we access the element already check for null. BUG=82498, 343048 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168435

Patch Set 1 : #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
A LayoutTests/animations/pseudo-element-animation-with-color-crash.html View 1 1 chunk +11 lines, -0 lines 0 comments Download
A + LayoutTests/animations/pseudo-element-animation-with-color-crash-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Timothy Loh
6 years, 10 months ago (2014-02-26 04:03:23 UTC) #1
dstockwell
I don't really understand 82498. It was marked as WontFix as the current behavior was ...
6 years, 9 months ago (2014-02-28 02:02:39 UTC) #2
Timothy Loh
On 2014/02/28 02:02:39, dstockwell wrote: > I don't really understand 82498. It was marked as ...
6 years, 9 months ago (2014-02-28 02:57:26 UTC) #3
dstockwell
lgtm Looks like it was just trying to avoid accidental leakage. A follow up change ...
6 years, 9 months ago (2014-03-04 01:51:59 UTC) #4
Timothy Loh
The CQ bit was checked by timloh@chromium.org
6 years, 9 months ago (2014-03-04 02:38:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timloh@chromium.org/179363005/40002
6 years, 9 months ago (2014-03-04 02:39:00 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 20:41:00 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=25680
6 years, 9 months ago (2014-03-04 20:41:00 UTC) #8
Timothy Loh
The CQ bit was checked by timloh@chromium.org
6 years, 9 months ago (2014-03-04 23:07:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timloh@chromium.org/179363005/40002
6 years, 9 months ago (2014-03-04 23:08:06 UTC) #10
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 06:06:38 UTC) #11
Message was sent while issue was closed.
Change committed as 168435

Powered by Google App Engine
This is Rietveld 408576698