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 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2061 void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) | 2061 void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) |
2062 { | 2062 { |
2063 // FIXME: We could save this call when the change only affected non-inherite
d properties. | 2063 // FIXME: We could save this call when the change only affected non-inherite
d properties. |
2064 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { | 2064 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { |
2065 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) | 2065 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) |
2066 continue; | 2066 continue; |
2067 | 2067 |
2068 if (blockChildrenOnly && !child->isLayoutBlock()) | 2068 if (blockChildrenOnly && !child->isLayoutBlock()) |
2069 continue; | 2069 continue; |
2070 | 2070 |
2071 if (child->isLayoutFullScreen() || child->isLayoutFullScreenPlaceholder(
)) | |
2072 continue; | |
2073 | |
2074 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWith
Display(styleRef(), child->style()->display()); | 2071 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWith
Display(styleRef(), child->style()->display()); |
2075 | 2072 |
2076 // Preserve the position style of anonymous block continuations as they
can have relative position when | 2073 // Preserve the position style of anonymous block continuations as they
can have relative position when |
2077 // they contain block descendants of relative positioned inlines. | 2074 // they contain block descendants of relative positioned inlines. |
2078 if (child->isInFlowPositioned() && toLayoutBlock(child)->isAnonymousBloc
kContinuation()) | 2075 if (child->isInFlowPositioned() && toLayoutBlock(child)->isAnonymousBloc
kContinuation()) |
2079 newStyle->setPosition(child->style()->position()); | 2076 newStyle->setPosition(child->style()->position()); |
2080 | 2077 |
2081 updateAnonymousChildStyle(*child, *newStyle); | 2078 updateAnonymousChildStyle(*child, *newStyle); |
2082 | 2079 |
2083 child->setStyle(newStyle.release()); | 2080 child->setStyle(newStyle.release()); |
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3471 const blink::LayoutObject* root = object1; | 3468 const blink::LayoutObject* root = object1; |
3472 while (root->parent()) | 3469 while (root->parent()) |
3473 root = root->parent(); | 3470 root = root->parent(); |
3474 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3471 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3475 } else { | 3472 } else { |
3476 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3473 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3477 } | 3474 } |
3478 } | 3475 } |
3479 | 3476 |
3480 #endif | 3477 #endif |
OLD | NEW |