Changeset 74937 in webkit
- Timestamp:
- Jan 3, 2011, 1:40:58 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r74933 r74937 1 2011-01-03 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Shrink RootInlineBox 6 https://bugs.webkit.org/show_bug.cgi?id=51847 7 8 * rendering/RootInlineBox.cpp: 9 (WebCore::RootInlineBox::alignBoxesInBlockDirection): Changed to use the baselineType() 10 accessor. 11 * rendering/RootInlineBox.h: Rolled m_baselineType into a bitfield. Changed its type to 12 unsigned because otherwise MSVC treats it as signed. 13 (WebCore::RootInlineBox::baselineType): Added a cast. 14 1 15 2011-01-03 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 16 -
trunk/WebCore/rendering/RootInlineBox.cpp
r74319 r74937 239 239 240 240 computeLogicalBoxHeights(maxPositionTop, maxPositionBottom, maxAscent, maxDescent, setMaxAscent, setMaxDescent, noQuirksMode, 241 textBoxDataMap, m_baselineType, verticalPositionCache);241 textBoxDataMap, baselineType(), verticalPositionCache); 242 242 243 243 if (maxAscent + maxDescent < max(maxPositionTop, maxPositionBottom)) … … 253 253 bool hasAnnotationsAfter = false; 254 254 placeBoxesInBlockDirection(heightOfBlock, maxHeight, maxAscent, noQuirksMode, lineTop, lineBottom, setLineTop, 255 lineTopIncludingMargins, lineBottomIncludingMargins, hasAnnotationsBefore, hasAnnotationsAfter, m_baselineType);255 lineTopIncludingMargins, lineBottomIncludingMargins, hasAnnotationsBefore, hasAnnotationsAfter, baselineType()); 256 256 m_hasAnnotationsBefore = hasAnnotationsBefore; 257 257 m_hasAnnotationsAfter = hasAnnotationsAfter; -
trunk/WebCore/rendering/RootInlineBox.h
r74281 r74937 127 127 virtual void removeLineBoxFromRenderObject(); 128 128 129 FontBaseline baselineType() const { return m_baselineType; }129 FontBaseline baselineType() const { return static_cast<FontBaseline>(m_baselineType); } 130 130 131 131 bool hasAnnotationsBefore() const { return m_hasAnnotationsBefore; } … … 159 159 160 160 // Whether or not this line uses alphabetic or ideographic baselines by default. 161 FontBaseline m_baselineType;161 unsigned m_baselineType : 1; // FontBaseline 162 162 163 163 // If the line contains any ruby runs, then this will be true.
Note:
See TracChangeset
for help on using the changeset viewer.