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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "core/rendering/InlineIterator.h" | 44 #include "core/rendering/InlineIterator.h" |
45 #include "core/rendering/InlineTextBox.h" | 45 #include "core/rendering/InlineTextBox.h" |
46 #include "core/rendering/PaintInfo.h" | 46 #include "core/rendering/PaintInfo.h" |
47 #include "core/rendering/RenderCombineText.h" | 47 #include "core/rendering/RenderCombineText.h" |
48 #include "core/rendering/RenderDeprecatedFlexibleBox.h" | 48 #include "core/rendering/RenderDeprecatedFlexibleBox.h" |
49 #include "core/rendering/RenderFlexibleBox.h" | 49 #include "core/rendering/RenderFlexibleBox.h" |
50 #include "core/rendering/RenderFlowThread.h" | 50 #include "core/rendering/RenderFlowThread.h" |
51 #include "core/rendering/RenderGrid.h" | 51 #include "core/rendering/RenderGrid.h" |
52 #include "core/rendering/RenderInline.h" | 52 #include "core/rendering/RenderInline.h" |
53 #include "core/rendering/RenderLayer.h" | 53 #include "core/rendering/RenderLayer.h" |
54 #include "core/rendering/RenderMarquee.h" | |
55 #include "core/rendering/RenderObjectInlines.h" | 54 #include "core/rendering/RenderObjectInlines.h" |
56 #include "core/rendering/RenderRegion.h" | 55 #include "core/rendering/RenderRegion.h" |
57 #include "core/rendering/RenderTableCell.h" | 56 #include "core/rendering/RenderTableCell.h" |
58 #include "core/rendering/RenderTextControl.h" | 57 #include "core/rendering/RenderTextControl.h" |
59 #include "core/rendering/RenderTextFragment.h" | 58 #include "core/rendering/RenderTextFragment.h" |
60 #include "core/rendering/RenderTheme.h" | 59 #include "core/rendering/RenderTheme.h" |
61 #include "core/rendering/RenderView.h" | 60 #include "core/rendering/RenderView.h" |
62 #include "core/rendering/TextAutosizer.h" | 61 #include "core/rendering/TextAutosizer.h" |
63 #include "core/rendering/shapes/ShapeOutsideInfo.h" | 62 #include "core/rendering/shapes/ShapeOutsideInfo.h" |
64 #include "core/rendering/style/ContentData.h" | 63 #include "core/rendering/style/ContentData.h" |
(...skipping 3516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3581 toRenderBlockFlow(const_cast<RenderBlock*>(this))->computeInlinePreferre
dLogicalWidths(minLogicalWidth, maxLogicalWidth); | 3580 toRenderBlockFlow(const_cast<RenderBlock*>(this))->computeInlinePreferre
dLogicalWidths(minLogicalWidth, maxLogicalWidth); |
3582 } else { | 3581 } else { |
3583 computeBlockPreferredLogicalWidths(minLogicalWidth, maxLogicalWidth); | 3582 computeBlockPreferredLogicalWidths(minLogicalWidth, maxLogicalWidth); |
3584 } | 3583 } |
3585 | 3584 |
3586 maxLogicalWidth = std::max(minLogicalWidth, maxLogicalWidth); | 3585 maxLogicalWidth = std::max(minLogicalWidth, maxLogicalWidth); |
3587 | 3586 |
3588 adjustIntrinsicLogicalWidthsForColumns(minLogicalWidth, maxLogicalWidth); | 3587 adjustIntrinsicLogicalWidthsForColumns(minLogicalWidth, maxLogicalWidth); |
3589 | 3588 |
3590 // A horizontal marquee with inline children has no minimum width. | 3589 // A horizontal marquee with inline children has no minimum width. |
3591 if (childrenInline() && isMarquee() && toRenderMarquee(this)->isHorizontal()
) | 3590 if (childrenInline()) |
3592 minLogicalWidth = 0; | 3591 minLogicalWidth = 0; |
3593 | 3592 |
3594 if (isTableCell()) { | 3593 if (isTableCell()) { |
3595 Length tableCellWidth = toRenderTableCell(this)->styleOrColLogicalWidth(
); | 3594 Length tableCellWidth = toRenderTableCell(this)->styleOrColLogicalWidth(
); |
3596 if (tableCellWidth.isFixed() && tableCellWidth.value() > 0) | 3595 if (tableCellWidth.isFixed() && tableCellWidth.value() > 0) |
3597 maxLogicalWidth = std::max(minLogicalWidth, adjustContentBoxLogicalW
idthForBoxSizing(tableCellWidth.value())); | 3596 maxLogicalWidth = std::max(minLogicalWidth, adjustContentBoxLogicalW
idthForBoxSizing(tableCellWidth.value())); |
3598 } | 3597 } |
3599 | 3598 |
3600 int scrollbarWidth = instrinsicScrollbarLogicalWidth(); | 3599 int scrollbarWidth = instrinsicScrollbarLogicalWidth(); |
3601 maxLogicalWidth += scrollbarWidth; | 3600 maxLogicalWidth += scrollbarWidth; |
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4835 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 4834 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
4836 { | 4835 { |
4837 showRenderObject(); | 4836 showRenderObject(); |
4838 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 4837 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
4839 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 4838 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
4840 } | 4839 } |
4841 | 4840 |
4842 #endif | 4841 #endif |
4843 | 4842 |
4844 } // namespace blink | 4843 } // namespace blink |
OLD | NEW |