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) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 | 1001 |
1002 IntRect inflatedRect = pixelSnappedBorderBoxRect(); | 1002 IntRect inflatedRect = pixelSnappedBorderBoxRect(); |
1003 LayoutTheme::theme().addVisualOverflow(*this, inflatedRect); | 1003 LayoutTheme::theme().addVisualOverflow(*this, inflatedRect); |
1004 addVisualOverflow(LayoutRect(inflatedRect)); | 1004 addVisualOverflow(LayoutRect(inflatedRect)); |
1005 } | 1005 } |
1006 | 1006 |
1007 bool LayoutBlock::createsNewFormattingContext() const | 1007 bool LayoutBlock::createsNewFormattingContext() const |
1008 { | 1008 { |
1009 return isInlineBlockOrInlineTable() || isFloatingOrOutOfFlowPositioned() ||
hasOverflowClip() || isFlexItemIncludingDeprecated() | 1009 return isInlineBlockOrInlineTable() || isFloatingOrOutOfFlowPositioned() ||
hasOverflowClip() || isFlexItemIncludingDeprecated() |
1010 || style()->specifiesColumns() || isLayoutFlowThread() || isTableCell()
|| isTableCaption() || isFieldset() || isWritingModeRoot() | 1010 || style()->specifiesColumns() || isLayoutFlowThread() || isTableCell()
|| isTableCaption() || isFieldset() || isWritingModeRoot() |
1011 || isDocumentElement() || isColumnSpanAll() || isGridItem(); | 1011 || isDocumentElement() || isColumnSpanAll() || isGridItem() || style()->
containsPaint(); |
1012 } | 1012 } |
1013 | 1013 |
1014 void LayoutBlock::updateBlockChildDirtyBitsBeforeLayout(bool relayoutChildren, L
ayoutBox& child) | 1014 void LayoutBlock::updateBlockChildDirtyBitsBeforeLayout(bool relayoutChildren, L
ayoutBox& child) |
1015 { | 1015 { |
1016 if (child.isOutOfFlowPositioned()) { | 1016 if (child.isOutOfFlowPositioned()) { |
1017 // It's rather useless to mark out-of-flow children at this point. We ma
y not be their | 1017 // It's rather useless to mark out-of-flow children at this point. We ma
y not be their |
1018 // containing block (and if we are, it's just pure luck), so this would
be the wrong place | 1018 // containing block (and if we are, it's just pure luck), so this would
be the wrong place |
1019 // for it. Furthermore, it would cause trouble for out-of-flow descendan
ts of column | 1019 // for it. Furthermore, it would cause trouble for out-of-flow descendan
ts of column |
1020 // spanners, if the containing block is outside the spanner but inside t
he multicol container. | 1020 // spanners, if the containing block is outside the spanner but inside t
he multicol container. |
1021 return; | 1021 return; |
(...skipping 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2911 void LayoutBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout
Object* obj) const | 2911 void LayoutBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout
Object* obj) const |
2912 { | 2912 { |
2913 showLayoutObject(); | 2913 showLayoutObject(); |
2914 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 2914 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
2915 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 2915 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
2916 } | 2916 } |
2917 | 2917 |
2918 #endif | 2918 #endif |
2919 | 2919 |
2920 } // namespace blink | 2920 } // namespace blink |
OLD | NEW |