|
|
Chromium Code Reviews|
Created:
4 years, 3 months ago by Navid Zolghadr Modified:
4 years, 3 months ago CC:
chromium-reviews, blink-reviews, nzolghadr+blinkwatch_chromium.org, dtapuska+blinkwatch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionConditional hittesting and sending boundary events for captured pointer events
This CL adds the support sending boundary events for captured
pointer events if needed when pointerEventV1SpecCapturingEnabled
flag is enabled. Although it might not have captured all edge
cases but it does satisfy the basic needs and normal
use cases which suffices the testing need.
This CL does not change any behavior when the flag is off and
it is only for testing purposes when the flag is on.
Removal of this flag is tracked in crbug.com/642776.
BUG=640700
Committed: https://crrev.com/ebbc77fb19301347fe7d062691ad20d82d5eb865
Cr-Commit-Position: refs/heads/master@{#418039}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix double function call #
Messages
Total messages: 35 (17 generated)
The CQ bit was checked by nzolghadr@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
nzolghadr@chromium.org changed reviewers: + dtapuska@chromium.org, mustaq@chromium.org
On 2016/09/09 15:55:49, Navid Zolghadr wrote: do we anticipate to write any tests for this? Or are we not investing in that right now?
https://codereview.chromium.org/2326653003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/input/EventHandler.cpp (left): https://codereview.chromium.org/2326653003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/input/EventHandler.cpp:1387: if (EventTarget* mousePointerCapturingNode = m_pointerEventManager->getMouseCapturingNode()) { I think it is cleaner to store the mousePointerCapturingNode in a variable instead of calling it multiple times for ease of reading.
Regarding the tests Mustaq and I talked before and agreed not to add the tests. I believe this flag will be removed two weeks from now. So maybe not worth adding tests. https://codereview.chromium.org/2326653003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/input/EventHandler.cpp (left): https://codereview.chromium.org/2326653003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/input/EventHandler.cpp:1387: if (EventTarget* mousePointerCapturingNode = m_pointerEventManager->getMouseCapturingNode()) { On 2016/09/09 16:01:07, dtapuska wrote: > I think it is cleaner to store the mousePointerCapturingNode in a variable > instead of calling it multiple times for ease of reading. Then I have to store it outside the scope of the if which makes it defined for the whole function scope. Is there a way to do it better?
On 2016/09/09 16:03:38, Navid Zolghadr wrote: > Regarding the tests Mustaq and I talked before and agreed not to add the tests. > I believe this flag will be removed two weeks from now. So maybe not worth > adding tests. > > https://codereview.chromium.org/2326653003/diff/1/third_party/WebKit/Source/c... > File third_party/WebKit/Source/core/input/EventHandler.cpp (left): > > https://codereview.chromium.org/2326653003/diff/1/third_party/WebKit/Source/c... > third_party/WebKit/Source/core/input/EventHandler.cpp:1387: if (EventTarget* > mousePointerCapturingNode = m_pointerEventManager->getMouseCapturingNode()) { > On 2016/09/09 16:01:07, dtapuska wrote: > > I think it is cleaner to store the mousePointerCapturingNode in a variable > > instead of calling it multiple times for ease of reading. > > Then I have to store it outside the scope of the if which makes it defined for > the whole function scope. Is there a way to do it better? if (EventTarget* mousePointerCapturingNode = (RuntimeEnabledFeatures::pointerEventV1SpecCapturingEnabled() ? 0 : m_pointerEventManager->getMouseCapturingNode())) also works but that is hard to read
The CQ bit was checked by nzolghadr@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
ptal. I defined a function scope variable to increase readability. This change is temporary anyway and it'll be removed soon. So I don't think having the variable in the function scope hurts for a long time :)
On 2016/09/09 16:13:57, Navid Zolghadr wrote: > ptal. > > I defined a function scope variable to increase readability. This change is > temporary anyway and it'll be removed soon. So I don't think having the variable > in the function scope hurts for a long time :) lgtm
On 2016/09/09 17:02:36, dtapuska wrote: > On 2016/09/09 16:13:57, Navid Zolghadr wrote: > > ptal. > > > > I defined a function scope variable to increase readability. This change is > > temporary anyway and it'll be removed soon. So I don't think having the > variable > > in the function scope hurts for a long time :) > > lgtm LGTM. Please modify the CL title to say "conditional hittesting...", and mention later that this is effective thru pointerEventV1SpecCapturingEnabled flag.
Description was changed from ========== Do hit-testing and send boundary events for captured pointer events This CL supports sending boundary events for captured pointer events if needed. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. BUG=640700 ========== to ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. BUG=640700 ==========
Description was changed from ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. BUG=640700 ========== to ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. BUG=640700 ==========
done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by nzolghadr@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/09/09 17:51:59, commit-bot: I haz the power wrote: > CQ is trying da patch. Follow status at > > https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... you still need an owner review.
On 2016/09/09 17:53:37, dtapuska wrote: > On 2016/09/09 17:51:59, commit-bot: I haz the power wrote: > > CQ is trying da patch. Follow status at > > > > > https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... > > you still need an owner review. oops! I missed it!
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
nzolghadr@chromium.org changed reviewers: + rbyers@chromium.org
rbyers@chromium.org: Please review changes in thirdparty/WebKit/Source/core/*
LGTM May be worth noting in the CL description that there's no change in behavior when not using the flag, and the flag is temporary for testing/evaluation purposes (mention the bug that tracks removing the flag).
Description was changed from ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. BUG=640700 ========== to ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. This CL does not change any behavior when the flag is off and it is only for testing purposes when the flag is on. Removing of this flag is tracked in crbug.com/642776. BUG=640700 ==========
Description was changed from ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. This CL does not change any behavior when the flag is off and it is only for testing purposes when the flag is on. Removing of this flag is tracked in crbug.com/642776. BUG=640700 ========== to ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. This CL does not change any behavior when the flag is off and it is only for testing purposes when the flag is on. Removal of this flag is tracked in crbug.com/642776. BUG=640700 ==========
The CQ bit was checked by nzolghadr@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. This CL does not change any behavior when the flag is off and it is only for testing purposes when the flag is on. Removal of this flag is tracked in crbug.com/642776. BUG=640700 ========== to ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. This CL does not change any behavior when the flag is off and it is only for testing purposes when the flag is on. Removal of this flag is tracked in crbug.com/642776. BUG=640700 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. This CL does not change any behavior when the flag is off and it is only for testing purposes when the flag is on. Removal of this flag is tracked in crbug.com/642776. BUG=640700 ========== to ========== Conditional hittesting and sending boundary events for captured pointer events This CL adds the support sending boundary events for captured pointer events if needed when pointerEventV1SpecCapturingEnabled flag is enabled. Although it might not have captured all edge cases but it does satisfy the basic needs and normal use cases which suffices the testing need. This CL does not change any behavior when the flag is off and it is only for testing purposes when the flag is on. Removal of this flag is tracked in crbug.com/642776. BUG=640700 Committed: https://crrev.com/ebbc77fb19301347fe7d062691ad20d82d5eb865 Cr-Commit-Position: refs/heads/master@{#418039} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/ebbc77fb19301347fe7d062691ad20d82d5eb865 Cr-Commit-Position: refs/heads/master@{#418039} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
