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

Unified Diff: Source/WebCore/html/shadow/DateTimeFieldElement.cpp

Issue 11557024: Merge 136808 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/html/shadow/DateTimeFieldElement.cpp
===================================================================
--- Source/WebCore/html/shadow/DateTimeFieldElement.cpp (revision 137540)
+++ Source/WebCore/html/shadow/DateTimeFieldElement.cpp (working copy)
@@ -144,6 +144,11 @@
appendChild(Text::create(document(), visibleValue()));
}
+bool DateTimeFieldElement::isDateTimeFieldElement() const
+{
+ return true;
+}
+
bool DateTimeFieldElement::isFocusable() const
{
if (isReadOnly())
@@ -168,6 +173,12 @@
return m_fieldOwner ? m_fieldOwner->localeIdentifier() : nullAtom;
}
+float DateTimeFieldElement::maximumWidth(const Font&)
+{
+ const float paddingLeftAndRight = 2; // This should match to html.css.
+ return paddingLeftAndRight;
+}
+
void DateTimeFieldElement::setReadOnly()
{
// Set HTML attribute readonly to change apperance.
« no previous file with comments | « Source/WebCore/html/shadow/DateTimeFieldElement.h ('k') | Source/WebCore/html/shadow/DateTimeNumericFieldElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698