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

Issue 87973002: add pan-x and pan-y support to CSS touch-action parsing. (Closed)

Created:
7 years ago by gnana
Modified:
7 years ago
Reviewers:
vivekg, Rick Byers, eseidel
CC:
blink-reviews, zoltan1, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, vivekg, RaviKasibhatla, Timothy Loh, ojan
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

add pan-x and pan-y support to CSS touch-action parsing. Made TouchAction set of flags in renderstyleconstants.h as we need to support TouchAction: auto | none |[pan-x || pan-y]. Also in future may add more custom value similar to IE. BUG=321643 TBR=rbyers@chromium.org,eseidel@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163948

Patch Set 1 #

Patch Set 2 : Removed unrelated file from the patch #

Patch Set 3 : merge to trunk #

Total comments: 32

Patch Set 4 : incorporated review comments and merge to trunk #

Patch Set 5 : incorporated review comments #

Total comments: 10

Patch Set 6 : incorporating review comments #

Total comments: 12

Patch Set 7 : incorporated review comments #

Total comments: 6

Patch Set 8 : incorporated review comments #

Total comments: 12

Patch Set 9 : incorporated review comments and merge to trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -28 lines) Patch
M LayoutTests/fast/css/touch-action-parsing.html View 1 2 3 4 5 6 1 chunk +8 lines, -1 line 0 comments Download
M LayoutTests/fast/css/touch-action-parsing-expected.txt View 1 2 3 4 1 chunk +22 lines, -1 line 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -1 line 0 comments Download
M Source/core/css/CSSParser.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSParser-in.cpp View 1 2 3 4 5 6 7 8 5 chunks +48 lines, -6 lines 0 comments Download
M Source/core/css/CSSPrimitiveValueMappings.h View 1 2 3 4 5 2 chunks +4 lines, -14 lines 0 comments Download
M Source/core/css/CSSProperties.in View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSValueKeywords.in View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyleConstants.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -1 line 0 comments Download
M Source/core/rendering/style/StyleRareNonInheritedData.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M public/web/WebTouchAction.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
gnana
Please take a look. ThankYou!
7 years ago (2013-12-06 10:58:05 UTC) #1
Rick Byers
Thanks! This looks mostly good - just a bunch of small issues. Also please update ...
7 years ago (2013-12-06 21:44:03 UTC) #2
gnana
Thanks for the review comments Please have a look at this. https://codereview.chromium.org/87973002/diff/40001/LayoutTests/fast/css/touch-action-parsing.html File LayoutTests/fast/css/touch-action-parsing.html (right): ...
7 years ago (2013-12-10 18:24:36 UTC) #3
Rick Byers
Thanks! Almost there. https://codereview.chromium.org/87973002/diff/40001/Source/core/css/CSSComputedStyleDeclaration.cpp File Source/core/css/CSSComputedStyleDeclaration.cpp (right): https://codereview.chromium.org/87973002/diff/40001/Source/core/css/CSSComputedStyleDeclaration.cpp#newcode1552 Source/core/css/CSSComputedStyleDeclaration.cpp:1552: if (touchAction & TouchActionPanX) On 2013/12/10 ...
7 years ago (2013-12-10 21:57:14 UTC) #4
gnana
Applied review comments. Please have a look at this. https://codereview.chromium.org/87973002/diff/40001/Source/core/css/CSSComputedStyleDeclaration.cpp File Source/core/css/CSSComputedStyleDeclaration.cpp (right): https://codereview.chromium.org/87973002/diff/40001/Source/core/css/CSSComputedStyleDeclaration.cpp#newcode1552 Source/core/css/CSSComputedStyleDeclaration.cpp:1552: ...
7 years ago (2013-12-11 14:02:53 UTC) #5
Rick Byers
Thanks. A couple more tweaks. https://codereview.chromium.org/87973002/diff/40001/Source/core/css/CSSPrimitiveValueMappings.h File Source/core/css/CSSPrimitiveValueMappings.h (right): https://codereview.chromium.org/87973002/diff/40001/Source/core/css/CSSPrimitiveValueMappings.h#newcode4875 Source/core/css/CSSPrimitiveValueMappings.h:4875: case TouchActionPanX: On 2013/12/11 ...
7 years ago (2013-12-12 15:30:34 UTC) #6
gnana
Applied review comments and merge to trunk. Hope its ready for owners review https://codereview.chromium.org/87973002/diff/100001/LayoutTests/fast/css/touch-action-parsing.html File ...
7 years ago (2013-12-13 11:10:53 UTC) #7
Rick Byers
LGTM with nit - thanks! +eseidel for OWNERS https://codereview.chromium.org/87973002/diff/120001/Source/core/css/CSSComputedStyleDeclaration.cpp File Source/core/css/CSSComputedStyleDeclaration.cpp (right): https://codereview.chromium.org/87973002/diff/120001/Source/core/css/CSSComputedStyleDeclaration.cpp#newcode1569 Source/core/css/CSSComputedStyleDeclaration.cpp:1569: return ...
7 years ago (2013-12-13 13:34:22 UTC) #8
vivekg
https://codereview.chromium.org/87973002/diff/120001/Source/core/rendering/style/RenderStyleConstants.h File Source/core/rendering/style/RenderStyleConstants.h (right): https://codereview.chromium.org/87973002/diff/120001/Source/core/rendering/style/RenderStyleConstants.h#newcode521 Source/core/rendering/style/RenderStyleConstants.h:521: TouchActionNone = 0x1, Same goes here as below comment ...
7 years ago (2013-12-13 14:14:31 UTC) #9
gnana
Thanks Rick Thanks vivek Applied the review comments https://codereview.chromium.org/87973002/diff/120001/Source/core/css/CSSComputedStyleDeclaration.cpp File Source/core/css/CSSComputedStyleDeclaration.cpp (right): https://codereview.chromium.org/87973002/diff/120001/Source/core/css/CSSComputedStyleDeclaration.cpp#newcode1569 Source/core/css/CSSComputedStyleDeclaration.cpp:1569: return ...
7 years ago (2013-12-13 17:06:23 UTC) #10
eseidel
https://codereview.chromium.org/87973002/diff/140001/Source/core/css/CSSComputedStyleDeclaration.cpp File Source/core/css/CSSComputedStyleDeclaration.cpp (right): https://codereview.chromium.org/87973002/diff/140001/Source/core/css/CSSComputedStyleDeclaration.cpp#newcode1553 Source/core/css/CSSComputedStyleDeclaration.cpp:1553: if (touchAction == TouchActionAuto) { nit: most places in ...
7 years ago (2013-12-13 17:19:06 UTC) #11
eseidel
7 years ago (2013-12-13 17:19:32 UTC) #12
eseidel
Overall this looks fine to me. It looks like its runtime guarded, which is good. ...
7 years ago (2013-12-13 17:20:20 UTC) #13
eseidel
lgtm https://codereview.chromium.org/87973002/diff/140001/Source/core/css/CSSParser-in.cpp File Source/core/css/CSSParser-in.cpp (right): https://codereview.chromium.org/87973002/diff/140001/Source/core/css/CSSParser-in.cpp#newcode9024 Source/core/css/CSSParser-in.cpp:9024: if (m_valueList->size() == 1 && value && (value->id ...
7 years ago (2013-12-13 17:34:36 UTC) #14
Rick Byers
Thanks Eric. https://codereview.chromium.org/87973002/diff/140001/Source/core/css/CSSParser-in.cpp File Source/core/css/CSSParser-in.cpp (right): https://codereview.chromium.org/87973002/diff/140001/Source/core/css/CSSParser-in.cpp#newcode9019 Source/core/css/CSSParser-in.cpp:9019: && !RuntimeEnabledFeatures::cssTouchActionEnabled()) On 2013/12/13 17:19:06, eseidel wrote: ...
7 years ago (2013-12-13 21:16:15 UTC) #15
gnana
Thanks Eric. Thanks Rick. Applied review comments https://codereview.chromium.org/87973002/diff/140001/Source/core/css/CSSComputedStyleDeclaration.cpp File Source/core/css/CSSComputedStyleDeclaration.cpp (right): https://codereview.chromium.org/87973002/diff/140001/Source/core/css/CSSComputedStyleDeclaration.cpp#newcode1553 Source/core/css/CSSComputedStyleDeclaration.cpp:1553: if (touchAction ...
7 years ago (2013-12-16 08:16:25 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gnanasekar.s@samsung.com/87973002/160001
7 years ago (2013-12-16 08:27:26 UTC) #17
commit-bot: I haz the power
7 years ago (2013-12-16 09:29:12 UTC) #18
Message was sent while issue was closed.
Change committed as 163948

Powered by Google App Engine
This is Rietveld 408576698