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

Issue 1616813002: Consider Zoom factor when getting bounding rect. (Closed)

Created:
4 years, 11 months ago by Shu Chen
Modified:
4 years, 10 months ago
Reviewers:
keishi, yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Consider Zoom factor when getting bounding rect. BUG=579007 Committed: https://crrev.com/126e210435ab183a1cb2000b78379cf71aac94fd Cr-Commit-Position: refs/heads/master@{#372588}

Patch Set 1 #

Total comments: 2

Patch Set 2 : per yosin@'s comment. #

Patch Set 3 : add a test. #

Total comments: 2

Patch Set 4 : fix the test. #

Patch Set 5 : #

Total comments: 3

Patch Set 6 : add TODOs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -3 lines) Patch
M third_party/WebKit/Source/web/mac/WebSubstringUtil.mm View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 2 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (6 generated)
Shu Chen
yosin@, can you please take a look whether this makes sense to fix crbug.com/579007? Thanks
4 years, 11 months ago (2016-01-26 00:29:17 UTC) #2
yosin_UTC9
https://codereview.chromium.org/1616813002/diff/1/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm File third_party/WebKit/Source/web/mac/WebSubstringUtil.mm (right): https://codereview.chromium.org/1616813002/diff/1/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm#newcode116 third_party/WebKit/Source/web/mac/WebSubstringUtil.mm:116: float scale = frameView->frame().pageZoomFactor() * frameView->frame().textZoomFactor(); Which coordinate space ...
4 years, 11 months ago (2016-01-26 03:44:17 UTC) #3
Shu Chen
https://codereview.chromium.org/1616813002/diff/1/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm File third_party/WebKit/Source/web/mac/WebSubstringUtil.mm (right): https://codereview.chromium.org/1616813002/diff/1/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm#newcode116 third_party/WebKit/Source/web/mac/WebSubstringUtil.mm:116: float scale = frameView->frame().pageZoomFactor() * frameView->frame().textZoomFactor(); On 2016/01/26 03:44:17, ...
4 years, 11 months ago (2016-01-26 13:06:43 UTC) #4
yosin_UTC9
Code changes itself is reasonable. Does this change bubble's position mentioned in crbug.com/579007? If so, ...
4 years, 11 months ago (2016-01-27 05:15:54 UTC) #5
Shu Chen
On 2016/01/27 05:15:54, Yosi_UTC9 wrote: > Code changes itself is reasonable. > Does this change ...
4 years, 11 months ago (2016-01-27 08:14:16 UTC) #6
yosin_UTC9
I'm not familiar with Mac. +keishi@, who is an expert of Mac.
4 years, 11 months ago (2016-01-27 08:41:58 UTC) #8
keishi
https://codereview.chromium.org/1616813002/diff/40001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/1616813002/diff/40001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode3194 third_party/WebKit/Source/web/tests/WebViewTest.cpp:3194: WebView* webView = m_webViewHelper.initializeAndLoad(m_baseURL + "content_editable_populated.html"); Looks like the ...
4 years, 11 months ago (2016-01-27 13:08:39 UTC) #9
Shu Chen
https://codereview.chromium.org/1616813002/diff/40001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/1616813002/diff/40001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode3194 third_party/WebKit/Source/web/tests/WebViewTest.cpp:3194: WebView* webView = m_webViewHelper.initializeAndLoad(m_baseURL + "content_editable_populated.html"); On 2016/01/27 13:08:39, ...
4 years, 11 months ago (2016-01-27 13:58:28 UTC) #10
keishi
setZoomLevel is whats used for the zoom in the hamburger menu.
4 years, 11 months ago (2016-01-28 01:59:19 UTC) #11
Shu Chen
keishi@ & yosin@, can you please review this cl? Thanks Btw, I've changed this cl ...
4 years, 10 months ago (2016-01-29 05:37:37 UTC) #12
keishi
https://codereview.chromium.org/1616813002/diff/80001/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm File third_party/WebKit/Source/web/mac/WebSubstringUtil.mm (right): https://codereview.chromium.org/1616813002/diff/80001/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm#newcode116 third_party/WebKit/Source/web/mac/WebSubstringUtil.mm:116: IntRect stringRect = frameView->contentsToRootFrame(createRange(range)->boundingBox()); According to the comment boundingRect ...
4 years, 10 months ago (2016-01-29 05:49:15 UTC) #14
Shu Chen
https://codereview.chromium.org/1616813002/diff/80001/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm File third_party/WebKit/Source/web/mac/WebSubstringUtil.mm (right): https://codereview.chromium.org/1616813002/diff/80001/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm#newcode116 third_party/WebKit/Source/web/mac/WebSubstringUtil.mm:116: IntRect stringRect = frameView->contentsToRootFrame(createRange(range)->boundingBox()); On 2016/01/29 05:49:14, keishi wrote: ...
4 years, 10 months ago (2016-01-29 05:57:59 UTC) #15
yosin_UTC9
https://codereview.chromium.org/1616813002/diff/80001/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm File third_party/WebKit/Source/web/mac/WebSubstringUtil.mm (right): https://codereview.chromium.org/1616813002/diff/80001/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm#newcode116 third_party/WebKit/Source/web/mac/WebSubstringUtil.mm:116: IntRect stringRect = frameView->contentsToRootFrame(createRange(range)->boundingBox()); On 2016/01/29 at 05:57:59, Shu ...
4 years, 10 months ago (2016-01-29 06:30:53 UTC) #16
Shu Chen
On 2016/01/29 06:30:53, Yosi_UTC9 wrote: > https://codereview.chromium.org/1616813002/diff/80001/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm > File third_party/WebKit/Source/web/mac/WebSubstringUtil.mm (right): > > https://codereview.chromium.org/1616813002/diff/80001/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm#newcode116 > ...
4 years, 10 months ago (2016-01-29 09:05:49 UTC) #17
yosin_UTC9
On 2016/01/29 at 09:05:49, shuchen wrote: > On 2016/01/29 06:30:53, Yosi_UTC9 wrote: > > https://codereview.chromium.org/1616813002/diff/80001/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm ...
4 years, 10 months ago (2016-01-29 09:12:16 UTC) #18
keishi
I've done my research and using boundingBox seems OK. (We should support CSS transform though) ...
4 years, 10 months ago (2016-01-29 10:54:42 UTC) #19
Shu Chen
On 2016/01/29 10:54:42, keishi wrote: > I've done my research and using boundingBox seems OK. ...
4 years, 10 months ago (2016-01-29 11:45:11 UTC) #20
Shu Chen
On 2016/01/29 11:45:11, Shu Chen wrote: > On 2016/01/29 10:54:42, keishi wrote: > > I've ...
4 years, 10 months ago (2016-01-29 11:46:41 UTC) #21
keishi
On 2016/01/29 11:46:41, Shu Chen wrote: > On 2016/01/29 11:45:11, Shu Chen wrote: > > ...
4 years, 10 months ago (2016-01-29 11:59:28 UTC) #22
keishi
On 2016/01/29 11:59:28, keishi wrote: > On 2016/01/29 11:46:41, Shu Chen wrote: > > On ...
4 years, 10 months ago (2016-01-29 12:04:40 UTC) #23
Shu Chen
On 2016/01/29 12:04:40, keishi wrote: > On 2016/01/29 11:59:28, keishi wrote: > > On 2016/01/29 ...
4 years, 10 months ago (2016-01-31 02:25:08 UTC) #24
keishi
On 2016/01/31 02:25:08, Shu Chen wrote: > On 2016/01/29 12:04:40, keishi wrote: > > On ...
4 years, 10 months ago (2016-01-31 03:56:35 UTC) #25
Shu Chen
On 2016/01/31 03:56:35, keishi wrote: > On 2016/01/31 02:25:08, Shu Chen wrote: > > On ...
4 years, 10 months ago (2016-01-31 06:41:09 UTC) #26
keishi
LGTM
4 years, 10 months ago (2016-02-01 01:25:44 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616813002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616813002/100001
4 years, 10 months ago (2016-02-01 01:28:31 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-01 02:27:18 UTC) #31
commit-bot: I haz the power
4 years, 10 months ago (2016-02-01 02:28:26 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/126e210435ab183a1cb2000b78379cf71aac94fd
Cr-Commit-Position: refs/heads/master@{#372588}

Powered by Google App Engine
This is Rietveld 408576698