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

Issue 468483003: Implement canvas2d direction attribute (Closed)

Created:
6 years, 4 months ago by vivekg_samsung
Modified:
6 years, 3 months ago
CC:
blink-reviews, suyash
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Implement canvas2d direction attribute The attribute, 'direction', represents the text directionality. This is an important attribute for the bi-directional text within the CanvasRenderingContext2D. The allowed set of values are 'rtl', 'ltr' and 'inherit'. Specification URL: http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting.html#dom-context-2d-direction Intent to implement: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/KWKkTpKiXXM BUG=277209 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180984

Patch Set 1 : #

Total comments: 3

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Review comments done! #

Patch Set 4 : Supporting the case of save/restore #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : Patch for landing! #

Total comments: 8

Patch Set 7 : Review comments addressed! #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 2

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -2 lines) Patch
A LayoutTests/fast/canvas/canvas-direction.html View 1 2 3 1 chunk +225 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-direction-expected.txt View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M LayoutTests/inspector/profiler/canvas2d/canvas2d-api-changes-expected.txt View 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 2 3 4 5 6 4 chunks +11 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 4 5 6 6 chunks +51 lines, -2 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.idl View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
vivekg
PTAL, thank you!
6 years, 4 months ago (2014-08-18 08:09:07 UTC) #1
esprehn
You can't use ::computedStyle() without first updating the style of the document, otherwise the values ...
6 years, 4 months ago (2014-08-18 19:22:44 UTC) #2
vivekg
On 2014/08/18 at 19:22:44, esprehn wrote: > Why do we need to eagerly compute this ...
6 years, 4 months ago (2014-08-18 19:37:40 UTC) #3
vivekg
Thank you @esprehn, I will make all the necessary changes as you suggested.
6 years, 4 months ago (2014-08-18 19:38:41 UTC) #4
vivekg
A friendly ping, thank you.
6 years, 4 months ago (2014-08-19 17:40:17 UTC) #5
esprehn
https://codereview.chromium.org/468483003/diff/120001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/468483003/diff/120001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2038 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2038: direction = inheritedDirection(*canvas()); This is now how inheritance is ...
6 years, 4 months ago (2014-08-19 17:46:53 UTC) #6
vivekg
On 2014/08/19 17:46:53, esprehn wrote: > https://codereview.chromium.org/468483003/diff/120001/Source/core/html/canvas/CanvasRenderingContext2D.cpp > File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): > > https://codereview.chromium.org/468483003/diff/120001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2038 > ...
6 years, 4 months ago (2014-08-20 08:58:54 UTC) #7
vivekg
Updated the patch to handle previously missed out save/restore context operations with respect to the ...
6 years, 4 months ago (2014-08-21 12:11:26 UTC) #8
Stephen White
https://codereview.chromium.org/468483003/diff/200001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/468483003/diff/200001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode249 Source/core/html/canvas/CanvasRenderingContext2D.cpp:249: CanvasRenderingContext2D::State::State(Direction direction) This seems out of keeping with the ...
6 years, 4 months ago (2014-08-21 14:04:38 UTC) #9
vivekg
On 2014/08/21 at 14:04:38, senorblanco wrote: > https://codereview.chromium.org/468483003/diff/200001/Source/core/html/canvas/CanvasRenderingContext2D.cpp > File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): > > https://codereview.chromium.org/468483003/diff/200001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode249 ...
6 years, 4 months ago (2014-08-21 14:05:42 UTC) #10
vivekg
Uploaded cleaned up patch, PTAL! Thanks.
6 years, 4 months ago (2014-08-21 14:13:24 UTC) #11
Stephen White
LGTM, but please wait for esprehn for approval on the CSS bits.
6 years, 4 months ago (2014-08-21 14:17:43 UTC) #12
vivekg
On 2014/08/21 at 14:17:43, senorblanco wrote: > LGTM, but please wait for esprehn for approval ...
6 years, 4 months ago (2014-08-21 14:19:32 UTC) #13
vivekg
Updated the patch slightly to introduce toTextDirection method to avoid code duplication. PTAL, thank you!
6 years, 4 months ago (2014-08-22 10:08:20 UTC) #14
Stephen White
https://codereview.chromium.org/468483003/diff/260001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/468483003/diff/260001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2022 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2022: TextDirection CanvasRenderingContext2D::toTextDirection(Direction direction, RenderStyle*& computedStyle, bool updateRenderTree) const I'm ...
6 years, 4 months ago (2014-08-22 17:45:35 UTC) #15
Justin Novosad
https://codereview.chromium.org/468483003/diff/260001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/468483003/diff/260001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2022 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2022: TextDirection CanvasRenderingContext2D::toTextDirection(Direction direction, RenderStyle*& computedStyle, bool updateRenderTree) const Does ...
6 years, 4 months ago (2014-08-22 18:15:02 UTC) #16
vivekg
vivekg@chromium.org changed reviewers: + vivekg@chromium.org
6 years, 3 months ago (2014-08-26 11:31:52 UTC) #17
vivekg
Thank you all for the review. I have updated the patch with the comments addressed, ...
6 years, 3 months ago (2014-08-26 11:31:52 UTC) #18
Justin Novosad
https://codereview.chromium.org/468483003/diff/320001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/468483003/diff/320001/LayoutTests/TestExpectations#newcode625 LayoutTests/TestExpectations:625: crbug.com/277209 virtual/gpu/fast/canvas/canvas-direction.html [ NeedsRebaseline ] Why is this needed? ...
6 years, 3 months ago (2014-08-26 15:01:49 UTC) #19
vivekg
On 2014/08/26 at 15:01:49, junov wrote: > https://codereview.chromium.org/468483003/diff/320001/LayoutTests/TestExpectations > File LayoutTests/TestExpectations (right): > > https://codereview.chromium.org/468483003/diff/320001/LayoutTests/TestExpectations#newcode625 ...
6 years, 3 months ago (2014-08-27 06:24:35 UTC) #20
Justin Novosad
lgtm
6 years, 3 months ago (2014-08-27 14:25:33 UTC) #21
vivekg
The CQ bit was checked by vivekg@chromium.org
6 years, 3 months ago (2014-08-27 14:35:28 UTC) #22
vivekg
On 2014/08/27 at 14:25:33, junov wrote: > lgtm Thank you.
6 years, 3 months ago (2014-08-27 14:35:41 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/468483003/340001
6 years, 3 months ago (2014-08-27 14:35:55 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-27 15:29:31 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-08-27 15:56:21 UTC) #26
Message was sent while issue was closed.
Committed patchset #10 (id:340001) as 180984

Powered by Google App Engine
This is Rietveld 408576698