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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMeterElement.cpp

Issue 2474603002: Don't include LayoutObject-derived headers where not needed. (Closed)
Patch Set: Created 4 years, 1 month 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
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 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 12 matching lines...) Expand all
23 #include "bindings/core/v8/ExceptionMessages.h" 23 #include "bindings/core/v8/ExceptionMessages.h"
24 #include "bindings/core/v8/ExceptionState.h" 24 #include "bindings/core/v8/ExceptionState.h"
25 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 25 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
26 #include "core/HTMLNames.h" 26 #include "core/HTMLNames.h"
27 #include "core/dom/NodeComputedStyle.h" 27 #include "core/dom/NodeComputedStyle.h"
28 #include "core/dom/shadow/ShadowRoot.h" 28 #include "core/dom/shadow/ShadowRoot.h"
29 #include "core/frame/UseCounter.h" 29 #include "core/frame/UseCounter.h"
30 #include "core/html/HTMLContentElement.h" 30 #include "core/html/HTMLContentElement.h"
31 #include "core/html/HTMLDivElement.h" 31 #include "core/html/HTMLDivElement.h"
32 #include "core/html/parser/HTMLParserIdioms.h" 32 #include "core/html/parser/HTMLParserIdioms.h"
33 #include "core/layout/LayoutObject.h"
34 #include "core/style/ComputedStyle.h" 33 #include "core/style/ComputedStyle.h"
35 34
36 namespace blink { 35 namespace blink {
37 36
38 using namespace HTMLNames; 37 using namespace HTMLNames;
39 38
40 HTMLMeterElement::HTMLMeterElement(Document& document) 39 HTMLMeterElement::HTMLMeterElement(Document& document)
41 : LabelableElement(meterTag, document) { 40 : LabelableElement(meterTag, document) {
42 UseCounter::count(document, UseCounter::MeterElement); 41 UseCounter::count(document, UseCounter::MeterElement);
43 } 42 }
(...skipping 11 matching lines...) Expand all
55 case MeterPart: 54 case MeterPart:
56 UseCounter::count(document(), 55 UseCounter::count(document(),
57 UseCounter::MeterElementWithMeterAppearance); 56 UseCounter::MeterElementWithMeterAppearance);
58 break; 57 break;
59 case NoControlPart: 58 case NoControlPart:
60 UseCounter::count(document(), UseCounter::MeterElementWithNoneAppearance); 59 UseCounter::count(document(), UseCounter::MeterElementWithNoneAppearance);
61 break; 60 break;
62 default: 61 default:
63 break; 62 break;
64 } 63 }
65 return LayoutObject::createObject(this, style); 64 return LabelableElement::createLayoutObject(style);
66 } 65 }
67 66
68 void HTMLMeterElement::parseAttribute(const QualifiedName& name, 67 void HTMLMeterElement::parseAttribute(const QualifiedName& name,
69 const AtomicString& oldValue, 68 const AtomicString& oldValue,
70 const AtomicString& value) { 69 const AtomicString& value) {
71 if (name == valueAttr || name == minAttr || name == maxAttr || 70 if (name == valueAttr || name == minAttr || name == maxAttr ||
72 name == lowAttr || name == highAttr || name == optimumAttr) 71 name == lowAttr || name == highAttr || name == optimumAttr)
73 didElementStateChange(); 72 didElementStateChange();
74 else 73 else
75 LabelableElement::parseAttribute(name, oldValue, value); 74 LabelableElement::parseAttribute(name, oldValue, value);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 document().updateStyleAndLayoutTreeForNode(this); 222 document().updateStyleAndLayoutTreeForNode(this);
224 return computedStyle() && !computedStyle()->hasAppearance(); 223 return computedStyle() && !computedStyle()->hasAppearance();
225 } 224 }
226 225
227 DEFINE_TRACE(HTMLMeterElement) { 226 DEFINE_TRACE(HTMLMeterElement) {
228 visitor->trace(m_value); 227 visitor->trace(m_value);
229 LabelableElement::trace(visitor); 228 LabelableElement::trace(visitor);
230 } 229 }
231 230
232 } // namespace blink 231 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElement.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698