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
reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 26 matching lines...) Expand all Loading... |
37 Reattach, | 37 Reattach, |
38 ReattachNoRenderer | 38 ReattachNoRenderer |
39 }; | 39 }; |
40 | 40 |
41 static const size_t PrintColorAdjustBits = 1; | 41 static const size_t PrintColorAdjustBits = 1; |
42 enum PrintColorAdjust { | 42 enum PrintColorAdjust { |
43 PrintColorAdjustEconomy, | 43 PrintColorAdjustEconomy, |
44 PrintColorAdjustExact | 44 PrintColorAdjustExact |
45 }; | 45 }; |
46 | 46 |
47 // When some style properties change, different amounts of work have to be done
depending on | |
48 // context (e.g. whether the property is changing on an element which has a comp
ositing layer). | |
49 // A simple StyleDifference does not provide enough information so we return a b
it mask of | |
50 // StyleDifferenceContextSensitiveProperties from RenderStyle::visualInvalidatio
nDiff() too. | |
51 enum StyleDifferenceContextSensitiveProperty { | |
52 ContextSensitivePropertyNone = 0, | |
53 ContextSensitivePropertyTransform = (1 << 0), | |
54 ContextSensitivePropertyOpacity = (1 << 1), | |
55 ContextSensitivePropertyZIndex = (1 << 2), | |
56 ContextSensitivePropertyFilter = (1 << 3), | |
57 // The object needs to be repainted if it contains text or properties depend
ent on color (e.g., border or outline). | |
58 ContextSensitivePropertyTextOrColor = (1 << 4) | |
59 }; | |
60 | |
61 // Static pseudo styles. Dynamic ones are produced on the fly. | 47 // Static pseudo styles. Dynamic ones are produced on the fly. |
62 enum PseudoId { | 48 enum PseudoId { |
63 // The order must be NOP ID, public IDs, and then internal IDs. | 49 // The order must be NOP ID, public IDs, and then internal IDs. |
64 // If you add or remove a public ID, you must update _pseudoBits in RenderSt
yle. | 50 // If you add or remove a public ID, you must update _pseudoBits in RenderSt
yle. |
65 NOPSEUDO, FIRST_LINE, FIRST_LETTER, BEFORE, AFTER, BACKDROP, SELECTION, FIRS
T_LINE_INHERITED, SCROLLBAR, | 51 NOPSEUDO, FIRST_LINE, FIRST_LETTER, BEFORE, AFTER, BACKDROP, SELECTION, FIRS
T_LINE_INHERITED, SCROLLBAR, |
66 // Internal IDs follow: | 52 // Internal IDs follow: |
67 SCROLLBAR_THUMB, SCROLLBAR_BUTTON, SCROLLBAR_TRACK, SCROLLBAR_TRACK_PIECE, S
CROLLBAR_CORNER, RESIZER, INPUT_LIST_BUTTON, | 53 SCROLLBAR_THUMB, SCROLLBAR_BUTTON, SCROLLBAR_TRACK, SCROLLBAR_TRACK_PIECE, S
CROLLBAR_CORNER, RESIZER, INPUT_LIST_BUTTON, |
68 // Special values follow: | 54 // Special values follow: |
69 AFTER_LAST_INTERNAL_PSEUDOID, | 55 AFTER_LAST_INTERNAL_PSEUDOID, |
70 FIRST_PUBLIC_PSEUDOID = FIRST_LINE, | 56 FIRST_PUBLIC_PSEUDOID = FIRST_LINE, |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 static const float maximumAllowedFontSize = 1000000.0f; | 540 static const float maximumAllowedFontSize = 1000000.0f; |
555 | 541 |
556 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; | 542 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; |
557 enum TextIndentType { TextIndentNormal, TextIndentHanging }; | 543 enum TextIndentType { TextIndentNormal, TextIndentHanging }; |
558 | 544 |
559 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }
; | 545 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }
; |
560 | 546 |
561 } // namespace WebCore | 547 } // namespace WebCore |
562 | 548 |
563 #endif // RenderStyleConstants_h | 549 #endif // RenderStyleConstants_h |
OLD | NEW |