RESOLVED FIXED Bug 104035
Support text-orientation: sideways-right (and sideways when it maps to sideways-right)
https://bugs.webkit.org/show_bug.cgi?id=104035
Summary Support text-orientation: sideways-right (and sideways when it maps to sidewa...
mitz
Reported 2012-12-04 13:37:49 PST
<rdar://problem/12754101> As specified in <http://dev.w3.org/csswg/css3-writing-modes/>, the text-orientation property accepts the values sideways-right and sideways. The latter maps to sideways-right in vertical-rl writing mode. text-orientation: sideways-right should cause text to be set as if in a horizontal layout, but rotated 90° clockwise.
Attachments
Work in progress (17.62 KB, patch)
2012-12-04 13:39 PST, mitz
no flags
Add text-orientation: sideways-right support (deleted)
2012-12-04 17:54 PST, mitz
andersca: review+
webkit.review.bot: commit-queue-
Add text-orientation: sideways-right support (124.34 KB, patch)
2012-12-04 18:40 PST, mitz
no flags
Add text-orientation: sideways-right support (124.33 KB, patch)
2012-12-04 18:42 PST, mitz
no flags
mitz
Comment 1 2012-12-04 13:39:19 PST
Created attachment 177541 [details] Work in progress
Dave Hyatt
Comment 2 2012-12-04 13:53:44 PST
Comment on attachment 177541 [details] Work in progress Patch looks fine to me. I'm not a fan of fall-through case statements, but it looks ok.
mitz
Comment 3 2012-12-04 17:54:11 PST
Created attachment 177627 [details] Add text-orientation: sideways-right support
WebKit Review Bot
Comment 4 2012-12-04 17:58:10 PST
Attachment 177627 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1 Source/WebCore/rendering/style/RenderStyle.h:1303: The parameter name "textOrientation" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/rendering/style/RenderStyle.h:1473: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 2 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 5 2012-12-04 18:19:10 PST
Comment on attachment 177627 [details] Add text-orientation: sideways-right support Looks good, but you should fix the style violations that make sense.
WebKit Review Bot
Comment 6 2012-12-04 18:20:15 PST
Comment on attachment 177627 [details] Add text-orientation: sideways-right support Attachment 177627 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/15157124
mitz
Comment 7 2012-12-04 18:40:29 PST
Created attachment 177641 [details] Add text-orientation: sideways-right support
mitz
Comment 8 2012-12-04 18:42:28 PST
Created attachment 177642 [details] Add text-orientation: sideways-right support
mitz
Comment 9 2012-12-04 22:16:26 PST
Comment on attachment 177642 [details] Add text-orientation: sideways-right support This patch differs from attachment 177627 [details] only in that the style issues and build failure were fixed, so I am going to land it with Anders’s review.
mitz
Comment 10 2012-12-04 22:19:35 PST
Darin Adler
Comment 11 2012-12-06 10:06:15 PST
Comment on attachment 177642 [details] Add text-orientation: sideways-right support View in context: https://bugs.webkit.org/attachment.cgi?id=177642&action=review > Source/WebCore/rendering/style/RenderStyle.h:1801 > + if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) What is the compareEqual function? I never heard of that before.
mitz
Comment 12 2012-12-06 10:16:13 PST
(In reply to comment #11) > (From update of attachment 177642 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=177642&action=review > > > Source/WebCore/rendering/style/RenderStyle.h:1801 > > + if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) > > What is the compareEqual function? I never heard of that before. It’s a function template that casts the right hand side to the left hand side’s type (we used unsigned for many of the StyleRareInheritedData data members, for reasons that involve MSVC if I remember correctly). It’s used in the SET_VAR macro, and the above use is similar to an expansion of that macro. Anyway, the reason I used it here was that I was following a pattern.
Darin Adler
Comment 13 2012-12-06 10:36:00 PST
Thanks for explaining!
Note You need to log in before you can comment on or make changes to this bug.