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

Issue 229413006: Don't recalculate style synchronously on hover/active. (Closed)

Created:
6 years, 8 months ago by rune
Modified:
6 years, 8 months ago
CC:
blink-reviews, sof, eae+blinkwatch, dglazkov+blink, adamk+blink_chromium.org, Inactive, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Don't recalculate style synchronously on hover/active. At the end of Document::updateHoverActiveState, we did a synchronous update of style and layout. That caused a :hover + onmouseover changing a class to trigger two style recalcs. There were no obvious reasons why the callers of that method expected the recalc + layout to happen either. R=abarth@chromium.org,esprehn@chromium.org BUG=361164 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171147

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -2 lines) Patch
A LayoutTests/fast/css/hover-recalc.html View 1 chunk +51 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/hover-recalc-expected.txt View 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rune
6 years, 8 months ago (2014-04-09 07:12:36 UTC) #1
abarth-chromium
lgtm Crazy
6 years, 8 months ago (2014-04-09 15:36:29 UTC) #2
rune
The CQ bit was checked by rune@opera.com
6 years, 8 months ago (2014-04-09 16:21:09 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/229413006/1
6 years, 8 months ago (2014-04-09 16:21:17 UTC) #4
commit-bot: I haz the power
6 years, 8 months ago (2014-04-09 17:45:04 UTC) #5
Message was sent while issue was closed.
Change committed as 171147

Powered by Google App Engine
This is Rietveld 408576698