OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 bool hasAnnotationsBefore = false; | 242 bool hasAnnotationsBefore = false; |
243 bool hasAnnotationsAfter = false; | 243 bool hasAnnotationsAfter = false; |
244 placeBoxesInBlockDirection(heightOfBlock, maxHeight, maxAscent, noQuirksMode
, lineTop, lineBottom, setLineTop, | 244 placeBoxesInBlockDirection(heightOfBlock, maxHeight, maxAscent, noQuirksMode
, lineTop, lineBottom, setLineTop, |
245 lineTopIncludingMargins, lineBottomIncludingMargi
ns, hasAnnotationsBefore, hasAnnotationsAfter, baselineType()); | 245 lineTopIncludingMargins, lineBottomIncludingMargi
ns, hasAnnotationsBefore, hasAnnotationsAfter, baselineType()); |
246 m_hasAnnotationsBefore = hasAnnotationsBefore; | 246 m_hasAnnotationsBefore = hasAnnotationsBefore; |
247 m_hasAnnotationsAfter = hasAnnotationsAfter; | 247 m_hasAnnotationsAfter = hasAnnotationsAfter; |
248 | 248 |
249 maxHeight = max<LayoutUnit>(0, maxHeight); // FIXME: Is this really necessar
y? | 249 maxHeight = max<LayoutUnit>(0, maxHeight); // FIXME: Is this really necessar
y? |
250 | 250 |
251 setLineTopBottomPositions(lineTop, lineBottom, heightOfBlock, heightOfBlock
+ maxHeight); | 251 setLineTopBottomPositions(lineTop, lineBottom, heightOfBlock, heightOfBlock
+ maxHeight); |
252 setPaginatedLineWidth(block().availableLogicalWidthForContent()); | 252 if (block().view()->layoutState()->isPaginated()) |
| 253 setPaginatedLineWidth(block().availableLogicalWidthForContent()); |
253 | 254 |
254 LayoutUnit annotationsAdjustment = beforeAnnotationsAdjustment(); | 255 LayoutUnit annotationsAdjustment = beforeAnnotationsAdjustment(); |
255 if (annotationsAdjustment) { | 256 if (annotationsAdjustment) { |
256 // FIXME: Need to handle pagination here. We might have to move to the n
ext page/column as a result of the | 257 // FIXME: Need to handle pagination here. We might have to move to the n
ext page/column as a result of the |
257 // ruby expansion. | 258 // ruby expansion. |
258 adjustBlockDirectionPosition(annotationsAdjustment.toFloat()); | 259 adjustBlockDirectionPosition(annotationsAdjustment.toFloat()); |
259 heightOfBlock += annotationsAdjustment; | 260 heightOfBlock += annotationsAdjustment; |
260 } | 261 } |
261 | 262 |
262 return heightOfBlock + maxHeight; | 263 return heightOfBlock + maxHeight; |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 } | 872 } |
872 | 873 |
873 #ifndef NDEBUG | 874 #ifndef NDEBUG |
874 const char* RootInlineBox::boxName() const | 875 const char* RootInlineBox::boxName() const |
875 { | 876 { |
876 return "RootInlineBox"; | 877 return "RootInlineBox"; |
877 } | 878 } |
878 #endif | 879 #endif |
879 | 880 |
880 } // namespace WebCore | 881 } // namespace WebCore |
OLD | NEW |