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