| 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 3222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3233 } | 3233 } |
| 3234 | 3234 |
| 3235 bool LayoutObject::isInert() const | 3235 bool LayoutObject::isInert() const |
| 3236 { | 3236 { |
| 3237 const LayoutObject* layoutObject = this; | 3237 const LayoutObject* layoutObject = this; |
| 3238 while (!layoutObject->node()) | 3238 while (!layoutObject->node()) |
| 3239 layoutObject = layoutObject->parent(); | 3239 layoutObject = layoutObject->parent(); |
| 3240 return layoutObject->node()->isInert(); | 3240 return layoutObject->node()->isInert(); |
| 3241 } | 3241 } |
| 3242 | 3242 |
| 3243 void LayoutObject::imageChanged(ImageResource* image, const IntRect* rect) | 3243 void LayoutObject::imageChanged(bool isNotifyingFinish, ImageResource* image, co
nst IntRect* rect) |
| 3244 { | 3244 { |
| 3245 ASSERT(m_node); | 3245 ASSERT(m_node); |
| 3246 imageChanged(static_cast<WrappedImagePtr>(image), rect); | 3246 imageChanged(isNotifyingFinish, static_cast<WrappedImagePtr>(image), rect); |
| 3247 } | 3247 } |
| 3248 | 3248 |
| 3249 Element* LayoutObject::offsetParent() const | 3249 Element* LayoutObject::offsetParent() const |
| 3250 { | 3250 { |
| 3251 if (isDocumentElement() || isBody()) | 3251 if (isDocumentElement() || isBody()) |
| 3252 return nullptr; | 3252 return nullptr; |
| 3253 | 3253 |
| 3254 if (isOutOfFlowPositioned() && style()->position() == FixedPosition) | 3254 if (isOutOfFlowPositioned() && style()->position() == FixedPosition) |
| 3255 return nullptr; | 3255 return nullptr; |
| 3256 | 3256 |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3711 const blink::LayoutObject* root = object1; | 3711 const blink::LayoutObject* root = object1; |
| 3712 while (root->parent()) | 3712 while (root->parent()) |
| 3713 root = root->parent(); | 3713 root = root->parent(); |
| 3714 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3714 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3715 } else { | 3715 } else { |
| 3716 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3716 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3717 } | 3717 } |
| 3718 } | 3718 } |
| 3719 | 3719 |
| 3720 #endif | 3720 #endif |
| OLD | NEW |