| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| 54 PassRefPtrWillBeRawPtr<HTMLProgressElement> HTMLProgressElement::create(Document
& document) | 54 PassRefPtrWillBeRawPtr<HTMLProgressElement> HTMLProgressElement::create(Document
& document) |
| 55 { | 55 { |
| 56 RefPtrWillBeRawPtr<HTMLProgressElement> progress = adoptRefWillBeNoop(new HT
MLProgressElement(document)); | 56 RefPtrWillBeRawPtr<HTMLProgressElement> progress = adoptRefWillBeNoop(new HT
MLProgressElement(document)); |
| 57 progress->ensureUserAgentShadowRoot(); | 57 progress->ensureUserAgentShadowRoot(); |
| 58 return progress.release(); | 58 return progress.release(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 RenderObject* HTMLProgressElement::createRenderer(RenderStyle* style) | 61 RenderObject* HTMLProgressElement::createRenderer(const RenderStyle* style) |
| 62 { | 62 { |
| 63 if (!style->hasAppearance() || hasAuthorShadowRoot()) | 63 if (!style->hasAppearance() || hasAuthorShadowRoot()) |
| 64 return RenderObject::createObject(this, style); | 64 return RenderObject::createObject(this, style); |
| 65 | 65 |
| 66 return new RenderProgress(this); | 66 return new RenderProgress(this); |
| 67 } | 67 } |
| 68 | 68 |
| 69 RenderProgress* HTMLProgressElement::renderProgress() const | 69 RenderProgress* HTMLProgressElement::renderProgress() const |
| 70 { | 70 { |
| 71 if (renderer() && renderer()->isProgress()) | 71 if (renderer() && renderer()->isProgress()) |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 return !isDeterminate(); | 171 return !isDeterminate(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void HTMLProgressElement::trace(Visitor* visitor) | 174 void HTMLProgressElement::trace(Visitor* visitor) |
| 175 { | 175 { |
| 176 visitor->trace(m_value); | 176 visitor->trace(m_value); |
| 177 LabelableElement::trace(visitor); | 177 LabelableElement::trace(visitor); |
| 178 } | 178 } |
| 179 | 179 |
| 180 } // namespace | 180 } // namespace |
| OLD | NEW |