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

Issue 2931433002: Disable hover state change for touch event on page with viewport meta and mobile. (Closed)

Created:
3 years, 6 months ago by chaopeng
Modified:
3 years, 6 months ago
Reviewers:
bokan
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable hover state change for touch event on page with viewport meta and mobile. This patch prevent hover state change for touch event on mobile. We have 2 checks for this: 1. Event is from touch. 2. Viewport enabled (on mobile). 3. Page with viewport meta. BUG=369044 Review-Url: https://codereview.chromium.org/2931433002 Cr-Commit-Position: refs/heads/master@{#478777} Committed: https://chromium.googlesource.com/chromium/src/+/876bb220728d85b1c8a8fe93a0a95bafcf448cd6

Patch Set 1 #

Total comments: 2

Patch Set 2 : only change hover state #

Patch Set 3 : add tests #

Total comments: 3

Patch Set 4 : add no viewport test #

Total comments: 1

Patch Set 5 : merge crrev.com/2934853002 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -6 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 5 chunks +15 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 2 chunks +69 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/noviewport-2-div.html View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/viewport-2-div.html View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 32 (21 generated)
chaopeng
Please take an early look at this one. https://codereview.chromium.org/2931433002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2931433002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode6491 third_party/WebKit/Source/core/dom/Document.cpp:6491: element->SetActive(true); ...
3 years, 6 months ago (2017-06-06 17:18:49 UTC) #3
chaopeng
Please take an early look at this one. https://codereview.chromium.org/2931433002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2931433002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode6491 third_party/WebKit/Source/core/dom/Document.cpp:6491: element->SetActive(true); ...
3 years, 6 months ago (2017-06-06 17:18:49 UTC) #4
bokan
This approach looks fine to me, but we need to keep :active state https://codereview.chromium.org/2931433002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File ...
3 years, 6 months ago (2017-06-06 21:07:09 UTC) #5
chaopeng
On 2017/06/06 21:07:09, bokan wrote: > This approach looks fine to me, but we need ...
3 years, 6 months ago (2017-06-08 19:53:41 UTC) #13
bokan
https://codereview.chromium.org/2931433002/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (left): https://codereview.chromium.org/2931433002/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#oldcode11658 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11658: web_view->CoreHitTestResultAt(WebPoint(175, 1)); Why this change? What was this doing ...
3 years, 6 months ago (2017-06-09 16:21:09 UTC) #14
chaopeng
Updated, PTAL. https://codereview.chromium.org/2931433002/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (left): https://codereview.chromium.org/2931433002/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#oldcode11658 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11658: web_view->CoreHitTestResultAt(WebPoint(175, 1)); On 2017/06/09 16:21:09, bokan wrote: ...
3 years, 6 months ago (2017-06-09 19:19:31 UTC) #17
bokan
https://codereview.chromium.org/2931433002/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2931433002/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11712 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11712: ApplyViewportStyleOverride(&web_view_helper); Lets avoid this since it uses DevTools emulation ...
3 years, 6 months ago (2017-06-09 19:27:55 UTC) #18
bokan
On 2017/06/09 19:27:55, bokan wrote: > https://codereview.chromium.org/2931433002/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp > File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): > > https://codereview.chromium.org/2931433002/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11712 > ...
3 years, 6 months ago (2017-06-09 19:28:28 UTC) #19
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/2931433002/80001
3 years, 6 months ago (2017-06-12 19:46:32 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/876bb220728d85b1c8a8fe93a0a95bafcf448cd6
3 years, 6 months ago (2017-06-12 21:49:15 UTC) #29
chaopeng
3 years, 4 months ago (2017-08-02 16:24:38 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2991253002/ by chaopeng@chromium.org.

The reason for reverting is: Revert for some website break..

Powered by Google App Engine
This is Rietveld 408576698