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 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1822 void RenderObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) | 1822 void RenderObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) |
1823 { | 1823 { |
1824 // FIXME: We could save this call when the change only affected non-inherite
d properties. | 1824 // FIXME: We could save this call when the change only affected non-inherite
d properties. |
1825 for (RenderObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { | 1825 for (RenderObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { |
1826 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) | 1826 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) |
1827 continue; | 1827 continue; |
1828 | 1828 |
1829 if (blockChildrenOnly && !child->isRenderBlock()) | 1829 if (blockChildrenOnly && !child->isRenderBlock()) |
1830 continue; | 1830 continue; |
1831 | 1831 |
1832 if (child->isRenderFullScreen() || child->isRenderFullScreenPlaceholder(
)) | |
1833 continue; | |
1834 | |
1835 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisp
lay(style(), child->style()->display()); | 1832 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisp
lay(style(), child->style()->display()); |
1836 if (!document().regionBasedColumnsEnabled()) { | 1833 if (!document().regionBasedColumnsEnabled()) { |
1837 if (style()->specifiesColumns()) { | 1834 if (style()->specifiesColumns()) { |
1838 if (child->style()->specifiesColumns()) | 1835 if (child->style()->specifiesColumns()) |
1839 newStyle->inheritColumnPropertiesFrom(style()); | 1836 newStyle->inheritColumnPropertiesFrom(style()); |
1840 if (child->style()->columnSpan()) | 1837 if (child->style()->columnSpan()) |
1841 newStyle->setColumnSpan(ColumnSpanAll); | 1838 newStyle->setColumnSpan(ColumnSpanAll); |
1842 } | 1839 } |
1843 } | 1840 } |
1844 | 1841 |
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3138 { | 3135 { |
3139 if (object1) { | 3136 if (object1) { |
3140 const blink::RenderObject* root = object1; | 3137 const blink::RenderObject* root = object1; |
3141 while (root->parent()) | 3138 while (root->parent()) |
3142 root = root->parent(); | 3139 root = root->parent(); |
3143 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3140 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3144 } | 3141 } |
3145 } | 3142 } |
3146 | 3143 |
3147 #endif | 3144 #endif |
OLD | NEW |