Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLProgressElement.cpp

Issue 2164493002: Renamed Node::attach to Node::attachLayoutTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if (oldValue.isNull() != value.isNull()) 79 if (oldValue.isNull() != value.isNull())
80 pseudoStateChanged(CSSSelector::PseudoIndeterminate); 80 pseudoStateChanged(CSSSelector::PseudoIndeterminate);
81 didElementStateChange(); 81 didElementStateChange();
82 } else if (name == maxAttr) { 82 } else if (name == maxAttr) {
83 didElementStateChange(); 83 didElementStateChange();
84 } else { 84 } else {
85 LabelableElement::parseAttribute(name, oldValue, value); 85 LabelableElement::parseAttribute(name, oldValue, value);
86 } 86 }
87 } 87 }
88 88
89 void HTMLProgressElement::attach(const AttachContext& context) 89 void HTMLProgressElement::attachLayoutTree(const AttachContext& context)
90 { 90 {
91 LabelableElement::attach(context); 91 LabelableElement::attachLayoutTree(context);
92 if (LayoutProgressItem layoutItem = LayoutProgressItem(layoutProgress())) 92 if (LayoutProgressItem layoutItem = LayoutProgressItem(layoutProgress()))
93 layoutItem.updateFromElement(); 93 layoutItem.updateFromElement();
94 } 94 }
95 95
96 double HTMLProgressElement::value() const 96 double HTMLProgressElement::value() const
97 { 97 {
98 double value = getFloatingPointAttribute(valueAttr); 98 double value = getFloatingPointAttribute(valueAttr);
99 // Otherwise, if the parsed value was greater than or equal to the maximum 99 // Otherwise, if the parsed value was greater than or equal to the maximum
100 // value, then the current value of the progress bar is the maximum value 100 // value, then the current value of the progress bar is the maximum value
101 // of the progress bar. Otherwise, if parsing the value attribute's value 101 // of the progress bar. Otherwise, if parsing the value attribute's value
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 visitor->trace(m_value); 171 visitor->trace(m_value);
172 LabelableElement::trace(visitor); 172 LabelableElement::trace(visitor);
173 } 173 }
174 174
175 void HTMLProgressElement::setValueWidthPercentage(double width) const 175 void HTMLProgressElement::setValueWidthPercentage(double width) const
176 { 176 {
177 m_value->setInlineStyleProperty(CSSPropertyWidth, width, CSSPrimitiveValue:: UnitType::Percentage); 177 m_value->setInlineStyleProperty(CSSPropertyWidth, width, CSSPrimitiveValue:: UnitType::Percentage);
178 } 178 }
179 179
180 } // namespace blink 180 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698