Changeset 137909 in webkit


Ignore:
Timestamp:
Dec 17, 2012 8:20:28 AM (11 years ago)
Author:
akling@apple.com
Message:

Attribute: Remove unused constructor and isNull().
<http://webkit.org/b/105179>

Reviewed by Antti Koivisto.

Removed the Attribute constructor that takes a localName rather than a full QualifiedName as that was never used.
Also removed Attribute::isNull(), since that was only called in one place where isNull() will never be true.

  • dom/Attribute.h:
  • html/HTMLIFrameElement.cpp:

(WebCore::HTMLIFrameElement::collectStyleForPresentationAttribute):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r137908 r137909  
     12012-12-17  Andreas Kling  <akling@apple.com>
     2
     3        Attribute: Remove unused constructor and isNull().
     4        <http://webkit.org/b/105179>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Removed the Attribute constructor that takes a localName rather than a full QualifiedName as that was never used.
     9        Also removed Attribute::isNull(), since that was only called in one place where isNull() will never be true.
     10
     11        * dom/Attribute.h:
     12        * html/HTMLIFrameElement.cpp:
     13        (WebCore::HTMLIFrameElement::collectStyleForPresentationAttribute):
     14
    1152012-12-17  Anthony Scian  <ascian@rim.com>
    216
  • trunk/Source/WebCore/dom/Attribute.h

    r128762 r137909  
    4242    }
    4343
    44     Attribute(const AtomicString& name, const AtomicString& value)
    45         : m_name(nullAtom, name, nullAtom)
    46         , m_value(value)
    47     {
    48     }
    49 
    5044    // NOTE: The references returned by these functions are only valid for as long
    5145    // as the Attribute stays in place. For example, calling a function that mutates
     
    5852    const QualifiedName& name() const { return m_name; }
    5953
    60     bool isNull() const { return m_value.isNull(); }
    6154    bool isEmpty() const { return m_value.isEmpty(); }
    6255
  • trunk/Source/WebCore/html/HTMLIFrameElement.cpp

    r137318 r137909  
    7070        // Frame border doesn't really match the HTML4 spec definition for iframes. It simply adds
    7171        // a presentational hint that the border should be off if set to zero.
    72         if (!attribute.isNull() && !attribute.value().toInt()) {
     72        if (!attribute.value().toInt()) {
    7373            // Add a rule that nulls out our border width.
    7474            addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderWidth, 0, CSSPrimitiveValue::CSS_PX);
Note: See TracChangeset for help on using the changeset viewer.