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 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1975 void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) | 1975 void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) |
1976 { | 1976 { |
1977 // FIXME: We could save this call when the change only affected non-inherite
d properties. | 1977 // FIXME: We could save this call when the change only affected non-inherite
d properties. |
1978 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { | 1978 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { |
1979 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) | 1979 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) |
1980 continue; | 1980 continue; |
1981 | 1981 |
1982 if (blockChildrenOnly && !child->isLayoutBlock()) | 1982 if (blockChildrenOnly && !child->isLayoutBlock()) |
1983 continue; | 1983 continue; |
1984 | 1984 |
1985 if (child->isLayoutFullScreen() || child->isLayoutFullScreenPlaceholder(
)) | |
1986 continue; | |
1987 | |
1988 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWith
Display(styleRef(), child->style()->display()); | 1985 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWith
Display(styleRef(), child->style()->display()); |
1989 | 1986 |
1990 // Preserve the position style of anonymous block continuations as they
can have relative position when | 1987 // Preserve the position style of anonymous block continuations as they
can have relative position when |
1991 // they contain block descendants of relative positioned inlines. | 1988 // they contain block descendants of relative positioned inlines. |
1992 if (child->isInFlowPositioned() && toLayoutBlock(child)->isAnonymousBloc
kContinuation()) | 1989 if (child->isInFlowPositioned() && toLayoutBlock(child)->isAnonymousBloc
kContinuation()) |
1993 newStyle->setPosition(child->style()->position()); | 1990 newStyle->setPosition(child->style()->position()); |
1994 | 1991 |
1995 updateAnonymousChildStyle(*child, *newStyle); | 1992 updateAnonymousChildStyle(*child, *newStyle); |
1996 | 1993 |
1997 child->setStyle(newStyle.release()); | 1994 child->setStyle(newStyle.release()); |
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3391 const blink::LayoutObject* root = object1; | 3388 const blink::LayoutObject* root = object1; |
3392 while (root->parent()) | 3389 while (root->parent()) |
3393 root = root->parent(); | 3390 root = root->parent(); |
3394 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3391 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3395 } else { | 3392 } else { |
3396 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3393 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3397 } | 3394 } |
3398 } | 3395 } |
3399 | 3396 |
3400 #endif | 3397 #endif |
OLD | NEW |