OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
6 * reserved. | 6 * reserved. |
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * | 10 * |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 kContainsContent = kContainsLayout | kContainsStyle | kContainsPaint, | 369 kContainsContent = kContainsLayout | kContainsStyle | kContainsPaint, |
370 }; | 370 }; |
371 inline Containment operator|(Containment a, Containment b) { | 371 inline Containment operator|(Containment a, Containment b) { |
372 return Containment(int(a) | int(b)); | 372 return Containment(int(a) | int(b)); |
373 } | 373 } |
374 inline Containment& operator|=(Containment& a, Containment b) { | 374 inline Containment& operator|=(Containment& a, Containment b) { |
375 return a = a | b; | 375 return a = a | b; |
376 } | 376 } |
377 | 377 |
378 enum ItemPosition { | 378 enum ItemPosition { |
379 kItemPositionAuto, | 379 kItemPositionAuto, // It will mean 'normal' after running the StyleAdjuster |
| 380 // to avoid resolving the initial values. |
380 kItemPositionNormal, | 381 kItemPositionNormal, |
381 kItemPositionStretch, | 382 kItemPositionStretch, |
382 kItemPositionBaseline, | 383 kItemPositionBaseline, |
383 kItemPositionLastBaseline, | 384 kItemPositionLastBaseline, |
384 kItemPositionCenter, | 385 kItemPositionCenter, |
385 kItemPositionStart, | 386 kItemPositionStart, |
386 kItemPositionEnd, | 387 kItemPositionEnd, |
387 kItemPositionSelfStart, | 388 kItemPositionSelfStart, |
388 kItemPositionSelfEnd, | 389 kItemPositionSelfEnd, |
389 kItemPositionFlexStart, | 390 kItemPositionFlexStart, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 // fraction, which leaves 20 bits for the integer part, making 1048575 | 451 // fraction, which leaves 20 bits for the integer part, making 1048575 |
451 // the largest number. | 452 // the largest number. |
452 | 453 |
453 static const int kBorderWidthFractionalBits = 6; | 454 static const int kBorderWidthFractionalBits = 6; |
454 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; | 455 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; |
455 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; | 456 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; |
456 | 457 |
457 } // namespace blink | 458 } // namespace blink |
458 | 459 |
459 #endif // ComputedStyleConstants_h | 460 #endif // ComputedStyleConstants_h |
OLD | NEW |