| OLD | NEW |
| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #include "HTMLNames.h" | 25 #include "HTMLNames.h" |
| 26 #include "core/dom/ExceptionCode.h" | 26 #include "core/dom/ExceptionCode.h" |
| 27 #include "core/dom/NodeRenderingContext.h" | 27 #include "core/dom/NodeRenderingContext.h" |
| 28 #include "core/dom/shadow/ShadowRoot.h" | 28 #include "core/dom/shadow/ShadowRoot.h" |
| 29 #include "core/html/parser/HTMLParserIdioms.h" | 29 #include "core/html/parser/HTMLParserIdioms.h" |
| 30 #include "core/html/shadow/MeterShadowElement.h" | 30 #include "core/html/shadow/MeterShadowElement.h" |
| 31 #include "core/page/Page.h" | 31 #include "core/page/Page.h" |
| 32 #include "core/rendering/RenderMeter.h" | 32 #include "core/rendering/RenderMeter.h" |
| 33 #include "core/rendering/RenderTheme.h" | 33 #include "core/rendering/RenderTheme.h" |
| 34 #include <wtf/StdLibExtras.h> | |
| 35 | 34 |
| 36 namespace WebCore { | 35 namespace WebCore { |
| 37 | 36 |
| 38 using namespace HTMLNames; | 37 using namespace HTMLNames; |
| 39 | 38 |
| 40 HTMLMeterElement::HTMLMeterElement(const QualifiedName& tagName, Document* docum
ent) | 39 HTMLMeterElement::HTMLMeterElement(const QualifiedName& tagName, Document* docum
ent) |
| 41 : LabelableElement(tagName, document) | 40 : LabelableElement(tagName, document) |
| 42 { | 41 { |
| 43 ASSERT(hasTagName(meterTag)); | 42 ASSERT(hasTagName(meterTag)); |
| 44 ScriptWrappable::init(this); | 43 ScriptWrappable::init(this); |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 RefPtr<MeterBarElement> bar = MeterBarElement::create(document()); | 235 RefPtr<MeterBarElement> bar = MeterBarElement::create(document()); |
| 237 m_value = MeterValueElement::create(document()); | 236 m_value = MeterValueElement::create(document()); |
| 238 m_value->setWidthPercentage(0); | 237 m_value->setWidthPercentage(0); |
| 239 m_value->updatePseudo(); | 238 m_value->updatePseudo(); |
| 240 bar->appendChild(m_value, ASSERT_NO_EXCEPTION); | 239 bar->appendChild(m_value, ASSERT_NO_EXCEPTION); |
| 241 | 240 |
| 242 inner->appendChild(bar, ASSERT_NO_EXCEPTION); | 241 inner->appendChild(bar, ASSERT_NO_EXCEPTION); |
| 243 } | 242 } |
| 244 | 243 |
| 245 } // namespace | 244 } // namespace |
| OLD | NEW |