| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 case INLINE_BOX: | 213 case INLINE_BOX: |
| 214 return new LayoutDeprecatedFlexibleBox(*element); | 214 return new LayoutDeprecatedFlexibleBox(*element); |
| 215 case FLEX: | 215 case FLEX: |
| 216 case INLINE_FLEX: | 216 case INLINE_FLEX: |
| 217 return new LayoutFlexibleBox(element); | 217 return new LayoutFlexibleBox(element); |
| 218 case GRID: | 218 case GRID: |
| 219 case INLINE_GRID: | 219 case INLINE_GRID: |
| 220 return new LayoutGrid(element); | 220 return new LayoutGrid(element); |
| 221 } | 221 } |
| 222 | 222 |
| 223 ASSERT_NOT_REACHED(); |
| 223 return nullptr; | 224 return nullptr; |
| 224 } | 225 } |
| 225 | 226 |
| 226 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, layoutObjectCounter, ("Layo
utObject")); | 227 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, layoutObjectCounter, ("Layo
utObject")); |
| 227 | 228 |
| 228 LayoutObject::LayoutObject(Node* node) | 229 LayoutObject::LayoutObject(Node* node) |
| 229 : ImageResourceClient() | 230 : ImageResourceClient() |
| 230 , m_style(nullptr) | 231 , m_style(nullptr) |
| 231 , m_node(node) | 232 , m_node(node) |
| 232 , m_parent(nullptr) | 233 , m_parent(nullptr) |
| (...skipping 3172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3405 const blink::LayoutObject* root = object1; | 3406 const blink::LayoutObject* root = object1; |
| 3406 while (root->parent()) | 3407 while (root->parent()) |
| 3407 root = root->parent(); | 3408 root = root->parent(); |
| 3408 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3409 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3409 } else { | 3410 } else { |
| 3410 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3411 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3411 } | 3412 } |
| 3412 } | 3413 } |
| 3413 | 3414 |
| 3414 #endif | 3415 #endif |
| OLD | NEW |