| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 5 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. | 8 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 HTMLOptionElement::HTMLOptionElement(Document& document) | 50 HTMLOptionElement::HTMLOptionElement(Document& document) |
| 51 : HTMLElement(optionTag, document) | 51 : HTMLElement(optionTag, document) |
| 52 , m_disabled(false) | 52 , m_disabled(false) |
| 53 , m_isSelected(false) | 53 , m_isSelected(false) |
| 54 { | 54 { |
| 55 setHasCustomStyleCallbacks(); | 55 setHasCustomStyleCallbacks(); |
| 56 ScriptWrappable::init(this); | 56 ScriptWrappable::init(this); |
| 57 } | 57 } |
| 58 | 58 |
| 59 HTMLOptionElement::~HTMLOptionElement() | |
| 60 { | |
| 61 } | |
| 62 | |
| 63 PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::create(Document& do
cument) | 59 PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::create(Document& do
cument) |
| 64 { | 60 { |
| 65 RefPtrWillBeRawPtr<HTMLOptionElement> option = adoptRefWillBeNoop(new HTMLOp
tionElement(document)); | 61 RefPtrWillBeRawPtr<HTMLOptionElement> option = adoptRefWillBeNoop(new HTMLOp
tionElement(document)); |
| 66 option->ensureUserAgentShadowRoot(); | 62 option->ensureUserAgentShadowRoot(); |
| 67 return option.release(); | 63 return option.release(); |
| 68 } | 64 } |
| 69 | 65 |
| 70 PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::createForJSConstruc
tor(Document& document, const String& data, const AtomicString& value, | 66 PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::createForJSConstruc
tor(Document& document, const String& data, const AtomicString& value, |
| 71 bool defaultSelected, bool selected, ExceptionState& exceptionState) | 67 bool defaultSelected, bool selected, ExceptionState& exceptionState) |
| 72 { | 68 { |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 385 |
| 390 bool HTMLOptionElement::spatialNavigationFocused() const | 386 bool HTMLOptionElement::spatialNavigationFocused() const |
| 391 { | 387 { |
| 392 HTMLSelectElement* select = ownerSelectElement(); | 388 HTMLSelectElement* select = ownerSelectElement(); |
| 393 if (!select || !select->focused()) | 389 if (!select || !select->focused()) |
| 394 return false; | 390 return false; |
| 395 return select->spatialNavigationFocusedOption() == this; | 391 return select->spatialNavigationFocusedOption() == this; |
| 396 } | 392 } |
| 397 | 393 |
| 398 } // namespace blink | 394 } // namespace blink |
| OLD | NEW |