| 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. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 : m_layoutObject(layoutObject), | 107 : m_layoutObject(layoutObject), |
| 108 m_preexistingForbidden(m_layoutObject.isSetNeedsLayoutForbidden()) { | 108 m_preexistingForbidden(m_layoutObject.isSetNeedsLayoutForbidden()) { |
| 109 m_layoutObject.setNeedsLayoutIsForbidden(true); | 109 m_layoutObject.setNeedsLayoutIsForbidden(true); |
| 110 } | 110 } |
| 111 | 111 |
| 112 LayoutObject::SetLayoutNeededForbiddenScope::~SetLayoutNeededForbiddenScope() { | 112 LayoutObject::SetLayoutNeededForbiddenScope::~SetLayoutNeededForbiddenScope() { |
| 113 m_layoutObject.setNeedsLayoutIsForbidden(m_preexistingForbidden); | 113 m_layoutObject.setNeedsLayoutIsForbidden(m_preexistingForbidden); |
| 114 } | 114 } |
| 115 #endif | 115 #endif |
| 116 | 116 |
| 117 struct SameSizeAsLayoutObject : DisplayItemClient { | 117 struct SameSizeAsLayoutObject : DisplayItemClient, InvalidationDebugging { |
| 118 virtual ~SameSizeAsLayoutObject() {} // Allocate vtable pointer. | 118 virtual ~SameSizeAsLayoutObject() {} // Allocate vtable pointer. |
| 119 void* pointers[5]; | 119 void* pointers[5]; |
| 120 Member<void*> members[1]; | 120 Member<void*> members[1]; |
| 121 #if DCHECK_IS_ON() | 121 #if DCHECK_IS_ON() |
| 122 unsigned m_debugBitfields : 2; | 122 unsigned m_debugBitfields : 2; |
| 123 #endif | 123 #endif |
| 124 unsigned m_bitfields; | 124 unsigned m_bitfields; |
| 125 unsigned m_bitfields2; | 125 unsigned m_bitfields2; |
| 126 LayoutRect m_visualRect; | 126 LayoutRect m_visualRect; |
| 127 LayoutPoint m_paintOffset; | 127 LayoutPoint m_paintOffset; |
| (...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 StringBuilder name; | 1086 StringBuilder name; |
| 1087 name.append(decoratedName()); | 1087 name.append(decoratedName()); |
| 1088 | 1088 |
| 1089 if (const Node* node = this->node()) { | 1089 if (const Node* node = this->node()) { |
| 1090 name.append(' '); | 1090 name.append(' '); |
| 1091 name.append(node->debugName()); | 1091 name.append(node->debugName()); |
| 1092 } | 1092 } |
| 1093 return name.toString(); | 1093 return name.toString(); |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 String LayoutObject::invalidationName() const { |
| 1097 return debugName(); |
| 1098 } |
| 1099 |
| 1096 LayoutRect LayoutObject::visualRect() const { | 1100 LayoutRect LayoutObject::visualRect() const { |
| 1097 return previousVisualRect(); | 1101 return previousVisualRect(); |
| 1098 } | 1102 } |
| 1099 | 1103 |
| 1100 bool LayoutObject::isPaintInvalidationContainer() const { | 1104 bool LayoutObject::isPaintInvalidationContainer() const { |
| 1101 return hasLayer() && | 1105 return hasLayer() && |
| 1102 toLayoutBoxModelObject(this)->layer()->isPaintInvalidationContainer(); | 1106 toLayoutBoxModelObject(this)->layer()->isPaintInvalidationContainer(); |
| 1103 } | 1107 } |
| 1104 | 1108 |
| 1105 void LayoutObject::invalidateDisplayItemClients( | 1109 void LayoutObject::invalidateDisplayItemClients( |
| (...skipping 2389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3495 const blink::LayoutObject* root = object1; | 3499 const blink::LayoutObject* root = object1; |
| 3496 while (root->parent()) | 3500 while (root->parent()) |
| 3497 root = root->parent(); | 3501 root = root->parent(); |
| 3498 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3502 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3499 } else { | 3503 } else { |
| 3500 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3504 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3501 } | 3505 } |
| 3502 } | 3506 } |
| 3503 | 3507 |
| 3504 #endif | 3508 #endif |
| OLD | NEW |