Changeset 146273 in webkit


Ignore:
Timestamp:
Mar 19, 2013, 4:07:39 PM (12 years ago)
Author:
ggaren@apple.com
Message:

Removed a using declaration to avoid name conflicts
https://bugs.webkit.org/show_bug.cgi?id=112752

Reviewed by Ryosuke Niwa.

  • html/ClassList.cpp: Put the using declaration here instead.
  • html/ClassList.h: Don't put a using declaration in this header because

it can cause name conflicts with SVGNames.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r146272 r146273  
     12013-03-19  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Removed a using declaration to avoid name conflicts
     4        https://bugs.webkit.org/show_bug.cgi?id=112752
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * html/ClassList.cpp: Put the using declaration here instead.
     9
     10        * html/ClassList.h: Don't put a using declaration in this header because
     11        it can cause name conflicts with SVGNames.
     12
    1132013-03-18  Ojan Vafai  <ojan@chromium.org>
    214
  • trunk/Source/WebCore/html/ClassList.cpp

    r142791 r146273  
    3131
    3232namespace WebCore {
     33
     34using namespace HTMLNames;
    3335
    3436ClassList::ClassList(Element* element) : m_element(element) { }
  • trunk/Source/WebCore/html/ClassList.h

    r138691 r146273  
    3636namespace WebCore {
    3737
    38 using namespace HTMLNames;
    39 
    4038class Element;
    4139
     
    6664    const SpaceSplitString& classNames() const;
    6765
    68     virtual AtomicString value() const OVERRIDE { return m_element->getAttribute(classAttr); }
    69     virtual void setValue(const AtomicString& value) OVERRIDE { m_element->setAttribute(classAttr, value); }
     66    virtual AtomicString value() const OVERRIDE { return m_element->getAttribute(HTMLNames::classAttr); }
     67    virtual void setValue(const AtomicString& value) OVERRIDE { m_element->setAttribute(HTMLNames::classAttr, value); }
    7068
    7169    Element* m_element;
Note: See TracChangeset for help on using the changeset viewer.