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 // unsigned cacheGeneration; | |
chrishtr
2016/04/28 00:53:36
?
| |
143 }; | 144 }; |
144 | 145 |
145 static_assert(sizeof(LayoutObject) == sizeof(SameSizeAsLayoutObject), "LayoutObj ect should stay small"); | 146 static_assert(sizeof(LayoutObject) == sizeof(SameSizeAsLayoutObject), "LayoutObj ect should stay small"); |
146 | 147 |
147 bool LayoutObject::s_affectsParentBlock = false; | 148 bool LayoutObject::s_affectsParentBlock = false; |
148 | 149 |
149 typedef HashMap<const LayoutObject*, LayoutRect> SelectionPaintInvalidationMap; | 150 typedef HashMap<const LayoutObject*, LayoutRect> SelectionPaintInvalidationMap; |
150 static SelectionPaintInvalidationMap* selectionPaintInvalidationMap = nullptr; | 151 static SelectionPaintInvalidationMap* selectionPaintInvalidationMap = nullptr; |
151 | 152 |
152 // The pointer to paint properties is implemented as a global hash map temporari ly, | 153 // The pointer to paint properties is implemented as a global hash map temporari ly, |
(...skipping 3532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3685 const blink::LayoutObject* root = object1; | 3686 const blink::LayoutObject* root = object1; |
3686 while (root->parent()) | 3687 while (root->parent()) |
3687 root = root->parent(); | 3688 root = root->parent(); |
3688 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3689 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3689 } else { | 3690 } else { |
3690 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3691 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3691 } | 3692 } |
3692 } | 3693 } |
3693 | 3694 |
3694 #endif | 3695 #endif |
OLD | NEW |