| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 return fastHasAttribute(valueAttr); | 136 return fastHasAttribute(valueAttr); |
| 137 } | 137 } |
| 138 | 138 |
| 139 void HTMLProgressElement::didElementStateChange() | 139 void HTMLProgressElement::didElementStateChange() |
| 140 { | 140 { |
| 141 m_value->setWidthPercentage(position() * 100); | 141 m_value->setWidthPercentage(position() * 100); |
| 142 if (RenderProgress* render = renderProgress()) { | 142 if (RenderProgress* render = renderProgress()) { |
| 143 bool wasDeterminate = render->isDeterminate(); | 143 bool wasDeterminate = render->isDeterminate(); |
| 144 render->updateFromElement(); | 144 render->updateFromElement(); |
| 145 if (wasDeterminate != isDeterminate()) | 145 if (wasDeterminate != isDeterminate()) |
| 146 didAffectSelector(AffectedSelectorIndeterminate); | 146 didAffectSelector(StyleChangeReasonForTracing::createWithExtraData(S
tyleChangeReason::PseudoClass, StyleChangeExtraData::Indeterminate), AffectedSel
ectorIndeterminate); |
| 147 } | 147 } |
| 148 } | 148 } |
| 149 | 149 |
| 150 void HTMLProgressElement::didAddUserAgentShadowRoot(ShadowRoot& root) | 150 void HTMLProgressElement::didAddUserAgentShadowRoot(ShadowRoot& root) |
| 151 { | 151 { |
| 152 ASSERT(!m_value); | 152 ASSERT(!m_value); |
| 153 | 153 |
| 154 RefPtrWillBeRawPtr<ProgressInnerElement> inner = ProgressInnerElement::creat
e(document()); | 154 RefPtrWillBeRawPtr<ProgressInnerElement> inner = ProgressInnerElement::creat
e(document()); |
| 155 inner->setShadowPseudoId(AtomicString("-webkit-progress-inner-element", Atom
icString::ConstructFromLiteral)); | 155 inner->setShadowPseudoId(AtomicString("-webkit-progress-inner-element", Atom
icString::ConstructFromLiteral)); |
| 156 root.appendChild(inner); | 156 root.appendChild(inner); |
| (...skipping 14 matching lines...) Expand all 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 |