⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 136215 in webkit


Ignore:
Timestamp:
Nov 30, 2012, 1:02:17 AM (14 years ago)
Author:
tkent@chromium.org
Message:

Fix typos in DateTimeNumericFieldElement.cpp and DateTimeSymbolicFieldElement.cpp
​https://bugs.webkit.org/show_bug.cgi?id=103717

Reviewed by Hajime Morita.

  • html/shadow/DateTimeNumericFieldElement.cpp:

(WebCore::DateTimeNumericFieldElement::customStyleForRenderer):
maximum, not maxium.

  • html/shadow/DateTimeSymbolicFieldElement.cpp:

(WebCore::DateTimeSymbolicFieldElement::customStyleForRenderer): Ditto.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r136212 r136215  
     12012-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
    1142012-11-30  Halton Huo  <halton.huo@intel.com>
    215
  • trunk/Source/WebCore/html/shadow/DateTimeNumericFieldElement.cpp

    r134239 r136215  
    8080    RefPtr<RenderStyle> originalStyle = document()->styleResolver()->styleForElement(this);
    8181    RefPtr<RenderStyle> style = RenderStyle::clone(originalStyle.get());
    82     float maxiumWidth = style->font().width(m_placeholder);
    83     maxiumWidth = std::max(maxiumWidth, style->font().width(formatValue(maximum())));
    84     maxiumWidth = std::max(maxiumWidth, style->font().width(value()));
    85     style->setMinWidth(Length(maxiumWidth, 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));
    8686    return style.release();
    8787}
  • trunk/Source/WebCore/html/shadow/DateTimeSymbolicFieldElement.cpp

    r136205 r136215  
    6767    RefPtr<RenderStyle> originalStyle = document()->styleResolver()->styleForElement(this);
    6868    RefPtr<RenderStyle> style = RenderStyle::clone(originalStyle.get());
    69     float maxiumWidth = style->font().width(visibleEmptyValue());
     69    float maximumWidth = style->font().width(visibleEmptyValue());
    7070    for (unsigned index = 0; index < m_symbols.size(); ++index)
    71         maxiumWidth = std::max(maxiumWidth, style->font().width(m_symbols[index]));
    72     style->setMinWidth(Length(maxiumWidth, Fixed));
     71        maximumWidth = std::max(maximumWidth, style->font().width(m_symbols[index]));
     72    style->setMinWidth(Length(maximumWidth, Fixed));
    7373    return style.release();
    7474}
Note: See TracChangeset for help on using the changeset viewer.