| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 LayoutObject* HTMLProgressElement::createRenderer(const LayoutStyle& style) | 61 LayoutObject* HTMLProgressElement::createRenderer(const LayoutStyle& style) |
| 62 { | 62 { |
| 63 if (!style.hasAppearance() || hasOpenShadowRoot()) | 63 if (!style.hasAppearance() || hasOpenShadowRoot()) |
| 64 return LayoutObject::createObject(this, style); | 64 return LayoutObject::createObject(this, style); |
| 65 return new LayoutProgress(this); | 65 return new LayoutProgress(this); |
| 66 } | 66 } |
| 67 | 67 |
| 68 LayoutProgress* HTMLProgressElement::layoutProgress() const | 68 LayoutProgress* HTMLProgressElement::layoutProgress() const |
| 69 { | 69 { |
| 70 if (renderer() && renderer()->isProgress()) | 70 if (layoutObject() && layoutObject()->isProgress()) |
| 71 return toLayoutProgress(renderer()); | 71 return toLayoutProgress(layoutObject()); |
| 72 | 72 |
| 73 LayoutObject* layoutObject = closedShadowRoot()->firstChild()->renderer(); | 73 LayoutObject* layoutObject = closedShadowRoot()->firstChild()->layoutObject(
); |
| 74 ASSERT_WITH_SECURITY_IMPLICATION(!layoutObject || layoutObject->isProgress()
); | 74 ASSERT_WITH_SECURITY_IMPLICATION(!layoutObject || layoutObject->isProgress()
); |
| 75 return toLayoutProgress(layoutObject); | 75 return toLayoutProgress(layoutObject); |
| 76 } | 76 } |
| 77 | 77 |
| 78 void HTMLProgressElement::parseAttribute(const QualifiedName& name, const Atomic
String& value) | 78 void HTMLProgressElement::parseAttribute(const QualifiedName& name, const Atomic
String& value) |
| 79 { | 79 { |
| 80 if (name == valueAttr) | 80 if (name == valueAttr) |
| 81 didElementStateChange(); | 81 didElementStateChange(); |
| 82 else if (name == maxAttr) | 82 else if (name == maxAttr) |
| 83 didElementStateChange(); | 83 didElementStateChange(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 lazyReattachIfAttached(); | 176 lazyReattachIfAttached(); |
| 177 } | 177 } |
| 178 | 178 |
| 179 DEFINE_TRACE(HTMLProgressElement) | 179 DEFINE_TRACE(HTMLProgressElement) |
| 180 { | 180 { |
| 181 visitor->trace(m_value); | 181 visitor->trace(m_value); |
| 182 LabelableElement::trace(visitor); | 182 LabelableElement::trace(visitor); |
| 183 } | 183 } |
| 184 | 184 |
| 185 } // namespace | 185 } // namespace |
| OLD | NEW |