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

Issue 2145823002: Implement the overflow-anchor CSS property as an opt-out for ScrollAnchoring (Closed)

Created:
4 years, 5 months ago by ymalik
Modified:
4 years, 1 month ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, sof, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement the overflow-anchor CSS property as an opt-out for ScrollAnchoring This CL implements the opt-out described in the ScrollAnchoring explainer: https://github.com/WICG/interventions/blob/master/scroll-anchoring/explainer.md Intent to implement: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/TbuxbOtyZvk BUG=599180 Committed: https://crrev.com/84452f6f0c65b006ca8646553147f3386e8b57ca Cr-Commit-Position: refs/heads/master@{#405368}

Patch Set 1 #

Total comments: 1

Patch Set 2 : nit #

Total comments: 4

Patch Set 3 : rebase review comments update histograms.xml #

Total comments: 2

Patch Set 4 : rename anchorScroll #

Total comments: 2

Patch Set 5 : Put opt-out behind RuntimeEnabledFeature and update tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -6 lines) Patch
M third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h View 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 4 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp View 1 1 chunk +79 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 6 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
ymalik
https://codereview.chromium.org/2145823002/diff/1/third_party/WebKit/Source/core/frame/UseCounter.cpp File third_party/WebKit/Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/2145823002/diff/1/third_party/WebKit/Source/core/frame/UseCounter.cpp#newcode568 third_party/WebKit/Source/core/frame/UseCounter.cpp:568: case CSSPropertyOverflowAnchor: return 538; Need to update histogram.xml. Waiting ...
4 years, 5 months ago (2016-07-13 00:47:34 UTC) #3
skobes
https://codereview.chromium.org/2145823002/diff/20001/third_party/WebKit/Source/core/css/CSSProperties.in File third_party/WebKit/Source/core/css/CSSProperties.in (right): https://codereview.chromium.org/2145823002/diff/20001/third_party/WebKit/Source/core/css/CSSProperties.in#newcode265 third_party/WebKit/Source/core/css/CSSProperties.in:265: overflow-anchor type_name=EOverflowAnchor alphabetize (before overflow-wrap) https://codereview.chromium.org/2145823002/diff/20001/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.h File third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.h (right): ...
4 years, 5 months ago (2016-07-13 15:45:11 UTC) #4
ymalik
@skobes ptal :) https://codereview.chromium.org/2145823002/diff/20001/third_party/WebKit/Source/core/css/CSSProperties.in File third_party/WebKit/Source/core/css/CSSProperties.in (right): https://codereview.chromium.org/2145823002/diff/20001/third_party/WebKit/Source/core/css/CSSProperties.in#newcode265 third_party/WebKit/Source/core/css/CSSProperties.in:265: overflow-anchor type_name=EOverflowAnchor On 2016/07/13 15:45:11, skobes ...
4 years, 5 months ago (2016-07-13 19:49:39 UTC) #5
skobes
lgtm w/ nit https://codereview.chromium.org/2145823002/diff/40001/third_party/WebKit/Source/platform/scroll/ScrollableArea.h File third_party/WebKit/Source/platform/scroll/ScrollableArea.h (right): https://codereview.chromium.org/2145823002/diff/40001/third_party/WebKit/Source/platform/scroll/ScrollableArea.h#newcode283 third_party/WebKit/Source/platform/scroll/ScrollableArea.h:283: virtual bool anchorScroll() const { return ...
4 years, 5 months ago (2016-07-13 19:59:58 UTC) #6
ymalik
+jbroman for Source/platform +isherman for histograms.xml https://codereview.chromium.org/2145823002/diff/40001/third_party/WebKit/Source/platform/scroll/ScrollableArea.h File third_party/WebKit/Source/platform/scroll/ScrollableArea.h (right): https://codereview.chromium.org/2145823002/diff/40001/third_party/WebKit/Source/platform/scroll/ScrollableArea.h#newcode283 third_party/WebKit/Source/platform/scroll/ScrollableArea.h:283: virtual bool anchorScroll() ...
4 years, 5 months ago (2016-07-13 20:14:59 UTC) #8
jbroman
https://codereview.chromium.org/2145823002/diff/60001/third_party/WebKit/Source/core/css/CSSProperties.in File third_party/WebKit/Source/core/css/CSSProperties.in (right): https://codereview.chromium.org/2145823002/diff/60001/third_party/WebKit/Source/core/css/CSSProperties.in#newcode264 third_party/WebKit/Source/core/css/CSSProperties.in:264: overflow-anchor type_name=EOverflowAnchor Should this be guarded by RuntimeEnabledFeatures (e.g. ...
4 years, 5 months ago (2016-07-13 20:53:05 UTC) #9
jbroman
Also, could you please link to the Intent to Implement and Ship for this property? ...
4 years, 5 months ago (2016-07-13 20:54:13 UTC) #10
Ilya Sherman
histograms.xml lgtm
4 years, 5 months ago (2016-07-13 20:58:32 UTC) #11
ymalik
On 2016/07/13 20:54:13, jbroman wrote: > Also, could you please link to the Intent to ...
4 years, 5 months ago (2016-07-13 21:41:31 UTC) #12
ymalik
https://codereview.chromium.org/2145823002/diff/60001/third_party/WebKit/Source/core/css/CSSProperties.in File third_party/WebKit/Source/core/css/CSSProperties.in (right): https://codereview.chromium.org/2145823002/diff/60001/third_party/WebKit/Source/core/css/CSSProperties.in#newcode264 third_party/WebKit/Source/core/css/CSSProperties.in:264: overflow-anchor type_name=EOverflowAnchor On 2016/07/13 20:53:05, jbroman wrote: > Should ...
4 years, 5 months ago (2016-07-13 21:41:45 UTC) #13
ymalik
On 2016/07/13 20:54:13, jbroman wrote: > Also, could you please link to the Intent to ...
4 years, 5 months ago (2016-07-13 22:20:28 UTC) #15
jbroman
lgtm
4 years, 5 months ago (2016-07-13 22:22:24 UTC) #16
jbroman
lgtm
4 years, 5 months ago (2016-07-13 22:22:34 UTC) #17
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/2145823002/80001
4 years, 5 months ago (2016-07-13 22:57:38 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-14 00:41:34 UTC) #22
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/84452f6f0c65b006ca8646553147f3386e8b57ca Cr-Commit-Position: refs/heads/master@{#405368}
4 years, 5 months ago (2016-07-14 00:43:04 UTC) #24
Rick Byers
Why no tests for this new API? Filed https://bugs.chromium.org/p/chromium/issues/detail?id=667052
4 years, 1 month ago (2016-11-19 15:30:44 UTC) #25
skobes
On 2016/11/19 15:30:44, Rick Byers wrote: > Why no tests for this new API? > ...
4 years, 1 month ago (2016-11-20 00:03:00 UTC) #26
Rick Byers
On 2016/11/20 00:03:00, skobes wrote: > On 2016/11/19 15:30:44, Rick Byers wrote: > > Why ...
4 years, 1 month ago (2016-11-21 16:46:50 UTC) #27
Ilya Sherman
histograms.xml lgtm
4 years, 1 month ago (2016-11-21 18:31:01 UTC) #28
Ilya Sherman
4 years, 1 month ago (2016-11-21 18:31:47 UTC) #29
Message was sent while issue was closed.
On 2016/11/21 18:31:01, Ilya Sherman wrote:
> histograms.xml lgtm

Sorry, missed that this already landed...
<.<
>.>
<.<

Powered by Google App Engine
This is Rietveld 408576698