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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 enum TextOverflow { kTextOverflowClip = 0, kTextOverflowEllipsis }; | 320 enum TextOverflow { kTextOverflowClip = 0, kTextOverflowEllipsis }; |
321 | 321 |
322 enum EImageRendering { | 322 enum EImageRendering { |
323 kImageRenderingAuto, | 323 kImageRenderingAuto, |
324 kImageRenderingOptimizeSpeed, | 324 kImageRenderingOptimizeSpeed, |
325 kImageRenderingOptimizeQuality, | 325 kImageRenderingOptimizeQuality, |
326 kImageRenderingOptimizeContrast, | 326 kImageRenderingOptimizeContrast, |
327 kImageRenderingPixelated | 327 kImageRenderingPixelated |
328 }; | 328 }; |
329 | 329 |
330 enum RubyPosition { kRubyPositionBefore, kRubyPositionAfter }; | 330 enum class RubyPosition { kBefore, kAfter }; |
331 | 331 |
332 static const size_t kGridAutoFlowBits = 4; | 332 static const size_t kGridAutoFlowBits = 4; |
333 enum InternalGridAutoFlowAlgorithm { | 333 enum InternalGridAutoFlowAlgorithm { |
334 kInternalAutoFlowAlgorithmSparse = 0x1, | 334 kInternalAutoFlowAlgorithmSparse = 0x1, |
335 kInternalAutoFlowAlgorithmDense = 0x2 | 335 kInternalAutoFlowAlgorithmDense = 0x2 |
336 }; | 336 }; |
337 | 337 |
338 enum InternalGridAutoFlowDirection { | 338 enum InternalGridAutoFlowDirection { |
339 kInternalAutoFlowDirectionRow = 0x4, | 339 kInternalAutoFlowDirectionRow = 0x4, |
340 kInternalAutoFlowDirectionColumn = 0x8 | 340 kInternalAutoFlowDirectionColumn = 0x8 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 // fraction, which leaves 20 bits for the integer part, making 1048575 | 453 // fraction, which leaves 20 bits for the integer part, making 1048575 |
454 // the largest number. | 454 // the largest number. |
455 | 455 |
456 static const int kBorderWidthFractionalBits = 6; | 456 static const int kBorderWidthFractionalBits = 6; |
457 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; | 457 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; |
458 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; | 458 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; |
459 | 459 |
460 } // namespace blink | 460 } // namespace blink |
461 | 461 |
462 #endif // ComputedStyleConstants_h | 462 #endif // ComputedStyleConstants_h |
OLD | NEW |