| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 { | 150 { |
| 151 ASSERT(!m_value); | 151 ASSERT(!m_value); |
| 152 | 152 |
| 153 RefPtr<ProgressInnerElement> inner = ProgressInnerElement::create(document()
); | 153 RefPtr<ProgressInnerElement> inner = ProgressInnerElement::create(document()
); |
| 154 root->appendChild(inner); | 154 root->appendChild(inner); |
| 155 | 155 |
| 156 RefPtr<ProgressBarElement> bar = ProgressBarElement::create(document()); | 156 RefPtr<ProgressBarElement> bar = ProgressBarElement::create(document()); |
| 157 RefPtr<ProgressValueElement> value = ProgressValueElement::create(document()
); | 157 RefPtr<ProgressValueElement> value = ProgressValueElement::create(document()
); |
| 158 m_value = value.get(); | 158 m_value = value.get(); |
| 159 m_value->setWidthPercentage(HTMLProgressElement::IndeterminatePosition * 100
); | 159 m_value->setWidthPercentage(HTMLProgressElement::IndeterminatePosition * 100
); |
| 160 bar->appendChild(m_value, ASSERT_NO_EXCEPTION_STATE); | 160 bar->appendChild(m_value, ASSERT_NO_EXCEPTION); |
| 161 | 161 |
| 162 inner->appendChild(bar, ASSERT_NO_EXCEPTION_STATE); | 162 inner->appendChild(bar, ASSERT_NO_EXCEPTION); |
| 163 } | 163 } |
| 164 | 164 |
| 165 bool HTMLProgressElement::shouldAppearIndeterminate() const | 165 bool HTMLProgressElement::shouldAppearIndeterminate() const |
| 166 { | 166 { |
| 167 return !isDeterminate(); | 167 return !isDeterminate(); |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace | 170 } // namespace |
| OLD | NEW |