| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 { | 48 { |
| 49 } | 49 } |
| 50 | 50 |
| 51 PassRefPtrWillBeRawPtr<HTMLMeterElement> HTMLMeterElement::create(Document& docu
ment) | 51 PassRefPtrWillBeRawPtr<HTMLMeterElement> HTMLMeterElement::create(Document& docu
ment) |
| 52 { | 52 { |
| 53 RefPtrWillBeRawPtr<HTMLMeterElement> meter = adoptRefWillBeNoop(new HTMLMete
rElement(document)); | 53 RefPtrWillBeRawPtr<HTMLMeterElement> meter = adoptRefWillBeNoop(new HTMLMete
rElement(document)); |
| 54 meter->ensureClosedShadowRoot(); | 54 meter->ensureClosedShadowRoot(); |
| 55 return meter.release(); | 55 return meter.release(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 LayoutObject* HTMLMeterElement::createLayoutObject(const LayoutStyle& style) | 58 LayoutObject* HTMLMeterElement::createLayoutObject(const ComputedStyle& style) |
| 59 { | 59 { |
| 60 if (hasOpenShadowRoot() || !LayoutTheme::theme().supportsMeter(style.appeara
nce())) | 60 if (hasOpenShadowRoot() || !LayoutTheme::theme().supportsMeter(style.appeara
nce())) |
| 61 return LayoutObject::createObject(this, style); | 61 return LayoutObject::createObject(this, style); |
| 62 return new LayoutMeter(this); | 62 return new LayoutMeter(this); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void HTMLMeterElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& value) | 65 void HTMLMeterElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& value) |
| 66 { | 66 { |
| 67 if (name == valueAttr || name == minAttr || name == maxAttr || name == lowAt
tr || name == highAttr || name == optimumAttr) | 67 if (name == valueAttr || name == minAttr || name == maxAttr || name == lowAt
tr || name == highAttr || name == optimumAttr) |
| 68 didElementStateChange(); | 68 didElementStateChange(); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 lazyReattachIfAttached(); | 217 lazyReattachIfAttached(); |
| 218 } | 218 } |
| 219 | 219 |
| 220 DEFINE_TRACE(HTMLMeterElement) | 220 DEFINE_TRACE(HTMLMeterElement) |
| 221 { | 221 { |
| 222 visitor->trace(m_value); | 222 visitor->trace(m_value); |
| 223 LabelableElement::trace(visitor); | 223 LabelableElement::trace(visitor); |
| 224 } | 224 } |
| 225 | 225 |
| 226 } // namespace | 226 } // namespace |
| OLD | NEW |