| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // - StyleDifferenceEqual - The two styles are identical. | 48 // - StyleDifferenceEqual - The two styles are identical. |
| 49 // FIXME: When style difference is context sensitive, RenderStyle::visualInval
idationDiff() may return | 49 // FIXME: When style difference is context sensitive, RenderStyle::visualInval
idationDiff() may return |
| 50 // StyleDifferenceEqual even there is difference. Will resolve the issue when
fixing crbug.com/358460. | 50 // StyleDifferenceEqual even there is difference. Will resolve the issue when
fixing crbug.com/358460. |
| 51 // - StyleDifferenceRecompositeLayer - The layer needs its position and transfor
m updated, but no repaint. | 51 // - StyleDifferenceRecompositeLayer - The layer needs its position and transfor
m updated, but no repaint. |
| 52 // - StyleDifferenceRepaint - The object just needs to be repainted. | 52 // - StyleDifferenceRepaint - The object just needs to be repainted. |
| 53 // - StyleDifferenceRepaintLayer - The layer and its descendant layers need to b
e repainted. | 53 // - StyleDifferenceRepaintLayer - The layer and its descendant layers need to b
e repainted. |
| 54 // - StyleDifferenceLayoutPositionedMovementOnly - Only the position of this pos
itioned object has been updated. | 54 // - StyleDifferenceLayoutPositionedMovementOnly - Only the position of this pos
itioned object has been updated. |
| 55 // - StyleDifferenceSimplifiedLayout - Only overflow needs to be recomputed. | |
| 56 // - StyleDifferenceSimplifiedLayoutAndPositionedMovement - Both positioned move
ment and simplified layout updates are required. | |
| 57 // - StyleDifferenceLayout - A full layout is required. | 55 // - StyleDifferenceLayout - A full layout is required. |
| 58 enum StyleDifference { | 56 enum StyleDifference { |
| 59 StyleDifferenceEqual, | 57 StyleDifferenceEqual, |
| 60 StyleDifferenceRecompositeLayer, | 58 StyleDifferenceRecompositeLayer, |
| 61 StyleDifferenceRepaint, | 59 StyleDifferenceRepaint, |
| 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::visualInvalidatio
nDiff() too. | 68 // StyleDifferenceContextSensitiveProperties from RenderStyle::visualInvalidatio
nDiff() too. |
| 73 enum StyleDifferenceContextSensitiveProperty { | 69 enum StyleDifferenceContextSensitiveProperty { |
| 74 ContextSensitivePropertyNone = 0, | 70 ContextSensitivePropertyNone = 0, |
| 75 ContextSensitivePropertyTransform = (1 << 0), | 71 ContextSensitivePropertyTransform = (1 << 0), |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 // Reasonable maximum to prevent insane font sizes from causing crashes on some
platforms (such as Windows). | 547 // Reasonable maximum to prevent insane font sizes from causing crashes on some
platforms (such as Windows). |
| 552 static const float maximumAllowedFontSize = 1000000.0f; | 548 static const float maximumAllowedFontSize = 1000000.0f; |
| 553 | 549 |
| 554 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; | 550 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; |
| 555 | 551 |
| 556 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }
; | 552 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }
; |
| 557 | 553 |
| 558 } // namespace WebCore | 554 } // namespace WebCore |
| 559 | 555 |
| 560 #endif // RenderStyleConstants_h | 556 #endif // RenderStyleConstants_h |
| OLD | NEW |