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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 PrintColorAdjustExact | 44 PrintColorAdjustExact |
45 }; | 45 }; |
46 | 46 |
47 // The difference between two styles. The following values are used: | 47 // The difference between two styles. The following values are used: |
48 // (1) StyleDifferenceEqual - The two styles are identical. | 48 // (1) StyleDifferenceEqual - The two styles are identical. |
49 // (2) StyleDifferenceRecompositeLayer - The layer needs its position and transf
orm updated, but no repaint. | 49 // (2) StyleDifferenceRecompositeLayer - The layer needs its position and transf
orm updated, but no repaint. |
50 // (3) StyleDifferenceRepaint - The object just needs to be repainted. | 50 // (3) StyleDifferenceRepaint - The object just needs to be repainted. |
51 // (4) StyleDifferenceRepaintIfTextOrColorChange - The object needs to be repain
ted if it contains text or properties dependent on color (e.g., border or outlin
e). | 51 // (4) StyleDifferenceRepaintIfTextOrColorChange - The object needs to be repain
ted if it contains text or properties dependent on color (e.g., border or outlin
e). |
52 // (5) StyleDifferenceRepaintLayer - The layer and its descendant layers needs t
o be repainted. | 52 // (5) StyleDifferenceRepaintLayer - The layer and its descendant layers needs t
o be repainted. |
53 // (6) StyleDifferenceLayoutPositionedMovementOnly - Only the position of this p
ositioned object has been updated. | 53 // (6) StyleDifferenceLayoutPositionedMovementOnly - Only the position of this p
ositioned object has been updated. |
54 // (7) StyleDifferenceSimplifiedLayout - Only overflow needs to be recomputed. | 54 // (7) StyleDifferenceLayout - A full layout is required. |
55 // (8) StyleDifferenceSimplifiedLayoutAndPositionedMovement - Both positioned mo
vement and simplified layout updates are required. | |
56 // (9) StyleDifferenceLayout - A full layout is required. | |
57 enum StyleDifference { | 55 enum StyleDifference { |
58 StyleDifferenceEqual, | 56 StyleDifferenceEqual, |
59 StyleDifferenceRecompositeLayer, | 57 StyleDifferenceRecompositeLayer, |
60 StyleDifferenceRepaint, | 58 StyleDifferenceRepaint, |
61 StyleDifferenceRepaintIfTextOrColorChange, | 59 StyleDifferenceRepaintIfTextOrColorChange, |
62 StyleDifferenceRepaintLayer, | 60 StyleDifferenceRepaintLayer, |
63 StyleDifferenceLayoutPositionedMovementOnly, | 61 StyleDifferenceLayoutPositionedMovementOnly, |
64 StyleDifferenceSimplifiedLayout, | |
65 StyleDifferenceSimplifiedLayoutAndPositionedMovement, | |
66 StyleDifferenceLayout | 62 StyleDifferenceLayout |
67 }; | 63 }; |
68 | 64 |
69 // When some style properties change, different amounts of work have to be done
depending on | 65 // When some style properties change, different amounts of work have to be done
depending on |
70 // context (e.g. whether the property is changing on an element which has a comp
ositing layer). | 66 // context (e.g. whether the property is changing on an element which has a comp
ositing layer). |
71 // A simple StyleDifference does not provide enough information so we return a b
it mask of | 67 // A simple StyleDifference does not provide enough information so we return a b
it mask of |
72 // StyleDifferenceContextSensitiveProperties from RenderStyle::diff() too. | 68 // StyleDifferenceContextSensitiveProperties from RenderStyle::diff() too. |
73 enum StyleDifferenceContextSensitiveProperty { | 69 enum StyleDifferenceContextSensitiveProperty { |
74 ContextSensitivePropertyNone = 0, | 70 ContextSensitivePropertyNone = 0, |
75 ContextSensitivePropertyTransform = (1 << 0), | 71 ContextSensitivePropertyTransform = (1 << 0), |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 // Reasonable maximum to prevent insane font sizes from causing crashes on some
platforms (such as Windows). | 545 // Reasonable maximum to prevent insane font sizes from causing crashes on some
platforms (such as Windows). |
550 static const float maximumAllowedFontSize = 1000000.0f; | 546 static const float maximumAllowedFontSize = 1000000.0f; |
551 | 547 |
552 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; | 548 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; |
553 | 549 |
554 enum LayoutBox { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }; | 550 enum LayoutBox { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }; |
555 | 551 |
556 } // namespace WebCore | 552 } // namespace WebCore |
557 | 553 |
558 #endif // RenderStyleConstants_h | 554 #endif // RenderStyleConstants_h |
OLD | NEW |