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 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2473 | 2473 |
2474 // If |this| is visible but this object was not, tell the layer it has some
visible content | 2474 // If |this| is visible but this object was not, tell the layer it has some
visible content |
2475 // that needs to be drawn and layer visibility optimization can't be used | 2475 // that needs to be drawn and layer visibility optimization can't be used |
2476 if (parent()->style()->visibility() != VISIBLE && style()->visibility() == V
ISIBLE && !hasLayer()) { | 2476 if (parent()->style()->visibility() != VISIBLE && style()->visibility() == V
ISIBLE && !hasLayer()) { |
2477 if (!layer) | 2477 if (!layer) |
2478 layer = parent()->enclosingLayer(); | 2478 layer = parent()->enclosingLayer(); |
2479 if (layer) | 2479 if (layer) |
2480 layer->dirtyVisibleContentStatus(); | 2480 layer->dirtyVisibleContentStatus(); |
2481 } | 2481 } |
2482 | 2482 |
2483 if (!isFloating() && parent()->childrenInline()) | 2483 if (parent()->childrenInline()) |
2484 parent()->dirtyLinesFromChangedChild(this); | 2484 parent()->dirtyLinesFromChangedChild(this); |
2485 | 2485 |
2486 if (LayoutFlowThread* flowThread = flowThreadContainingBlock()) | 2486 if (LayoutFlowThread* flowThread = flowThreadContainingBlock()) |
2487 flowThread->flowThreadDescendantWasInserted(this); | 2487 flowThread->flowThreadDescendantWasInserted(this); |
2488 } | 2488 } |
2489 | 2489 |
2490 void LayoutObject::willBeRemovedFromTree() | 2490 void LayoutObject::willBeRemovedFromTree() |
2491 { | 2491 { |
2492 // FIXME: We should ASSERT(isRooted()) but we have some out-of-order removal
s which would need to be fixed first. | 2492 // FIXME: We should ASSERT(isRooted()) but we have some out-of-order removal
s which would need to be fixed first. |
2493 | 2493 |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3306 const blink::LayoutObject* root = object1; | 3306 const blink::LayoutObject* root = object1; |
3307 while (root->parent()) | 3307 while (root->parent()) |
3308 root = root->parent(); | 3308 root = root->parent(); |
3309 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3309 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3310 } else { | 3310 } else { |
3311 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3311 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3312 } | 3312 } |
3313 } | 3313 } |
3314 | 3314 |
3315 #endif | 3315 #endif |
OLD | NEW |