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 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2479 | 2479 |
2480 // If |this| is visible but this object was not, tell the layer it has some
visible content | 2480 // If |this| is visible but this object was not, tell the layer it has some
visible content |
2481 // that needs to be drawn and layer visibility optimization can't be used | 2481 // that needs to be drawn and layer visibility optimization can't be used |
2482 if (parent()->style()->visibility() != VISIBLE && style()->visibility() == V
ISIBLE && !hasLayer()) { | 2482 if (parent()->style()->visibility() != VISIBLE && style()->visibility() == V
ISIBLE && !hasLayer()) { |
2483 if (!layer) | 2483 if (!layer) |
2484 layer = parent()->enclosingLayer(); | 2484 layer = parent()->enclosingLayer(); |
2485 if (layer) | 2485 if (layer) |
2486 layer->dirtyVisibleContentStatus(); | 2486 layer->dirtyVisibleContentStatus(); |
2487 } | 2487 } |
2488 | 2488 |
2489 if (!isFloating() && parent()->childrenInline()) | 2489 if (parent()->childrenInline()) |
2490 parent()->dirtyLinesFromChangedChild(this); | 2490 parent()->dirtyLinesFromChangedChild(this); |
2491 | 2491 |
2492 if (LayoutFlowThread* flowThread = flowThreadContainingBlock()) | 2492 if (LayoutFlowThread* flowThread = flowThreadContainingBlock()) |
2493 flowThread->flowThreadDescendantWasInserted(this); | 2493 flowThread->flowThreadDescendantWasInserted(this); |
2494 } | 2494 } |
2495 | 2495 |
2496 void LayoutObject::willBeRemovedFromTree() | 2496 void LayoutObject::willBeRemovedFromTree() |
2497 { | 2497 { |
2498 // FIXME: We should ASSERT(isRooted()) but we have some out-of-order removal
s which would need to be fixed first. | 2498 // FIXME: We should ASSERT(isRooted()) but we have some out-of-order removal
s which would need to be fixed first. |
2499 | 2499 |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3291 const blink::LayoutObject* root = object1; | 3291 const blink::LayoutObject* root = object1; |
3292 while (root->parent()) | 3292 while (root->parent()) |
3293 root = root->parent(); | 3293 root = root->parent(); |
3294 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3294 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3295 } else { | 3295 } else { |
3296 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3296 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3297 } | 3297 } |
3298 } | 3298 } |
3299 | 3299 |
3300 #endif | 3300 #endif |
OLD | NEW |