Changeset 96425 in webkit


Ignore:
Timestamp:
Sep 30, 2011 2:23:44 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r96422.
http://trac.webkit.org/changeset/96422
https://bugs.webkit.org/show_bug.cgi?id=69170

Broke Windows build and kling wanted to roll it out as well
(Requested by rniwa on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-09-30

  • rendering/InlineBox.cpp:

(WebCore::InlineBox::prevOnLineExists):

  • rendering/InlineBox.h:

(WebCore::InlineBox::InlineBox):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r96423 r96425  
     12011-09-30  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r96422.
     4        http://trac.webkit.org/changeset/96422
     5        https://bugs.webkit.org/show_bug.cgi?id=69170
     6
     7        Broke Windows build and kling wanted to roll it out as well
     8        (Requested by rniwa on #webkit).
     9
     10        * rendering/InlineBox.cpp:
     11        (WebCore::InlineBox::prevOnLineExists):
     12        * rendering/InlineBox.h:
     13        (WebCore::InlineBox::InlineBox):
     14
    1152011-09-30  David Hyatt  <hyatt@apple.com>
    216
  • trunk/Source/WebCore/rendering/InlineBox.cpp

    r96422 r96425  
    3535
    3636namespace WebCore {
    37 
    38 class SameSizeAsInlineBox {
    39     virtual ~SameSizeAsInlineBox() { }
    40     void* a[4];
    41     FloatPoint b;
    42     float c;
    43     uint32_t d;
    44 #ifndef NDEBUG
    45     bool e;
    46 #endif
    47 };
    48 
    49 COMPILE_ASSERT(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), InlineBox_size_guard);
    5037   
    5138#ifndef NDEBUG
     
    272259}
    273260
     261bool InlineBox::prevOnLineExists() const
     262{
     263    if (!m_determinedIfPrevOnLineExists) {
     264        m_determinedIfPrevOnLineExists = true;
     265       
     266        if (!parent())
     267            m_prevOnLineExists = false;
     268        else if (prevOnLine())
     269            m_prevOnLineExists = true;
     270        else
     271            m_prevOnLineExists = parent()->prevOnLineExists();
     272    }
     273    return m_prevOnLineExists;
     274}
     275
    274276InlineBox* InlineBox::nextLeafChild() const
    275277{
  • trunk/Source/WebCore/rendering/InlineBox.h

    r96422 r96425  
    5757        , m_isText(false)
    5858        , m_determinedIfNextOnLineExists(false)
     59        , m_determinedIfPrevOnLineExists(false)
    5960        , m_nextOnLineExists(false)
     61        , m_prevOnLineExists(false)
    6062        , m_expansion(0)
    6163#ifndef NDEBUG
     
    8991        , m_isText(false)
    9092        , m_determinedIfNextOnLineExists(false)
     93        , m_determinedIfPrevOnLineExists(false)
    9194        , m_nextOnLineExists(false)
     95        , m_prevOnLineExists(false)
    9296        , m_expansion(0)
    9397#ifndef NDEBUG
     
    200204    }
    201205    bool nextOnLineExists() const;
     206    bool prevOnLineExists() const;
    202207
    203208    virtual bool isLeaf() const { return true; }
     
    360365protected:
    361366    mutable bool m_determinedIfNextOnLineExists : 1;
     367    mutable bool m_determinedIfPrevOnLineExists : 1;
    362368    mutable bool m_nextOnLineExists : 1;
     369    mutable bool m_prevOnLineExists : 1;
    363370    signed m_expansion : 11; // for justified text
    364371
Note: See TracChangeset for help on using the changeset viewer.