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

Issue 2443353003: The Android ViewStructure font size should be in physical pixels (Closed)

Created:
4 years, 1 month ago by dmazzoni
Modified:
4 years, 1 month ago
CC:
chromium-reviews, aboxhall+watch_chromium.org, nektar+watch_chromium.org, jam, yuzo+watch_chromium.org, je_julie, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

The Android ViewStructure font size should be in physical pixels The font size in AccessibilityNodeInfo is the computed style for that element. We need to convert it twice: 1. Convert that to global CSS coordinates, applying any transformations that might affect the font size, such as CSS scale transformations. Covered by a test. 2. Convert from CSS pixels to physical pixels. Not currently covered by a test but seems straightforward if that's the correct way to interpret this value. BUG=658906 Committed: https://crrev.com/c0148879eff4f35f89c2882dae706a3b097c2c4a Cr-Commit-Position: refs/heads/master@{#427436}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address feedback #

Total comments: 2

Patch Set 3 : Reword Android pixels to physical pixels #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -10 lines) Patch
M content/browser/accessibility/browser_accessibility.h View 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/webcontents/AccessibilitySnapshotTest.java View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
dmazzoni
4 years, 1 month ago (2016-10-24 22:30:21 UTC) #3
sgurun-gerrit only
On 2016/10/24 22:30:21, dmazzoni wrote: lgtm. need an owner's lgtm though.
4 years, 1 month ago (2016-10-24 22:47:12 UTC) #5
sgurun-gerrit only
https://codereview.chromium.org/2443353003/diff/1/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (right): https://codereview.chromium.org/2443353003/diff/1/content/browser/web_contents/web_contents_android.cc#newcode109 content/browser/web_contents/web_contents_android.cc:109: size = node->GetFloatAttribute(ui::AX_ATTR_FONT_SIZE); I prefer this line to move ...
4 years, 1 month ago (2016-10-24 22:47:35 UTC) #6
dmazzoni
+boliu for owners review https://codereview.chromium.org/2443353003/diff/1/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (right): https://codereview.chromium.org/2443353003/diff/1/content/browser/web_contents/web_contents_android.cc#newcode109 content/browser/web_contents/web_contents_android.cc:109: size = node->GetFloatAttribute(ui::AX_ATTR_FONT_SIZE); On 2016/10/24 ...
4 years, 1 month ago (2016-10-25 17:05:26 UTC) #12
boliu
"Android pixels" isn't a thing. I think you mean "physical pixels". Can you update the ...
4 years, 1 month ago (2016-10-25 17:20:19 UTC) #13
dmazzoni
On 2016/10/25 17:20:19, boliu wrote: > "Android pixels" isn't a thing. I think you mean ...
4 years, 1 month ago (2016-10-25 17:31:06 UTC) #16
dmazzoni
https://codereview.chromium.org/2443353003/diff/20001/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (right): https://codereview.chromium.org/2443353003/diff/20001/content/browser/web_contents/web_contents_android.cc#newcode113 content/browser/web_contents/web_contents_android.cc:113: size = node->GetFloatAttribute(ui::AX_ATTR_FONT_SIZE); On 2016/10/25 17:20:19, boliu wrote: > ...
4 years, 1 month ago (2016-10-25 17:31:16 UTC) #17
boliu
lgtm
4 years, 1 month ago (2016-10-25 17:36:06 UTC) #18
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/2443353003/40001
4 years, 1 month ago (2016-10-25 17:38:01 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/167370)
4 years, 1 month ago (2016-10-25 18:31:31 UTC) #23
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/2443353003/40001
4 years, 1 month ago (2016-10-25 18:38:52 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-25 19:13:42 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 19:35:51 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c0148879eff4f35f89c2882dae706a3b097c2c4a
Cr-Commit-Position: refs/heads/master@{#427436}

Powered by Google App Engine
This is Rietveld 408576698