| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 kContainsContent = kContainsLayout | kContainsStyle | kContainsPaint, | 371 kContainsContent = kContainsLayout | kContainsStyle | kContainsPaint, |
| 372 }; | 372 }; |
| 373 inline Containment operator|(Containment a, Containment b) { | 373 inline Containment operator|(Containment a, Containment b) { |
| 374 return Containment(int(a) | int(b)); | 374 return Containment(int(a) | int(b)); |
| 375 } | 375 } |
| 376 inline Containment& operator|=(Containment& a, Containment b) { | 376 inline Containment& operator|=(Containment& a, Containment b) { |
| 377 return a = a | b; | 377 return a = a | b; |
| 378 } | 378 } |
| 379 | 379 |
| 380 enum ItemPosition { | 380 enum ItemPosition { |
| 381 kItemPositionAuto, // It will mean 'normal' after running the StyleAdjuster | 381 kItemPositionAuto, |
| 382 // to avoid resolving the initial values. | |
| 383 kItemPositionNormal, | 382 kItemPositionNormal, |
| 384 kItemPositionStretch, | 383 kItemPositionStretch, |
| 385 kItemPositionBaseline, | 384 kItemPositionBaseline, |
| 386 kItemPositionLastBaseline, | 385 kItemPositionLastBaseline, |
| 387 kItemPositionCenter, | 386 kItemPositionCenter, |
| 388 kItemPositionStart, | 387 kItemPositionStart, |
| 389 kItemPositionEnd, | 388 kItemPositionEnd, |
| 390 kItemPositionSelfStart, | 389 kItemPositionSelfStart, |
| 391 kItemPositionSelfEnd, | 390 kItemPositionSelfEnd, |
| 392 kItemPositionFlexStart, | 391 kItemPositionFlexStart, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 // fraction, which leaves 20 bits for the integer part, making 1048575 | 452 // fraction, which leaves 20 bits for the integer part, making 1048575 |
| 454 // the largest number. | 453 // the largest number. |
| 455 | 454 |
| 456 static const int kBorderWidthFractionalBits = 6; | 455 static const int kBorderWidthFractionalBits = 6; |
| 457 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; | 456 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; |
| 458 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; | 457 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; |
| 459 | 458 |
| 460 } // namespace blink | 459 } // namespace blink |
| 461 | 460 |
| 462 #endif // ComputedStyleConstants_h | 461 #endif // ComputedStyleConstants_h |
| OLD | NEW |