OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 struct SameSizeAsLayoutObject { | 133 struct SameSizeAsLayoutObject { |
134 virtual ~SameSizeAsLayoutObject() { } // Allocate vtable pointer. | 134 virtual ~SameSizeAsLayoutObject() { } // Allocate vtable pointer. |
135 void* pointers[6]; | 135 void* pointers[6]; |
136 #if ENABLE(ASSERT) | 136 #if ENABLE(ASSERT) |
137 unsigned m_debugBitfields : 2; | 137 unsigned m_debugBitfields : 2; |
138 #endif | 138 #endif |
139 unsigned m_bitfields; | 139 unsigned m_bitfields; |
140 unsigned m_bitfields2; | 140 unsigned m_bitfields2; |
141 LayoutRect rect; // Stores the previous paint invalidation rect. | 141 LayoutRect rect; // Stores the previous paint invalidation rect. |
142 LayoutPoint position; // Stores the previous position from the paint invalid
ation container. | 142 LayoutPoint position; // Stores the previous position from the paint invalid
ation container. |
143 DisplayItemCacheGeneration cacheGeneration; | |
144 }; | 143 }; |
145 | 144 |
146 static_assert(sizeof(LayoutObject) == sizeof(SameSizeAsLayoutObject), "LayoutObj
ect should stay small"); | 145 static_assert(sizeof(LayoutObject) == sizeof(SameSizeAsLayoutObject), "LayoutObj
ect should stay small"); |
147 | 146 |
148 bool LayoutObject::s_affectsParentBlock = false; | 147 bool LayoutObject::s_affectsParentBlock = false; |
149 | 148 |
150 typedef HashMap<const LayoutObject*, LayoutRect> SelectionPaintInvalidationMap; | 149 typedef HashMap<const LayoutObject*, LayoutRect> SelectionPaintInvalidationMap; |
151 static SelectionPaintInvalidationMap* selectionPaintInvalidationMap = nullptr; | 150 static SelectionPaintInvalidationMap* selectionPaintInvalidationMap = nullptr; |
152 | 151 |
153 // The pointer to paint properties is implemented as a global hash map temporari
ly, | 152 // The pointer to paint properties is implemented as a global hash map temporari
ly, |
(...skipping 3534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3688 const blink::LayoutObject* root = object1; | 3687 const blink::LayoutObject* root = object1; |
3689 while (root->parent()) | 3688 while (root->parent()) |
3690 root = root->parent(); | 3689 root = root->parent(); |
3691 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3690 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3692 } else { | 3691 } else { |
3693 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3692 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3694 } | 3693 } |
3695 } | 3694 } |
3696 | 3695 |
3697 #endif | 3696 #endif |
OLD | NEW |