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

Issue 2108803006: Fix inspector overlay when use-zoom-for-dsf is enabled. (Closed)

Created:
4 years, 5 months ago by Bret
Modified:
4 years, 5 months ago
Reviewers:
dgozman, oshima, bokan
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, caseq+blink_chromium.org, jam, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, blink-reviews, apavlov+blink_chromium.org, sergeyv+blink_chromium.org, kinuko+watch, pfeldman, kozyatinskiy+blink_chromium.org, oshima
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix inspector overlay when use-zoom-for-dsf is enabled. Inspector overlays were misaligned because the path points were drawing in window coordinates and needed to be scaled to viewport coordinates. Should be no change when use-zoom-for-dsf is off. BUG=622862 Committed: https://crrev.com/6651b97ebd509e97bea8929303738dc20a3ed880 Committed: https://crrev.com/fca01d88e345fce580cd8acc7245f6cdc89a0c84 Cr-Original-Commit-Position: refs/heads/master@{#404063} Cr-Commit-Position: refs/heads/master@{#404285}

Patch Set 1 #

Patch Set 2 : remove unnecessary include #

Total comments: 2

Patch Set 3 : change plumbing #

Total comments: 2

Patch Set 4 : revert LayoutEditor.cpp #

Patch Set 5 : refactor to modify path points instead #

Patch Set 6 : revert InspectorOverlayPage #

Total comments: 4

Patch Set 7 : plumb through frameview instead #

Total comments: 6

Patch Set 8 : address comments #

