| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 63 } |
| 64 | 64 |
| 65 void idChanged(); | 65 void idChanged(); |
| 66 | 66 |
| 67 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = nullptr); | 67 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = nullptr); |
| 68 | 68 |
| 69 static void markForLayoutAndParentResourceInvalidation( | 69 static void markForLayoutAndParentResourceInvalidation( |
| 70 LayoutObject*, | 70 LayoutObject*, |
| 71 bool needsLayout = true); | 71 bool needsLayout = true); |
| 72 | 72 |
| 73 static void markForLayoutAndParentResourceInvalidation( |
| 74 LayoutObject*, |
| 75 StyleDifference); |
| 76 |
| 73 void clearInvalidationMask() { m_invalidationMask = 0; } | 77 void clearInvalidationMask() { m_invalidationMask = 0; } |
| 74 | 78 |
| 75 protected: | 79 protected: |
| 76 // When adding modes, make sure we don't overflow m_invalidationMask below. | 80 // When adding modes, make sure we don't overflow m_invalidationMask below. |
| 77 enum InvalidationMode { | 81 enum InvalidationMode { |
| 78 LayoutAndBoundariesInvalidation = 1 << 0, | 82 LayoutAndBoundariesInvalidation = 1 << 0, |
| 79 BoundariesInvalidation = 1 << 1, | 83 BoundariesInvalidation = 1 << 1, |
| 80 PaintInvalidation = 1 << 2, | 84 PaintInvalidation = 1 << 2, |
| 81 ParentOnlyInvalidation = 1 << 3 | 85 ParentOnlyInvalidation = 1 << 3 |
| 82 }; | 86 }; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 isSVGResourceContainer()); | 144 isSVGResourceContainer()); |
| 141 | 145 |
| 142 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ | 146 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ |
| 143 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ | 147 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ |
| 144 resource->resourceType() == typeName, \ | 148 resource->resourceType() == typeName, \ |
| 145 resource.resourceType() == typeName) | 149 resource.resourceType() == typeName) |
| 146 | 150 |
| 147 } // namespace blink | 151 } // namespace blink |
| 148 | 152 |
| 149 #endif | 153 #endif |
| OLD | NEW |