Changeset 136215 in webkit
- Timestamp:
- Nov 30, 2012, 1:02:17 AM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
html/shadow/DateTimeNumericFieldElement.cpp (modified) (1 diff)
-
html/shadow/DateTimeSymbolicFieldElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r136212 r136215 1 2012-11-30 Kent Tamura <tkent@chromium.org> 2 3 Fix typos in DateTimeNumericFieldElement.cpp and DateTimeSymbolicFieldElement.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=103717 5 6 Reviewed by Hajime Morita. 7 8 * html/shadow/DateTimeNumericFieldElement.cpp: 9 (WebCore::DateTimeNumericFieldElement::customStyleForRenderer): 10 maximum, not maxium. 11 * html/shadow/DateTimeSymbolicFieldElement.cpp: 12 (WebCore::DateTimeSymbolicFieldElement::customStyleForRenderer): Ditto. 13 1 14 2012-11-30 Halton Huo <halton.huo@intel.com> 2 15 -
trunk/Source/WebCore/html/shadow/DateTimeNumericFieldElement.cpp
r134239 r136215 80 80 RefPtr<RenderStyle> originalStyle = document()->styleResolver()->styleForElement(this); 81 81 RefPtr<RenderStyle> style = RenderStyle::clone(originalStyle.get()); 82 float maxi umWidth = style->font().width(m_placeholder);83 maxi umWidth = std::max(maxiumWidth, style->font().width(formatValue(maximum())));84 maxi umWidth = std::max(maxiumWidth, style->font().width(value()));85 style->setMinWidth(Length(maxi umWidth, Fixed));82 float maximumWidth = style->font().width(m_placeholder); 83 maximumWidth = std::max(maximumWidth, style->font().width(formatValue(maximum()))); 84 maximumWidth = std::max(maximumWidth, style->font().width(value())); 85 style->setMinWidth(Length(maximumWidth, Fixed)); 86 86 return style.release(); 87 87 } -
trunk/Source/WebCore/html/shadow/DateTimeSymbolicFieldElement.cpp
r136205 r136215 67 67 RefPtr<RenderStyle> originalStyle = document()->styleResolver()->styleForElement(this); 68 68 RefPtr<RenderStyle> style = RenderStyle::clone(originalStyle.get()); 69 float maxi umWidth = style->font().width(visibleEmptyValue());69 float maximumWidth = style->font().width(visibleEmptyValue()); 70 70 for (unsigned index = 0; index < m_symbols.size(); ++index) 71 maxi umWidth = std::max(maxiumWidth, style->font().width(m_symbols[index]));72 style->setMinWidth(Length(maxi umWidth, Fixed));71 maximumWidth = std::max(maximumWidth, style->font().width(m_symbols[index])); 72 style->setMinWidth(Length(maximumWidth, Fixed)); 73 73 return style.release(); 74 74 }
Note:
See TracChangeset
for help on using the changeset viewer.