Patch Set 9 : fix crash when FrameView is null #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -17 lines) Patch
M content/renderer/devtools/devtools_agent.cc View 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorHighlight.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp View 1 2 3 4 5 6 7 8 8 chunks +18 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.cpp View 1 2 3 4 5 6 4 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 52 (20 generated)
Bret
4 years, 5 months ago (2016-06-30 19:46:33 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2108803006/20001
4 years, 5 months ago (2016-06-30 20:19:25 UTC) #5
dgozman
We should have overlay and original page to use the same coordinate space. This way ...
4 years, 5 months ago (2016-06-30 21:07:56 UTC) #7
Bret
On 2016/06/30 21:07:56, dgozman wrote: > We should have overlay and original page to use ...
4 years, 5 months ago (2016-06-30 21:18:27 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/255809)
4 years, 5 months ago (2016-06-30 21:24:26 UTC) #10
oshima
My patch makes overlay and browser UI to use the same scale. The original page ...
4 years, 5 months ago (2016-07-01 12:03:18 UTC) #11
Bret
https://codereview.chromium.org/2108803006/diff/20001/third_party/WebKit/Source/web/InspectorOverlay.cpp File third_party/WebKit/Source/web/InspectorOverlay.cpp (right): https://codereview.chromium.org/2108803006/diff/20001/third_party/WebKit/Source/web/InspectorOverlay.cpp#newcode428 third_party/WebKit/Source/web/InspectorOverlay.cpp:428: InspectorHighlight highlight(element, m_nodeHighlightConfig, false, windowToViewportScale()); On 2016/07/01 12:03:18, oshima ...
4 years, 5 months ago (2016-07-01 18:24:36 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2108803006/40001
4 years, 5 months ago (2016-07-01 18:25:27 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-01 19:41:13 UTC) #16
oshima
https://codereview.chromium.org/2108803006/diff/40001/third_party/WebKit/Source/core/inspector/LayoutEditor.cpp File third_party/WebKit/Source/core/inspector/LayoutEditor.cpp (right): https://codereview.chromium.org/2108803006/diff/40001/third_party/WebKit/Source/core/inspector/LayoutEditor.cpp#newcode12 third_party/WebKit/Source/core/inspector/LayoutEditor.cpp:12: #include "core/css/CSSStyleSheet.h" revert this file?
4 years, 5 months ago (2016-07-01 20:48:45 UTC) #17
Bret
https://codereview.chromium.org/2108803006/diff/40001/third_party/WebKit/Source/core/inspector/LayoutEditor.cpp File third_party/WebKit/Source/core/inspector/LayoutEditor.cpp (right): https://codereview.chromium.org/2108803006/diff/40001/third_party/WebKit/Source/core/inspector/LayoutEditor.cpp#newcode12 third_party/WebKit/Source/core/inspector/LayoutEditor.cpp:12: #include "core/css/CSSStyleSheet.h" On 2016/07/01 20:48:45, oshima wrote: > revert ...
4 years, 5 months ago (2016-07-02 00:17:52 UTC) #18
dgozman
[+bokan for viewport] On 2016/07/01 12:03:18, oshima wrote: > My patch makes overlay and browser ...
4 years, 5 months ago (2016-07-05 18:01:43 UTC) #20
bokan
On 2016/07/05 18:01:43, dgozman wrote: > [+bokan for viewport] > > On 2016/07/01 12:03:18, oshima ...
4 years, 5 months ago (2016-07-05 23:41:03 UTC) #21
Bret
On 2016/07/05 23:41:03, bokan wrote: > On 2016/07/05 18:01:43, dgozman wrote: > > [+bokan for ...
4 years, 5 months ago (2016-07-06 19:38:19 UTC) #22
dgozman
On 2016/07/06 19:38:19, Bret Sepulveda wrote: > On 2016/07/05 23:41:03, bokan wrote: > > On ...
4 years, 5 months ago (2016-07-06 19:40:22 UTC) #23
Bret
On 2016/07/06 19:40:22, dgozman wrote: > On 2016/07/06 19:38:19, Bret Sepulveda wrote: > > On ...
4 years, 5 months ago (2016-07-06 22:30:22 UTC) #24
dgozman
This is much better I think! https://codereview.chromium.org/2108803006/diff/100001/third_party/WebKit/Source/core/inspector/InspectorHighlight.h File third_party/WebKit/Source/core/inspector/InspectorHighlight.h (right): https://codereview.chromium.org/2108803006/diff/100001/third_party/WebKit/Source/core/inspector/InspectorHighlight.h#newcode48 third_party/WebKit/Source/core/inspector/InspectorHighlight.h:48: InspectorHighlight(Node*, const InspectorHighlightConfig&, ...
4 years, 5 months ago (2016-07-06 22:37:35 UTC) #25
Bret
https://codereview.chromium.org/2108803006/diff/100001/third_party/WebKit/Source/core/inspector/InspectorHighlight.h File third_party/WebKit/Source/core/inspector/InspectorHighlight.h (right): https://codereview.chromium.org/2108803006/diff/100001/third_party/WebKit/Source/core/inspector/InspectorHighlight.h#newcode48 third_party/WebKit/Source/core/inspector/InspectorHighlight.h:48: InspectorHighlight(Node*, const InspectorHighlightConfig&, bool appendElementInfo, float highlightScale); On 2016/07/06 ...
4 years, 5 months ago (2016-07-06 23:38:02 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2108803006/120001
4 years, 5 months ago (2016-07-06 23:38:57 UTC) #28
dgozman
lgtm with comments > Fixed incidentally as part of plumbing the value through FrameView instead. ...
4 years, 5 months ago (2016-07-07 00:30:10 UTC) #29
Bret
https://codereview.chromium.org/2108803006/diff/120001/third_party/WebKit/Source/core/frame/FrameView.h File third_party/WebKit/Source/core/frame/FrameView.h (right): https://codereview.chromium.org/2108803006/diff/120001/third_party/WebKit/Source/core/frame/FrameView.h#newcode511 third_party/WebKit/Source/core/frame/FrameView.h:511: float viewportToWindowScale() const; On 2016/07/07 00:30:09, dgozman wrote: > ...
4 years, 5 months ago (2016-07-07 01:15:11 UTC) #30
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/2108803006/140001
4 years, 5 months ago (2016-07-07 01:16:07 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-07 03:35:12 UTC) #35
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 03:35:28 UTC) #36
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/6651b97ebd509e97bea8929303738dc20a3ed880 Cr-Commit-Position: refs/heads/master@{#404063}
4 years, 5 months ago (2016-07-07 03:37:35 UTC) #38
tkent
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2127053002/ by tkent@chromium.org. ...
4 years, 5 months ago (2016-07-07 06:48:46 UTC) #39
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/2108803006/160001
4 years, 5 months ago (2016-07-07 21:33:47 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gyp_rel on master.tryserver.chromium.mac (JOB_TIMED_OUT, no build URL)
4 years, 5 months ago (2016-07-07 23:36:15 UTC) #45
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/2108803006/160001
4 years, 5 months ago (2016-07-07 23:47:28 UTC) #47
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-08 01:03:55 UTC) #49
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 01:04:13 UTC) #50
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 01:05:50 UTC) #52
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/fca01d88e345fce580cd8acc7245f6cdc89a0c84
Cr-Commit-Position: refs/heads/master@{#404285}

Powered by Google App Engine
This is Rietveld 408576698