Ignore:
Timestamp:
Dec 31, 2013, 8:40:50 AM (12 years ago)
Author:
akling@apple.com
Message:

Out-of-line RenderStyle substructure copying helpers.
<https://webkit.org/b/126340>

This shrinks the .access() calls by moving memory allocation logic
out-of-line, though I'm really doing this to make Instruments.app
allocations output more readable.

Writes to e.g 'font' or 'color' will now be grouped under a single
StyleInheritedData::copy() call instead of being spread out over
setFontDescription(), setLineHeight(), setColor(), etc.

Reviewed by Anders Carlsson.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/rendering/style/StyleGridItemData.cpp

    r160322 r161184  
    4343}
    4444
    45 StyleGridItemData::StyleGridItemData(const StyleGridItemData& o)
     45inline StyleGridItemData::StyleGridItemData(const StyleGridItemData& o)
    4646    : RefCounted<StyleGridItemData>()
    4747    , m_gridColumnStart(o.m_gridColumnStart)
     
    5252}
    5353
     54PassRef<StyleGridItemData> StyleGridItemData::copy() const
     55{
     56    return adoptRef(*new StyleGridItemData(*this));
     57}
     58
    5459} // namespace WebCore
Note: See TracChangeset for help on using the changeset viewer.