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

Issue 2336693002: Rendering text to a canvas in a frame-less document. (Closed)

Created:
4 years, 3 months ago by zakerinasab
Modified:
4 years, 2 months ago
Reviewers:
esprehn, Justin Novosad
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rendering text to a canvas in a frame-less document. BUG=350091 Committed: https://crrev.com/93dd565e17f9ad8e630bfb668e5c83536af50a0f Cr-Commit-Position: refs/heads/master@{#418400}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressing comments from patch set 1. #

Total comments: 2

Patch Set 3 : Addressing the issue with default fallback font on Mac. #

Patch Set 4 : Adding the failed tests to TestExpectations for Mac. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -36 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas.html View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSFontSelector.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 1 chunk +1 line, -1 line 1 comment Download
M third_party/WebKit/Source/core/dom/StyleEngine.cpp View 1 2 chunks +2 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp View 4 chunks +0 lines, -16 lines 0 comments Download

Messages

Total messages: 48 (22 generated)
zakerinasab
CL submitted.
4 years, 3 months ago (2016-09-12 18:04:26 UTC) #2
Justin Novosad
https://codereview.chromium.org/2336693002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2336693002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode475 third_party/WebKit/Source/core/dom/Document.cpp:475: , m_settings(Settings::create()) This should be lazily allocated in settings() ...
4 years, 3 months ago (2016-09-12 18:44:59 UTC) #3
zakerinasab
New CL submitted. https://codereview.chromium.org/2336693002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2336693002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode475 third_party/WebKit/Source/core/dom/Document.cpp:475: , m_settings(Settings::create()) On 2016/09/12 18:44:59, Justin ...
4 years, 3 months ago (2016-09-12 19:47:34 UTC) #4
Justin Novosad
lgtm
4 years, 3 months ago (2016-09-12 19:55:50 UTC) #5
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/2336693002/20001
4 years, 3 months ago (2016-09-12 19:58:52 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/294743)
4 years, 3 months ago (2016-09-12 22:14:45 UTC) #9
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/2336693002/20001
4 years, 3 months ago (2016-09-13 13:38:33 UTC) #11
Justin Novosad
https://codereview.chromium.org/2336693002/diff/20001/third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html File third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html (right): https://codereview.chromium.org/2336693002/diff/20001/third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html#newcode10 third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html:10: ctx.font = "10px sans-serif"; On mac, it looks like ...
4 years, 3 months ago (2016-09-13 14:45:43 UTC) #12
blink-reviews
Oh. I get it. I'll check it now. On Tue, Sep 13, 2016 at 10:45 ...
4 years, 3 months ago (2016-09-13 14:46:57 UTC) #13
chromium-reviews
Oh. I get it. I'll check it now. On Tue, Sep 13, 2016 at 10:45 ...
4 years, 3 months ago (2016-09-13 14:46:57 UTC) #14
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/2336693002/40001
4 years, 3 months ago (2016-09-13 14:53:35 UTC) #17
zakerinasab
New patch submitted. https://codereview.chromium.org/2336693002/diff/20001/third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html File third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html (right): https://codereview.chromium.org/2336693002/diff/20001/third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html#newcode10 third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html:10: ctx.font = "10px sans-serif"; On 2016/09/13 ...
4 years, 3 months ago (2016-09-13 14:54:05 UTC) #18
zakerinasab
New patch submitted.
4 years, 3 months ago (2016-09-13 14:54:07 UTC) #19
Justin Novosad
lgtm assuming tests pass.
4 years, 3 months ago (2016-09-13 15:38:54 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/295328)
4 years, 3 months ago (2016-09-13 17:16:31 UTC) #22
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/2336693002/60001
4 years, 3 months ago (2016-09-13 21:30:07 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-13 23:07:56 UTC) #26
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/93dd565e17f9ad8e630bfb668e5c83536af50a0f Cr-Commit-Position: refs/heads/master@{#418400}
4 years, 3 months ago (2016-09-13 23:09:58 UTC) #28
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/2336693002/80001
4 years, 3 months ago (2016-09-14 14:19:08 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/236502) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 3 months ago (2016-09-14 14:21:41 UTC) #36
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/2336693002/80001
4 years, 3 months ago (2016-09-14 14:29:57 UTC) #38
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/141356) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 3 months ago (2016-09-14 14:32:42 UTC) #40
zakerinasab
On 2016/09/14 14:32:42, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 3 months ago (2016-09-14 14:48:07 UTC) #43
esprehn
In the future please reach out to people on the style team when changing code ...
4 years, 2 months ago (2016-09-26 22:23:37 UTC) #46
esprehn
Note that the change you made to Element::ensureComputedStyle is making this: var doc = document.implementation.createHTMLDocument(...); ...
4 years, 2 months ago (2016-09-26 22:48:02 UTC) #47
zakerinasab
4 years, 2 months ago (2016-09-27 14:31:07 UTC) #48
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:100001) has been created in
https://codereview.chromium.org/2370283002/ by zakerinasab@chromium.org.

The reason for reverting is: Causes some crashes on Canary..

Powered by Google App Engine
This is Rietveld 408576698