| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 using namespace HTMLNames; | 48 using namespace HTMLNames; |
| 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); | |
| 57 } | 56 } |
| 58 | 57 |
| 59 HTMLOptionElement::~HTMLOptionElement() | 58 HTMLOptionElement::~HTMLOptionElement() |
| 60 { | 59 { |
| 61 } | 60 } |
| 62 | 61 |
| 63 PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::create(Document& do
cument) | 62 PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::create(Document& do
cument) |
| 64 { | 63 { |
| 65 RefPtrWillBeRawPtr<HTMLOptionElement> option = adoptRefWillBeNoop(new HTMLOp
tionElement(document)); | 64 RefPtrWillBeRawPtr<HTMLOptionElement> option = adoptRefWillBeNoop(new HTMLOp
tionElement(document)); |
| 66 option->ensureUserAgentShadowRoot(); | 65 option->ensureUserAgentShadowRoot(); |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 ASSERT(parent); | 410 ASSERT(parent); |
| 412 if (isHTMLOptGroupElement(*parent)) { | 411 if (isHTMLOptGroupElement(*parent)) { |
| 413 RenderStyle* parentStyle = parent->renderStyle() ? parent->renderSty
le() : parent->computedStyle(); | 412 RenderStyle* parentStyle = parent->renderStyle() ? parent->renderSty
le() : parent->computedStyle(); |
| 414 return !parentStyle || parentStyle->display() == NONE; | 413 return !parentStyle || parentStyle->display() == NONE; |
| 415 } | 414 } |
| 416 } | 415 } |
| 417 return m_style->display() == NONE; | 416 return m_style->display() == NONE; |
| 418 } | 417 } |
| 419 | 418 |
| 420 } // namespace blink | 419 } // namespace blink |
| OLD | NEW |