| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #include "wtf/text/StringBuilder.h" | 90 #include "wtf/text/StringBuilder.h" |
| 91 #include "wtf/text/WTFString.h" | 91 #include "wtf/text/WTFString.h" |
| 92 #ifndef NDEBUG | 92 #ifndef NDEBUG |
| 93 #include <stdio.h> | 93 #include <stdio.h> |
| 94 #endif | 94 #endif |
| 95 | 95 |
| 96 namespace blink { | 96 namespace blink { |
| 97 | 97 |
| 98 namespace { | 98 namespace { |
| 99 | 99 |
| 100 static bool gModifyLayoutTreeStructureAnyState = false; | 100 static bool gModifyLayoutTreeStructureAnyState = true; |
| 101 | 101 |
| 102 } // namespace | 102 } // namespace |
| 103 | 103 |
| 104 #if DCHECK_IS_ON() | 104 #if DCHECK_IS_ON() |
| 105 | 105 |
| 106 LayoutObject::SetLayoutNeededForbiddenScope::SetLayoutNeededForbiddenScope( | 106 LayoutObject::SetLayoutNeededForbiddenScope::SetLayoutNeededForbiddenScope( |
| 107 LayoutObject& layoutObject) | 107 LayoutObject& layoutObject) |
| 108 : m_layoutObject(layoutObject), | 108 : m_layoutObject(layoutObject), |
| 109 m_preexistingForbidden(m_layoutObject.isSetNeedsLayoutForbidden()) { | 109 m_preexistingForbidden(m_layoutObject.isSetNeedsLayoutForbidden()) { |
| 110 m_layoutObject.setNeedsLayoutIsForbidden(true); | 110 m_layoutObject.setNeedsLayoutIsForbidden(true); |
| (...skipping 3515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3626 const blink::LayoutObject* root = object1; | 3626 const blink::LayoutObject* root = object1; |
| 3627 while (root->parent()) | 3627 while (root->parent()) |
| 3628 root = root->parent(); | 3628 root = root->parent(); |
| 3629 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3629 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3630 } else { | 3630 } else { |
| 3631 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3631 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3632 } | 3632 } |
| 3633 } | 3633 } |
| 3634 | 3634 |
| 3635 #endif | 3635 #endif |
| OLD | NEW |