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

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

Issue 17388003: Remove unused includes from core/{editing,fileapi,history,html} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 years, 6 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 | « Source/core/html/HTMLMeterElement.cpp ('k') | Source/core/html/HTMLOutputElement.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 10 matching lines...) Expand all
21 * along with this library; see the file COPYING.LIB. If not, write to 21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA. 23 * Boston, MA 02110-1301, USA.
24 * 24 *
25 */ 25 */
26 26
27 #include "config.h" 27 #include "config.h"
28 #include "core/html/HTMLOptionElement.h" 28 #include "core/html/HTMLOptionElement.h"
29 29
30 #include "HTMLNames.h" 30 #include "HTMLNames.h"
31 #include "core/css/resolver/StyleResolver.h"
32 #include "core/dom/Document.h" 31 #include "core/dom/Document.h"
33 #include "core/dom/NodeRenderStyle.h" 32 #include "core/dom/NodeRenderStyle.h"
34 #include "core/dom/NodeTraversal.h" 33 #include "core/dom/NodeTraversal.h"
35 #include "core/dom/ScriptElement.h" 34 #include "core/dom/ScriptElement.h"
36 #include "core/dom/Text.h" 35 #include "core/dom/Text.h"
37 #include "core/html/HTMLDataListElement.h" 36 #include "core/html/HTMLDataListElement.h"
38 #include "core/html/HTMLSelectElement.h" 37 #include "core/html/HTMLSelectElement.h"
39 #include "core/html/parser/HTMLParserIdioms.h" 38 #include "core/html/parser/HTMLParserIdioms.h"
40 #include "core/rendering/RenderTheme.h" 39 #include "core/rendering/RenderTheme.h"
41 #include <wtf/StdLibExtras.h> 40 #include "wtf/Vector.h"
42 #include <wtf/text/StringBuilder.h> 41 #include "wtf/text/StringBuilder.h"
43 #include <wtf/Vector.h>
44 42
45 namespace WebCore { 43 namespace WebCore {
46 44
47 using namespace HTMLNames; 45 using namespace HTMLNames;
48 46
49 HTMLOptionElement::HTMLOptionElement(const QualifiedName& tagName, Document* doc ument) 47 HTMLOptionElement::HTMLOptionElement(const QualifiedName& tagName, Document* doc ument)
50 : HTMLElement(tagName, document) 48 : HTMLElement(tagName, document)
51 , m_disabled(false) 49 , m_disabled(false)
52 , m_isSelected(false) 50 , m_isSelected(false)
53 { 51 {
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 // Text nodes inside script elements are not part of the option text. 372 // Text nodes inside script elements are not part of the option text.
375 if (node->isElementNode() && toScriptElementIfPossible(toElement(node))) 373 if (node->isElementNode() && toScriptElementIfPossible(toElement(node)))
376 node = NodeTraversal::nextSkippingChildren(node, this); 374 node = NodeTraversal::nextSkippingChildren(node, this);
377 else 375 else
378 node = NodeTraversal::next(node, this); 376 node = NodeTraversal::next(node, this);
379 } 377 }
380 return text.toString(); 378 return text.toString();
381 } 379 }
382 380
383 } // namespace WebCore 381 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMeterElement.cpp ('k') | Source/core/html/HTMLOutputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698