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

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

Issue 419033002: Remove some setHasCustomStyleCallbacks calls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: V3 Created 6 years, 5 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
« no previous file with comments | « no previous file | Source/core/html/HTMLTitleElement.cpp » ('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) 2010 Nokia Corporation and/or its subsidiary(-ies). 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 1999 Antti Koivisto (koivisto@kde.org) 4 * (C) 1999 Antti Koivisto (koivisto@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
8 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
10 * 10 *
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 , m_lastOnChangeIndex(-1) 75 , m_lastOnChangeIndex(-1)
76 , m_activeSelectionAnchorIndex(-1) 76 , m_activeSelectionAnchorIndex(-1)
77 , m_activeSelectionEndIndex(-1) 77 , m_activeSelectionEndIndex(-1)
78 , m_isProcessingUserDrivenChange(false) 78 , m_isProcessingUserDrivenChange(false)
79 , m_multiple(false) 79 , m_multiple(false)
80 , m_activeSelectionState(false) 80 , m_activeSelectionState(false)
81 , m_shouldRecalcListItems(false) 81 , m_shouldRecalcListItems(false)
82 , m_suggestedIndex(-1) 82 , m_suggestedIndex(-1)
83 { 83 {
84 ScriptWrappable::init(this); 84 ScriptWrappable::init(this);
85 setHasCustomStyleCallbacks();
86 } 85 }
87 86
88 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do cument) 87 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do cument)
89 { 88 {
90 RefPtrWillBeRawPtr<HTMLSelectElement> select = adoptRefWillBeNoop(new HTMLSe lectElement(document, 0)); 89 RefPtrWillBeRawPtr<HTMLSelectElement> select = adoptRefWillBeNoop(new HTMLSe lectElement(document, 0));
91 select->ensureUserAgentShadowRoot(); 90 select->ensureUserAgentShadowRoot();
92 return select.release(); 91 return select.release();
93 } 92 }
94 93
95 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do cument, HTMLFormElement* form) 94 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do cument, HTMLFormElement* form)
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1735 int focusedIndex = activeSelectionEndListIndex(); 1734 int focusedIndex = activeSelectionEndListIndex();
1736 if (focusedIndex < 0) 1735 if (focusedIndex < 0)
1737 focusedIndex = firstSelectableListIndex(); 1736 focusedIndex = firstSelectableListIndex();
1738 if (focusedIndex < 0) 1737 if (focusedIndex < 0)
1739 return nullptr; 1738 return nullptr;
1740 HTMLElement* focused = listItems()[focusedIndex]; 1739 HTMLElement* focused = listItems()[focusedIndex];
1741 return isHTMLOptionElement(focused) ? toHTMLOptionElement(focused) : nullptr ; 1740 return isHTMLOptionElement(focused) ? toHTMLOptionElement(focused) : nullptr ;
1742 } 1741 }
1743 1742
1744 } // namespace 1743 } // namespace
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLTitleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698