Changeset 129152 in webkit


Ignore:
Timestamp:
Sep 20, 2012 12:09:56 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r129144.
http://trac.webkit.org/changeset/129144
https://bugs.webkit.org/show_bug.cgi?id=97244

causing lots of assertions in tests (Requested by smfr on
#webkit).

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

  • rendering/InlineBox.h:

(WebCore::InlineBox::markDirty):

  • rendering/InlineTextBox.cpp:
  • rendering/InlineTextBox.h:

(WebCore::InlineTextBox::start):
(WebCore::InlineTextBox::end):
(WebCore::InlineTextBox::len):
(WebCore::InlineTextBox::offsetRun):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r129150 r129152  
     12012-09-20  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r129144.
     4        http://trac.webkit.org/changeset/129144
     5        https://bugs.webkit.org/show_bug.cgi?id=97244
     6
     7        causing lots of assertions in tests (Requested by smfr on
     8        #webkit).
     9
     10        * rendering/InlineBox.h:
     11        (WebCore::InlineBox::markDirty):
     12        * rendering/InlineTextBox.cpp:
     13        * rendering/InlineTextBox.h:
     14        (WebCore::InlineTextBox::start):
     15        (WebCore::InlineTextBox::end):
     16        (WebCore::InlineTextBox::len):
     17        (WebCore::InlineTextBox::offsetRun):
     18
    1192012-09-20  Mike West  <mkwst@chromium.org>
    220
  • trunk/Source/WebCore/rendering/InlineBox.h

    r129144 r129152  
    263263
    264264    bool isDirty() const { return m_bitfields.dirty(); }
    265     virtual void markDirty(bool dirty = true) { m_bitfields.setDirty(dirty); }
     265    void markDirty(bool dirty = true) { m_bitfields.setDirty(dirty); }
    266266
    267267    virtual void dirtyLineBoxes();
  • trunk/Source/WebCore/rendering/InlineTextBox.cpp

    r129144 r129152  
    6363        gTextBoxesWithOverflow->remove(this);
    6464    InlineBox::destroy(arena);
    65 }
    66 
    67 void InlineTextBox::markDirty(bool dirty)
    68 {
    69     if (dirty) {
    70         m_len = 0;
    71         m_start = 0;
    72     }
    73     InlineBox::markDirty(dirty);
    7465}
    7566
  • trunk/Source/WebCore/rendering/InlineTextBox.h

    r129144 r129152  
    6565    void setPreviousTextBox(InlineTextBox* p) { m_prevTextBox = p; }
    6666
    67     unsigned start() const { ASSERT(!isDirty()); return m_start; }
    68     unsigned end() const { ASSERT(!isDirty()); return m_len ? m_start + m_len - 1 : m_start; }
    69     unsigned len() const { ASSERT(!isDirty()); return m_len; }
     67    unsigned start() const { return m_start; }
     68    unsigned end() const { return m_len ? m_start + m_len - 1 : m_start; }
     69    unsigned len() const { return m_len; }
    7070
    7171    void setStart(unsigned start) { m_start = start; }
    7272    void setLen(unsigned len) { m_len = len; }
    7373
    74     void offsetRun(int d) { ASSERT(!isDirty()); m_start += d; }
     74    void offsetRun(int d) { m_start += d; }
    7575
    7676    unsigned short truncation() { return m_truncation; }
    77 
    78     virtual void markDirty(bool dirty = true) OVERRIDE;
    7977
    8078    using InlineBox::hasHyphen;
Note: See TracChangeset for help on using the changeset viewer.