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

Issue 2902063004: View shows wrong bound when it is highlighted. (Closed)

Created:
3 years, 7 months ago by thanhph
Modified:
3 years, 7 months ago
Reviewers:
sadrul
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

View shows wrong bound when it is highlighted. Hovering mouse on the DOM node on views highlights wrong area on screen. BUG=726161 Review-Url: https://codereview.chromium.org/2902063004 Cr-Commit-Position: refs/heads/master@{#475213} Committed: https://chromium.googlesource.com/chromium/src/+/46d59d4b14841bdc82c24ad95d2c446fd508fdb4

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : use GetElementFromNodeId to get ui_element. #

Total comments: 3

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
M ash/devtools/ash_devtools_unittest.cc View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M ash/devtools/view_element.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 30 (22 generated)
thanhph
Hi Sadrul, I used wrong view bound coordinate so here's the fix. Thanks, Thanh.
3 years, 7 months ago (2017-05-25 00:35:33 UTC) #5
sadrul
Can you add a test?
3 years, 7 months ago (2017-05-25 04:21:21 UTC) #8
thanhph
Ok, I added a few EXPECT_EQ for (Widget|View|Window)Element in WindowWidgetViewHighlight test. Thanh.
3 years, 7 months ago (2017-05-25 17:54:49 UTC) #11
sadrul
https://codereview.chromium.org/2902063004/diff/20001/ash/devtools/ash_devtools_dom_agent.h File ash/devtools/ash_devtools_dom_agent.h (right): https://codereview.chromium.org/2902063004/diff/20001/ash/devtools/ash_devtools_dom_agent.h#newcode38 ash/devtools/ash_devtools_dom_agent.h:38: std::unordered_map<int, UIElement*>& node_id_to_ui_element() { Make it const. https://codereview.chromium.org/2902063004/diff/20001/ash/devtools/ash_devtools_unittest.cc File ...
3 years, 7 months ago (2017-05-25 19:07:28 UTC) #14
thanhph
Thanks Sadrul. Please review my new patch. Thanh. https://codereview.chromium.org/2902063004/diff/20001/ash/devtools/ash_devtools_dom_agent.h File ash/devtools/ash_devtools_dom_agent.h (right): https://codereview.chromium.org/2902063004/diff/20001/ash/devtools/ash_devtools_dom_agent.h#newcode38 ash/devtools/ash_devtools_dom_agent.h:38: std::unordered_map<int, ...
3 years, 7 months ago (2017-05-25 20:16:41 UTC) #19
sadrul
lgtm after the following changes in the test. https://codereview.chromium.org/2902063004/diff/40001/ash/devtools/ash_devtools_unittest.cc File ash/devtools/ash_devtools_unittest.cc (right): https://codereview.chromium.org/2902063004/diff/40001/ash/devtools/ash_devtools_unittest.cc#newcode641 ash/devtools/ash_devtools_unittest.cc:641: static_cast<devtools::WindowElement*>( ...
3 years, 7 months ago (2017-05-25 21:27:49 UTC) #20
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/2902063004/60001
3 years, 7 months ago (2017-05-26 23:45:36 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-27 01:35:39 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/46d59d4b14841bdc82c24ad95d2c...

Powered by Google App Engine
This is Rietveld 408576698