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 3238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3249 } | 3249 } |
3250 | 3250 |
3251 bool LayoutObject::isInert() const | 3251 bool LayoutObject::isInert() const |
3252 { | 3252 { |
3253 const LayoutObject* layoutObject = this; | 3253 const LayoutObject* layoutObject = this; |
3254 while (!layoutObject->node()) | 3254 while (!layoutObject->node()) |
3255 layoutObject = layoutObject->parent(); | 3255 layoutObject = layoutObject->parent(); |
3256 return layoutObject->node()->isInert(); | 3256 return layoutObject->node()->isInert(); |
3257 } | 3257 } |
3258 | 3258 |
3259 void LayoutObject::imageChanged(ImageResource* image, const IntRect* rect) | 3259 void LayoutObject::imageChanged(bool isNotifyingFinish, ImageResource* image, co
nst IntRect* rect) |
3260 { | 3260 { |
3261 ASSERT(m_node); | 3261 ASSERT(m_node); |
3262 imageChanged(static_cast<WrappedImagePtr>(image), rect); | 3262 imageChanged(isNotifyingFinish, static_cast<WrappedImagePtr>(image), rect); |
3263 } | 3263 } |
3264 | 3264 |
3265 Element* LayoutObject::offsetParent() const | 3265 Element* LayoutObject::offsetParent() const |
3266 { | 3266 { |
3267 if (isDocumentElement() || isBody()) | 3267 if (isDocumentElement() || isBody()) |
3268 return nullptr; | 3268 return nullptr; |
3269 | 3269 |
3270 if (isOutOfFlowPositioned() && style()->position() == FixedPosition) | 3270 if (isOutOfFlowPositioned() && style()->position() == FixedPosition) |
3271 return nullptr; | 3271 return nullptr; |
3272 | 3272 |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3727 const blink::LayoutObject* root = object1; | 3727 const blink::LayoutObject* root = object1; |
3728 while (root->parent()) | 3728 while (root->parent()) |
3729 root = root->parent(); | 3729 root = root->parent(); |
3730 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3730 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3731 } else { | 3731 } else { |
3732 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3732 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3733 } | 3733 } |
3734 } | 3734 } |
3735 | 3735 |
3736 #endif | 3736 #endif |
OLD | NEW |