Changeset 92588 in webkit
- Timestamp:
- Aug 8, 2011 1:42:14 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r92587 r92588 1 2011-08-08 Kenichi Ishibashi <bashi@chromium.org> 2 3 Should not use C-style cast in CSSParser.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=65807 5 6 Remove C-style cast. 7 8 Reviewed by Kent Tamura. 9 10 No new tests because no behavior change. 11 12 * css/CSSParser.cpp: 13 (WebCore::CSSParser::parseAnimationTimingFunction): Replaced a cast with clampToInteger(). 14 (WebCore::CSSParser::parseFontFeatureTag): Ditto. 15 (WebCore::CSSParser::createKeyframeRule): Replaced a cast with C++-style cast. 16 1 17 2011-08-05 Pavel Feldman <pfeldman@chromium.org> 2 18 -
trunk/Source/WebCore/css/CSSParser.cpp
r92549 r92588 3285 3285 if (!validUnit(v, FInteger, m_strict)) 3286 3286 return 0; 3287 numSteps = static_cast<int>(min(v->fValue, (double)INT_MAX));3287 numSteps = clampToInteger(v->fValue); 3288 3288 if (numSteps < 1) 3289 3289 return 0; … … 6334 6334 if (value) { 6335 6335 if (value->unit == CSSPrimitiveValue::CSS_NUMBER && value->isInt && value->fValue >= 0) { 6336 tagValue = static_cast<int>(value->fValue);6336 tagValue = clampToInteger(value->fValue); 6337 6337 if (tagValue < 0) 6338 6338 return false; … … 6953 6953 String keyString; 6954 6954 for (unsigned i = 0; i < keys->size(); ++i) { 6955 float key = (float) keys->valueAt(i)->fValue;6955 float key = static_cast<float>(keys->valueAt(i)->fValue); 6956 6956 if (i != 0) 6957 6957 keyString += ",";
Note: See TracChangeset
for help on using the changeset viewer.