| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #if !ENABLE(OILPAN) | 48 #if !ENABLE(OILPAN) |
| 49 virtual void ref() override; | 49 virtual void ref() override; |
| 50 virtual void deref() override; | 50 virtual void deref() override; |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 virtual unsigned length() const override; | 53 virtual unsigned length() const override; |
| 54 virtual const AtomicString item(unsigned index) const override; | 54 virtual const AtomicString item(unsigned index) const override; |
| 55 | 55 |
| 56 virtual Element* element() override { return m_element; } | 56 virtual Element* element() override { return m_element; } |
| 57 | 57 |
| 58 virtual void trace(Visitor*) override; | |
| 59 | |
| 60 private: | 58 private: |
| 61 explicit ClassList(Element*); | 59 explicit ClassList(Element*); |
| 62 | 60 |
| 63 virtual bool containsInternal(const AtomicString&) const override; | 61 virtual bool containsInternal(const AtomicString&) const override; |
| 64 | 62 |
| 65 const SpaceSplitString& classNames() const; | 63 const SpaceSplitString& classNames() const; |
| 66 | 64 |
| 67 virtual const AtomicString& value() const override { return m_element->getAt
tribute(HTMLNames::classAttr); } | 65 virtual const AtomicString& value() const override { return m_element->getAt
tribute(HTMLNames::classAttr); } |
| 68 virtual void setValue(const AtomicString& value) override { m_element->setAt
tribute(HTMLNames::classAttr, value); } | 66 virtual void setValue(const AtomicString& value) override { m_element->setAt
tribute(HTMLNames::classAttr, value); } |
| 69 | 67 |
| 70 RawPtr<Element> m_element; | 68 RawPtr<Element> m_element; |
| 71 }; | 69 }; |
| 72 | 70 |
| 73 } // namespace blink | 71 } // namespace blink |
| 74 | 72 |
| 75 #endif // ClassList_h | 73 #endif // ClassList_h |
| OLD | NEW |