Changeset 143361 in webkit


Ignore:
Timestamp:
Feb 19, 2013 11:10:45 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Remove unnecessary (and problematic) copy-constructor from LayoutUnit
https://bugs.webkit.org/show_bug.cgi?id=110121

This copy constructor does what a default copy constructor would do, so
it's not necessary. Furthermore, this copy constructor is the only
reason why LayoutUnit becomes non-POD, and that triggers a gdb bug,
making it impossible to do things like "print location()" when inside
some RenderBlock, for instance.

Gdb bug http://sourceware.org/bugzilla/show_bug.cgi?id=15154 reported.

Patch by Morten Stenshorne <mstensho@opera.com> on 2013-02-19
Reviewed by Benjamin Poulain.

No tests. Apart from dealing with buggy debuggers, this is just code cleanup.

  • platform/LayoutUnit.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r143357 r143361  
     12013-02-19  Morten Stenshorne  <mstensho@opera.com>
     2
     3        Remove unnecessary (and problematic) copy-constructor from LayoutUnit
     4        https://bugs.webkit.org/show_bug.cgi?id=110121
     5
     6        This copy constructor does what a default copy constructor would do, so
     7        it's not necessary. Furthermore, this copy constructor is the only
     8        reason why LayoutUnit becomes non-POD, and that triggers a gdb bug,
     9        making it impossible to do things like "print location()" when inside
     10        some RenderBlock, for instance.
     11
     12        Gdb bug http://sourceware.org/bugzilla/show_bug.cgi?id=15154 reported.
     13
     14        Reviewed by Benjamin Poulain.
     15
     16        No tests. Apart from dealing with buggy debuggers, this is just code cleanup.
     17
     18        * platform/LayoutUnit.h:
     19
    1202013-02-19  Emil A Eklund  <eae@chromium.org>
    221
  • trunk/Source/WebCore/platform/LayoutUnit.h

    r140192 r143361  
    117117    LayoutUnit(double value) { REPORT_OVERFLOW(isInBounds(value)); m_value = value; }
    118118#endif
    119     LayoutUnit(const LayoutUnit& value) { m_value = value.rawValue(); }
    120119
    121120    static LayoutUnit fromFloatCeil(float value)
Note: See TracChangeset for help on using the changeset viewer.