Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(936)

Side by Side Diff: Source/core/html/HTMLOptionElement.cpp

Issue 878273002: Revert of Add explicit destructors to DOM classes containing smart pointers to incomplete types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLOptionElement.h ('k') | Source/core/svg/SVGScriptElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/HTMLOptionElement.h ('k') | Source/core/svg/SVGScriptElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698