| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 // When some style properties change, different amounts of work have to be done
depending on | 70 // When some style properties change, different amounts of work have to be done
depending on |
| 71 // context (e.g. whether the property is changing on an element which has a comp
ositing layer). | 71 // context (e.g. whether the property is changing on an element which has a comp
ositing layer). |
| 72 // A simple StyleDifference does not provide enough information so we return a b
it mask of | 72 // A simple StyleDifference does not provide enough information so we return a b
it mask of |
| 73 // StyleDifferenceContextSensitiveProperties from RenderStyle::visualInvalidatio
nDiff() too. | 73 // StyleDifferenceContextSensitiveProperties from RenderStyle::visualInvalidatio
nDiff() too. |
| 74 enum StyleDifferenceContextSensitiveProperty { | 74 enum StyleDifferenceContextSensitiveProperty { |
| 75 ContextSensitivePropertyNone = 0, | 75 ContextSensitivePropertyNone = 0, |
| 76 ContextSensitivePropertyTransform = (1 << 0), | 76 ContextSensitivePropertyTransform = (1 << 0), |
| 77 ContextSensitivePropertyOpacity = (1 << 1), | 77 ContextSensitivePropertyOpacity = (1 << 1), |
| 78 ContextSensitivePropertyFilter = (1 << 2), | 78 ContextSensitivePropertyZIndex = (1 << 2), |
| 79 ContextSensitivePropertyFilter = (1 << 3), |
| 79 // The object needs to be repainted if it contains text or properties depend
ent on color (e.g., border or outline). | 80 // The object needs to be repainted if it contains text or properties depend
ent on color (e.g., border or outline). |
| 80 ContextSensitivePropertyTextOrColor = (1 << 3) | 81 ContextSensitivePropertyTextOrColor = (1 << 4) |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 // Static pseudo styles. Dynamic ones are produced on the fly. | 84 // Static pseudo styles. Dynamic ones are produced on the fly. |
| 84 enum PseudoId { | 85 enum PseudoId { |
| 85 // The order must be NOP ID, public IDs, and then internal IDs. | 86 // The order must be NOP ID, public IDs, and then internal IDs. |
| 86 // If you add or remove a public ID, you must update _pseudoBits in RenderSt
yle. | 87 // If you add or remove a public ID, you must update _pseudoBits in RenderSt
yle. |
| 87 NOPSEUDO, FIRST_LINE, FIRST_LETTER, BEFORE, AFTER, BACKDROP, SELECTION, FIRS
T_LINE_INHERITED, SCROLLBAR, | 88 NOPSEUDO, FIRST_LINE, FIRST_LETTER, BEFORE, AFTER, BACKDROP, SELECTION, FIRS
T_LINE_INHERITED, SCROLLBAR, |
| 88 // Internal IDs follow: | 89 // Internal IDs follow: |
| 89 SCROLLBAR_THUMB, SCROLLBAR_BUTTON, SCROLLBAR_TRACK, SCROLLBAR_TRACK_PIECE, S
CROLLBAR_CORNER, RESIZER, INPUT_LIST_BUTTON, | 90 SCROLLBAR_THUMB, SCROLLBAR_BUTTON, SCROLLBAR_TRACK, SCROLLBAR_TRACK_PIECE, S
CROLLBAR_CORNER, RESIZER, INPUT_LIST_BUTTON, |
| 90 // Special values follow: | 91 // Special values follow: |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 static const float maximumAllowedFontSize = 1000000.0f; | 554 static const float maximumAllowedFontSize = 1000000.0f; |
| 554 | 555 |
| 555 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; | 556 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; |
| 556 enum TextIndentType { TextIndentNormal, TextIndentHanging }; | 557 enum TextIndentType { TextIndentNormal, TextIndentHanging }; |
| 557 | 558 |
| 558 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }
; | 559 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }
; |
| 559 | 560 |
| 560 } // namespace WebCore | 561 } // namespace WebCore |
| 561 | 562 |
| 562 #endif // RenderStyleConstants_h | 563 #endif // RenderStyleConstants_h |
| OLD | NEW |