Changeset 169314 in webkit


Ignore:
Timestamp:
May 24, 2014 8:12:27 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Remove one of the CSSProperty constructor
https://bugs.webkit.org/show_bug.cgi?id=131094

Patch by Zsolt Borbely <zsborbely.u-szeged@partner.samsung.com> on 2014-05-24
Reviewed by Darin Adler.

Remove one of the CSSProperty constructor, because it is obsolete.

  • css/CSSProperty.h:

(WebCore::CSSProperty::CSSProperty): Deleted.

  • css/StyleProperties.h:

(WebCore::StyleProperties::PropertyReference::toCSSProperty):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r169313 r169314  
     12014-05-24  Zsolt Borbely  <zsborbely.u-szeged@partner.samsung.com>
     2
     3        Remove one of the CSSProperty constructor
     4        https://bugs.webkit.org/show_bug.cgi?id=131094
     5
     6        Reviewed by Darin Adler.
     7
     8        Remove one of the CSSProperty constructor, because it is obsolete.
     9
     10        * css/CSSProperty.h:
     11        (WebCore::CSSProperty::CSSProperty): Deleted.
     12        * css/StyleProperties.h:
     13        (WebCore::StyleProperties::PropertyReference::toCSSProperty):
     14
    1152014-05-23  Simon Fraser  <simon.fraser@apple.com>
    216
  • trunk/Source/WebCore/css/CSSProperty.h

    r165676 r169314  
    5858    CSSProperty(CSSPropertyID propertyID, PassRefPtr<CSSValue> value, bool important = false, bool isSetFromShorthand = false, int indexInShorthandsVector = 0, bool implicit = false)
    5959        : m_metadata(propertyID, isSetFromShorthand, indexInShorthandsVector, important, implicit, isInheritedProperty(propertyID))
    60         , m_value(value)
    61     {
    62     }
    63 
    64     // FIXME: Remove this.
    65     CSSProperty(StylePropertyMetadata metadata, CSSValue* value)
    66         : m_metadata(metadata)
    6760        , m_value(value)
    6861    {
  • trunk/Source/WebCore/css/StyleProperties.h

    r167967 r169314  
    7676
    7777        // FIXME: Remove this.
    78         CSSProperty toCSSProperty() const { return CSSProperty(propertyMetadata(), const_cast<CSSValue*>(propertyValue())); }
     78        CSSProperty toCSSProperty() const { return CSSProperty(id(), const_cast<CSSValue*>(propertyValue()), isImportant(), propertyMetadata().m_isSetFromShorthand, propertyMetadata().m_indexInShorthandsVector, isImplicit()); }
    7979        const StylePropertyMetadata& propertyMetadata() const;
    8080
Note: See TracChangeset for help on using the changeset viewer.