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 3299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3310 // Works on absolute coords - expensive to call | 3310 // Works on absolute coords - expensive to call |
3311 bool RenderObject::isContainedInParentBoundingBox() const | 3311 bool RenderObject::isContainedInParentBoundingBox() const |
3312 { | 3312 { |
3313 if (!parent()) | 3313 if (!parent()) |
3314 return false; | 3314 return false; |
3315 | 3315 |
3316 IntRect parentRect = parent()->absoluteBoundingBoxRect(); | 3316 IntRect parentRect = parent()->absoluteBoundingBoxRect(); |
3317 return parentRect.contains(absoluteBoundingBoxRect()); | 3317 return parentRect.contains(absoluteBoundingBoxRect()); |
3318 } | 3318 } |
3319 | 3319 |
| 3320 bool RenderObject::isRelayoutBoundaryForInspector() const |
| 3321 { |
| 3322 return objectIsRelayoutBoundary(this); |
| 3323 } |
| 3324 |
3320 } // namespace WebCore | 3325 } // namespace WebCore |
3321 | 3326 |
3322 #ifndef NDEBUG | 3327 #ifndef NDEBUG |
3323 | 3328 |
3324 void showTree(const WebCore::RenderObject* object) | 3329 void showTree(const WebCore::RenderObject* object) |
3325 { | 3330 { |
3326 if (object) | 3331 if (object) |
3327 object->showTreeForThis(); | 3332 object->showTreeForThis(); |
3328 } | 3333 } |
3329 | 3334 |
(...skipping 12 matching lines...) Expand all Loading... |
3342 { | 3347 { |
3343 if (object1) { | 3348 if (object1) { |
3344 const WebCore::RenderObject* root = object1; | 3349 const WebCore::RenderObject* root = object1; |
3345 while (root->parent()) | 3350 while (root->parent()) |
3346 root = root->parent(); | 3351 root = root->parent(); |
3347 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3352 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3348 } | 3353 } |
3349 } | 3354 } |
3350 | 3355 |
3351 #endif | 3356 #endif |
OLD | NEW |