| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 inline ClearButtonElement::ClearButtonElement(Document& document, ClearButtonOwn
er& clearButtonOwner) | 38 inline ClearButtonElement::ClearButtonElement(Document& document, ClearButtonOwn
er& clearButtonOwner) |
| 39 : HTMLDivElement(document) | 39 : HTMLDivElement(document) |
| 40 , m_clearButtonOwner(&clearButtonOwner) | 40 , m_clearButtonOwner(&clearButtonOwner) |
| 41 { | 41 { |
| 42 } | 42 } |
| 43 | 43 |
| 44 PassRefPtrWillBeRawPtr<ClearButtonElement> ClearButtonElement::create(Document&
document, ClearButtonOwner& clearButtonOwner) | 44 PassRefPtrWillBeRawPtr<ClearButtonElement> ClearButtonElement::create(Document&
document, ClearButtonOwner& clearButtonOwner) |
| 45 { | 45 { |
| 46 RefPtrWillBeRawPtr<ClearButtonElement> element = adoptRefWillBeNoop(new Clea
rButtonElement(document, clearButtonOwner)); | 46 RefPtrWillBeRawPtr<ClearButtonElement> element = adoptRefWillBeNoop(new Clea
rButtonElement(document, clearButtonOwner)); |
| 47 element->setShadowPseudoId(AtomicString("-webkit-clear-button", AtomicString
::ConstructFromLiteral)); | 47 element->setShadowPseudoId(AtomicString("-webkit-clear-button")); |
| 48 element->setAttribute(idAttr, ShadowElementNames::clearButton()); | 48 element->setAttribute(idAttr, ShadowElementNames::clearButton()); |
| 49 return element.release(); | 49 return element.release(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 void ClearButtonElement::detach(const AttachContext& context) | 52 void ClearButtonElement::detach(const AttachContext& context) |
| 53 { | 53 { |
| 54 HTMLDivElement::detach(context); | 54 HTMLDivElement::detach(context); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void ClearButtonElement::defaultEventHandler(Event* event) | 57 void ClearButtonElement::defaultEventHandler(Event* event) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 85 return true; | 85 return true; |
| 86 } | 86 } |
| 87 | 87 |
| 88 DEFINE_TRACE(ClearButtonElement) | 88 DEFINE_TRACE(ClearButtonElement) |
| 89 { | 89 { |
| 90 visitor->trace(m_clearButtonOwner); | 90 visitor->trace(m_clearButtonOwner); |
| 91 HTMLDivElement::trace(visitor); | 91 HTMLDivElement::trace(visitor); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| OLD | NEW |