OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 NotEnoughText | 116 NotEnoughText |
117 }; | 117 }; |
118 | 118 |
119 enum RelayoutBehavior { | 119 enum RelayoutBehavior { |
120 AlreadyInLayout, // The default; appropriate if we are already in layout. | 120 AlreadyInLayout, // The default; appropriate if we are already in layout. |
121 LayoutNeeded // Use this if changing a multiplier outside of layout. | 121 LayoutNeeded // Use this if changing a multiplier outside of layout. |
122 }; | 122 }; |
123 | 123 |
124 enum BeginLayoutBehavior { StopLayout, ContinueLayout }; | 124 enum BeginLayoutBehavior { StopLayout, ContinueLayout }; |
125 | 125 |
126 enum InflateBehavior { ThisBlockOnly, DescendToInnerBlocks }; | 126 enum InflateBehavior { |
| 127 ThisBlockOnly, |
| 128 DescendToInnerBlocks, |
| 129 SkippedInlineBlockAndDescendToInnerBlocks |
| 130 }; |
127 | 131 |
128 enum BlockFlag { | 132 enum BlockFlag { |
129 // A block that is evaluated for becoming a cluster root. | 133 // A block that is evaluated for becoming a cluster root. |
130 POTENTIAL_ROOT = 1 << 0, | 134 POTENTIAL_ROOT = 1 << 0, |
131 // A cluster root that establishes an independent multiplier. | 135 // A cluster root that establishes an independent multiplier. |
132 INDEPENDENT = 1 << 1, | 136 INDEPENDENT = 1 << 1, |
133 // A cluster root with an explicit width. These are likely to be | 137 // A cluster root with an explicit width. These are likely to be |
134 // independent. | 138 // independent. |
135 EXPLICIT_WIDTH = 1 << 2, | 139 EXPLICIT_WIDTH = 1 << 2, |
136 // A cluster that is wider or narrower than its parent. These also create an | 140 // A cluster that is wider or narrower than its parent. These also create an |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 FingerprintMapper m_fingerprintMapper; | 362 FingerprintMapper m_fingerprintMapper; |
359 Vector<RefPtr<ComputedStyle>> m_stylesRetainedDuringLayout; | 363 Vector<RefPtr<ComputedStyle>> m_stylesRetainedDuringLayout; |
360 // FIXME: All frames should share the same m_pageInfo instance. | 364 // FIXME: All frames should share the same m_pageInfo instance. |
361 PageInfo m_pageInfo; | 365 PageInfo m_pageInfo; |
362 bool m_updatePageInfoDeferred; | 366 bool m_updatePageInfoDeferred; |
363 }; | 367 }; |
364 | 368 |
365 } // namespace blink | 369 } // namespace blink |
366 | 370 |
367 #endif // TextAutosizer_h | 371 #endif // TextAutosizer_h |
OLD | NEW |