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 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1992 void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) | 1992 void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) |
1993 { | 1993 { |
1994 // FIXME: We could save this call when the change only affected non-inherite
d properties. | 1994 // FIXME: We could save this call when the change only affected non-inherite
d properties. |
1995 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { | 1995 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { |
1996 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) | 1996 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) |
1997 continue; | 1997 continue; |
1998 | 1998 |
1999 if (blockChildrenOnly && !child->isLayoutBlock()) | 1999 if (blockChildrenOnly && !child->isLayoutBlock()) |
2000 continue; | 2000 continue; |
2001 | 2001 |
2002 if (child->isLayoutFullScreen() || child->isLayoutFullScreenPlaceholder(
)) | |
2003 continue; | |
2004 | |
2005 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWith
Display(styleRef(), child->style()->display()); | 2002 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWith
Display(styleRef(), child->style()->display()); |
2006 | 2003 |
2007 // Preserve the position style of anonymous block continuations as they
can have relative position when | 2004 // Preserve the position style of anonymous block continuations as they
can have relative position when |
2008 // they contain block descendants of relative positioned inlines. | 2005 // they contain block descendants of relative positioned inlines. |
2009 if (child->isInFlowPositioned() && toLayoutBlock(child)->isAnonymousBloc
kContinuation()) | 2006 if (child->isInFlowPositioned() && toLayoutBlock(child)->isAnonymousBloc
kContinuation()) |
2010 newStyle->setPosition(child->style()->position()); | 2007 newStyle->setPosition(child->style()->position()); |
2011 | 2008 |
2012 updateAnonymousChildStyle(*child, *newStyle); | 2009 updateAnonymousChildStyle(*child, *newStyle); |
2013 | 2010 |
2014 child->setStyle(newStyle.release()); | 2011 child->setStyle(newStyle.release()); |
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3414 const blink::LayoutObject* root = object1; | 3411 const blink::LayoutObject* root = object1; |
3415 while (root->parent()) | 3412 while (root->parent()) |
3416 root = root->parent(); | 3413 root = root->parent(); |
3417 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3414 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3418 } else { | 3415 } else { |
3419 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3416 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3420 } | 3417 } |
3421 } | 3418 } |
3422 | 3419 |
3423 #endif | 3420 #endif |
OLD | NEW |