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

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

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments Created 4 years, 2 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 if (highValue < optimumValue) { 146 if (highValue < optimumValue) {
147 // The optimum range stays over high 147 // The optimum range stays over high
148 if (highValue <= theValue) 148 if (highValue <= theValue)
149 return GaugeRegionOptimum; 149 return GaugeRegionOptimum;
150 if (lowValue <= theValue) 150 if (lowValue <= theValue)
151 return GaugeRegionSuboptimal; 151 return GaugeRegionSuboptimal;
152 return GaugeRegionEvenLessGood; 152 return GaugeRegionEvenLessGood;
153 } 153 }
154 154
155 // The optimum range stays between high and low. 155 // The optimum range stays between high and low.
156 // According to the standard, <meter> never show GaugeRegionEvenLessGood in th is case 156 // According to the standard, <meter> never show GaugeRegionEvenLessGood in
157 // because the value is never less or greater than min or max. 157 // this case because the value is never less or greater than min or max.
158 if (lowValue <= theValue && theValue <= highValue) 158 if (lowValue <= theValue && theValue <= highValue)
159 return GaugeRegionOptimum; 159 return GaugeRegionOptimum;
160 return GaugeRegionSuboptimal; 160 return GaugeRegionSuboptimal;
161 } 161 }
162 162
163 double HTMLMeterElement::valueRatio() const { 163 double HTMLMeterElement::valueRatio() const {
164 double min = this->min(); 164 double min = this->min();
165 double max = this->max(); 165 double max = this->max();
166 double value = this->value(); 166 double value = this->value();
167 167
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 document().updateStyleAndLayoutTreeForNode(this); 223 document().updateStyleAndLayoutTreeForNode(this);
224 return computedStyle() && !computedStyle()->hasAppearance(); 224 return computedStyle() && !computedStyle()->hasAppearance();
225 } 225 }
226 226
227 DEFINE_TRACE(HTMLMeterElement) { 227 DEFINE_TRACE(HTMLMeterElement) {
228 visitor->trace(m_value); 228 visitor->trace(m_value);
229 LabelableElement::trace(visitor); 229 LabelableElement::trace(visitor);
230 } 230 }
231 231
232 } // namespace blink 232 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMetaElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLNameCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698