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

Side by Side Diff: sky/engine/platform/text/WritingMode.h

Issue 683803006: Remove all writing mode function arguments and remove writing mode from RenderStyle. (Closed) Base URL: git@github.com:domokit/mojo.git@writingmode
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/platform/geometry/LayoutBoxExtent.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, Google Inc. All rights reserved. 2 * Copyright (c) 2012, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define WritingMode_h 32 #define WritingMode_h
33 33
34 namespace blink { 34 namespace blink {
35 35
36 // FIXME(sky): Remove 36 // FIXME(sky): Remove
37 enum WritingMode { 37 enum WritingMode {
38 TopToBottomWritingMode 38 TopToBottomWritingMode
39 }; 39 };
40 40
41 // Lines have horizontal orientation; modes horizontal-tb or horizontal-bt. 41 // Lines have horizontal orientation; modes horizontal-tb or horizontal-bt.
42 inline bool isHorizontalWritingMode(WritingMode writingMode) 42 inline bool isHorizontalWritingMode()
43 { 43 {
44 // FIXME(sky): Remove 44 // FIXME(sky): Remove
45 return true; 45 return true;
46 } 46 }
47 47
48 // Bottom of the line occurs earlier in the block; modes vertical-lr or horizont al-bt. 48 // Bottom of the line occurs earlier in the block; modes vertical-lr or horizont al-bt.
49 inline bool isFlippedLinesWritingMode(WritingMode writingMode) 49 inline bool isFlippedLinesWritingMode()
50 { 50 {
51 // FIXME(sky): Remove 51 // FIXME(sky): Remove
52 return false; 52 return false;
53 } 53 }
54 54
55 // Block progression increases in the opposite direction to normal; modes vertic al-rl or horizontal-bt. 55 // Block progression increases in the opposite direction to normal; modes vertic al-rl or horizontal-bt.
56 inline bool isFlippedBlocksWritingMode(WritingMode writingMode) 56 inline bool isFlippedBlocksWritingMode()
57 { 57 {
58 // FIXME(sky): Remove 58 // FIXME(sky): Remove
59 return false; 59 return false;
60 } 60 }
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif // WritingMode_h 64 #endif // WritingMode_h
OLDNEW
« no previous file with comments | « sky/engine/platform/geometry/LayoutBoxExtent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698