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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 #endif | 84 #endif |
85 | 85 |
86 using namespace std; | 86 using namespace std; |
87 | 87 |
88 namespace WebCore { | 88 namespace WebCore { |
89 | 89 |
90 using namespace HTMLNames; | 90 using namespace HTMLNames; |
91 | 91 |
92 #ifndef NDEBUG | 92 #ifndef NDEBUG |
93 static void* baseOfRenderObjectBeingDeleted; | 93 static void* baseOfRenderObjectBeingDeleted; |
| 94 |
| 95 RenderObject::SetLayoutNeededForbiddenScope::SetLayoutNeededForbiddenScope(Rende
rObject* renderObject) |
| 96 : m_renderObject(renderObject) |
| 97 , m_preexistingForbidden(m_renderObject->isSetNeedsLayoutForbidden()) |
| 98 { |
| 99 m_renderObject->setNeedsLayoutIsForbidden(true); |
| 100 } |
| 101 |
| 102 RenderObject::SetLayoutNeededForbiddenScope::~SetLayoutNeededForbiddenScope() |
| 103 { |
| 104 m_renderObject->setNeedsLayoutIsForbidden(m_preexistingForbidden); |
| 105 } |
94 #endif | 106 #endif |
95 | 107 |
96 struct SameSizeAsRenderObject { | 108 struct SameSizeAsRenderObject { |
97 virtual ~SameSizeAsRenderObject() { } // Allocate vtable pointer. | 109 virtual ~SameSizeAsRenderObject() { } // Allocate vtable pointer. |
98 void* pointers[5]; | 110 void* pointers[5]; |
99 #ifndef NDEBUG | 111 #ifndef NDEBUG |
100 unsigned m_debugBitfields : 2; | 112 unsigned m_debugBitfields : 2; |
101 #endif | 113 #endif |
102 unsigned m_bitfields; | 114 unsigned m_bitfields; |
103 }; | 115 }; |
(...skipping 2972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3076 { | 3088 { |
3077 if (object1) { | 3089 if (object1) { |
3078 const WebCore::RenderObject* root = object1; | 3090 const WebCore::RenderObject* root = object1; |
3079 while (root->parent()) | 3091 while (root->parent()) |
3080 root = root->parent(); | 3092 root = root->parent(); |
3081 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3093 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3082 } | 3094 } |
3083 } | 3095 } |
3084 | 3096 |
3085 #endif | 3097 #endif |
OLD | NEW |