Changeset 74937 in webkit


Ignore:
Timestamp:
Jan 3, 2011, 1:40:58 PM (14 years ago)
Author:
mitz@apple.com
Message:

Shrink RootInlineBox
https://bugs.webkit.org/show_bug.cgi?id=51847

Reviewed by Darin Adler.

  • rendering/RootInlineBox.cpp:

(WebCore::RootInlineBox::alignBoxesInBlockDirection): Changed to use the baselineType()
accessor.

  • rendering/RootInlineBox.h: Rolled m_baselineType into a bitfield. Changed its type to

unsigned because otherwise MSVC treats it as signed.
(WebCore::RootInlineBox::baselineType): Added a cast.

Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r74933 r74937  
     12011-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
    1152011-01-03  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
    216
  • trunk/WebCore/rendering/RootInlineBox.cpp

    r74319 r74937  
    239239
    240240    computeLogicalBoxHeights(maxPositionTop, maxPositionBottom, maxAscent, maxDescent, setMaxAscent, setMaxDescent, noQuirksMode,
    241                              textBoxDataMap, m_baselineType, verticalPositionCache);
     241                             textBoxDataMap, baselineType(), verticalPositionCache);
    242242
    243243    if (maxAscent + maxDescent < max(maxPositionTop, maxPositionBottom))
     
    253253    bool hasAnnotationsAfter = false;
    254254    placeBoxesInBlockDirection(heightOfBlock, maxHeight, maxAscent, noQuirksMode, lineTop, lineBottom, setLineTop,
    255                                lineTopIncludingMargins, lineBottomIncludingMargins, hasAnnotationsBefore, hasAnnotationsAfter, m_baselineType);
     255                               lineTopIncludingMargins, lineBottomIncludingMargins, hasAnnotationsBefore, hasAnnotationsAfter, baselineType());
    256256    m_hasAnnotationsBefore = hasAnnotationsBefore;
    257257    m_hasAnnotationsAfter = hasAnnotationsAfter;
  • trunk/WebCore/rendering/RootInlineBox.h

    r74281 r74937  
    127127    virtual void removeLineBoxFromRenderObject();
    128128   
    129     FontBaseline baselineType() const { return m_baselineType; }
     129    FontBaseline baselineType() const { return static_cast<FontBaseline>(m_baselineType); }
    130130
    131131    bool hasAnnotationsBefore() const { return m_hasAnnotationsBefore; }
     
    159159
    160160    // Whether or not this line uses alphabetic or ideographic baselines by default.
    161     FontBaseline m_baselineType;
     161    unsigned m_baselineType : 1; // FontBaseline
    162162   
    163163    // If the line contains any ruby runs, then this will be true.
Note: See TracChangeset for help on using the changeset viewer.