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

Issue 1469183003: Use invalidation sets for :in-range and :out-of-range. (Closed)

Created:
5 years, 1 month ago by rune
Modified:
5 years ago
Reviewers:
tkent
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use invalidation sets for :in-range and :out-of-range. Gets rid of a SubtreeStyleChange which relies on sibling tree recalcs. The changes in expectations for video-mute-repaint.html and video-unmute-repaint.html are due to the following facts: * We used to do SubtreeStyleChange for an input whose value changed. * The video controls have input elements in the UA shadow which are modified when the volume is changed. * Doing the recalc of the input means calling Element::recalcStyle on the ancestor chain, which includes the video element, just to reach the descendants which need to be recalculated. * HTMLMediaElement has a didRecalcStyle, which will call updateFromElement for LayoutVideo, which in turn does an unconditional setShouldDoFullPaintInvalidation. * Since the whole SubtreeStyleChange -> recalc is gone for the mentioned tests, the paint invalidation for LayoutVideo is gone, hence the test expectation changes. R=tkent@chromium.org BUG=557440 Committed: https://crrev.com/aa8e58a3274d31c25d15f909a2a9190149856b9b Cr-Commit-Position: refs/heads/master@{#361601}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixed review issue and expected results #

Messages

Total messages: 20 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469183003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469183003/1
5 years, 1 month ago (2015-11-24 00:59:08 UTC) #2
rune
ptal
5 years, 1 month ago (2015-11-24 01:02:25 UTC) #3
tkent
https://codereview.chromium.org/1469183003/diff/1/third_party/WebKit/Source/core/html/forms/InputType.cpp File third_party/WebKit/Source/core/html/forms/InputType.cpp (right): https://codereview.chromium.org/1469183003/diff/1/third_party/WebKit/Source/core/html/forms/InputType.cpp#newcode568 third_party/WebKit/Source/core/html/forms/InputType.cpp:568: element().pseudoStateChanged(CSSSelector::PseudoInRange); This will work, but I'd like to put ...
5 years, 1 month ago (2015-11-24 01:19:09 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/145017)
5 years, 1 month ago (2015-11-24 02:17:13 UTC) #6
rune
On 2015/11/24 01:19:09, tkent wrote: > https://codereview.chromium.org/1469183003/diff/1/third_party/WebKit/Source/core/html/forms/InputType.cpp > File third_party/WebKit/Source/core/html/forms/InputType.cpp (right): > > https://codereview.chromium.org/1469183003/diff/1/third_party/WebKit/Source/core/html/forms/InputType.cpp#newcode568 > ...
5 years, 1 month ago (2015-11-24 08:57:47 UTC) #7
rune
On 2015/11/24 08:57:47, rune wrote: > On 2015/11/24 01:19:09, tkent wrote: > > So, putting ...
5 years ago (2015-11-24 23:57:07 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469183003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469183003/20001
5 years ago (2015-11-24 23:57:09 UTC) #11
tkent
lgtm
5 years ago (2015-11-24 23:59:28 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-25 03:09:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469183003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469183003/20001
5 years ago (2015-11-25 07:17:32 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-11-25 07:22:41 UTC) #17
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/aa8e58a3274d31c25d15f909a2a9190149856b9b Cr-Commit-Position: refs/heads/master@{#361601}
5 years ago (2015-11-25 07:23:42 UTC) #18
esprehn
Can you file aa bug for the video causing an unconditional paint on all style ...
5 years ago (2015-11-25 07:41:02 UTC) #19
rune
5 years ago (2015-11-26 09:04:53 UTC) #20
Message was sent while issue was closed.
On 2015/11/25 07:41:02, esprehn wrote:
> Can you file aa bug for the video causing an unconditional paint on all style
> changes? We shouldn't have code like that, it just covers up bugs.

crbug.com/561952

Powered by Google App Engine
This is Rietveld 408576698