| 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 |
| 59 PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::create(Document& do
cument) | 63 PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::create(Document& do
cument) |
| 60 { | 64 { |
| 61 RefPtrWillBeRawPtr<HTMLOptionElement> option = adoptRefWillBeNoop(new HTMLOp
tionElement(document)); | 65 RefPtrWillBeRawPtr<HTMLOptionElement> option = adoptRefWillBeNoop(new HTMLOp
tionElement(document)); |
| 62 option->ensureUserAgentShadowRoot(); | 66 option->ensureUserAgentShadowRoot(); |
| 63 return option.release(); | 67 return option.release(); |
| 64 } | 68 } |
| 65 | 69 |
| 66 PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::createForJSConstruc
tor(Document& document, const String& data, const AtomicString& value, | 70 PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::createForJSConstruc
tor(Document& document, const String& data, const AtomicString& value, |
| 67 bool defaultSelected, bool selected, ExceptionState& exceptionState) | 71 bool defaultSelected, bool selected, ExceptionState& exceptionState) |
| 68 { | 72 { |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 389 |
| 386 bool HTMLOptionElement::spatialNavigationFocused() const | 390 bool HTMLOptionElement::spatialNavigationFocused() const |
| 387 { | 391 { |
| 388 HTMLSelectElement* select = ownerSelectElement(); | 392 HTMLSelectElement* select = ownerSelectElement(); |
| 389 if (!select || !select->focused()) | 393 if (!select || !select->focused()) |
| 390 return false; | 394 return false; |
| 391 return select->spatialNavigationFocusedOption() == this; | 395 return select->spatialNavigationFocusedOption() == this; |
| 392 } | 396 } |
| 393 | 397 |
| 394 } // namespace blink | 398 } // namespace blink |
| OLD | NEW |