WebCore/ChangeLog

112009-01-28 Adam Treat <adam.treat@torchmobile.com>
22
 3 Reviewed by NOBODY (OOPS!).
 4
 5 https://bugs.webkit.org/show_bug.cgi?id=23588
 6 Patch from George Staikos to add inputmode attribute specified in:
 7 http://www.w3.org/TR/xhtml-basic
 8
 9 * html/HTMLAttributeNames.in:
 10 * html/HTMLInputElement.cpp:
 11 (WebCore::HTMLInputElement::setInputmode):
 12 (WebCore::HTMLInputElement::inputmode):
 13 * html/HTMLInputElement.h:
 14 * html/HTMLInputElement.idl:
 15 * html/HTMLTextAreaElement.cpp:
 16 (WebCore::HTMLTextAreaElement::setInputmode):
 17 (WebCore::HTMLTextAreaElement::inputmode):
 18 * html/HTMLTextAreaElement.h:
 19 * html/HTMLTextAreaElement.idl:
 20
 212009-01-28 Adam Treat <adam.treat@torchmobile.com>
 22
323 Reviewed by Nikolas Zimmermann and George Staikos.
424
525 https://bugs.webkit.org/show_bug.cgi?id=23557

WebCore/html/HTMLAttributeNames.in

@@hspace
7979http_equiv
8080id
8181incremental
 82inputmode
8283ismap
8384keytype
8485label

WebCore/html/HTMLInputElement.cpp

@@bool HTMLInputElement::storesValueSeparateFromAttribute() const
10111011 return false;
10121012}
10131013
 1014void HTMLInputElement::setInputmode(const String& value)
 1015{
 1016 return setAttribute(inputmodeAttr, value);
 1017}
 1018
 1019String HTMLInputElement::inputmode() const
 1020{
 1021 return getAttribute(inputmodeAttr).string();
 1022}
 1023
10141024void* HTMLInputElement::preDispatchEventHandler(Event *evt)
10151025{
10161026 // preventDefault or "return false" are used to reverse the automatic checking/selection we do here.

WebCore/html/HTMLInputElement.h

33 * (C) 1999 Antti Koivisto (koivisto@kde.org)
44 * (C) 2000 Dirk Mueller (mueller@kde.org)
55 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
 6 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
67 *
78 * This library is free software; you can redistribute it and/or
89 * modify it under the terms of the GNU Library General Public

@@public:
109110
110111 String valueWithDefault() const;
111112
 113 String inputmode() const;
 114 void setInputmode(const String&);
 115
112116 virtual void setValueFromRenderer(const String&);
113117 void setFileListFromRenderer(const Vector<String>&);
114118

WebCore/html/HTMLInputElement.idl

11/*
22 * Copyright (C) 2006 Apple Computer, Inc.
33 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
 4 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
45 *
56 * This library is free software; you can redistribute it and/or
67 * modify it under the terms of the GNU Library General Public

@@module html {
4849 attribute [ConvertNullToNullString] DOMString type; // readonly dropped as part of DOM level 2
4950 attribute [ConvertNullToNullString] DOMString useMap;
5051 attribute [ConvertNullToNullString] DOMString value;
 52 attribute [ConvertNullToNullString] DOMString inputmode;
5153 readonly attribute boolean willValidate;
5254 void select();
5355 void click();

WebCore/html/HTMLTextAreaElement.cpp

@@void HTMLTextAreaElement::setDefaultValue(const String& defaultValue)
349349 setValue(value);
350350}
351351
 352void HTMLTextAreaElement::setInputmode(const String& value)
 353{
 354 return setAttribute(inputmodeAttr, value);
 355}
 356
 357String HTMLTextAreaElement::inputmode() const
 358{
 359 return getAttribute(inputmodeAttr).string();
 360}
 361
352362void HTMLTextAreaElement::accessKeyAction(bool)
353363{
354364 focus();

WebCore/html/HTMLTextAreaElement.h

33 * (C) 1999 Antti Koivisto (koivisto@kde.org)
44 * (C) 2000 Dirk Mueller (mueller@kde.org)
55 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
 6 * Copyright (C) 2008-2009 Torch Mobile, Inc.
67 *
78 * This library is free software; you can redistribute it and/or
89 * modify it under the terms of the GNU Library General Public

@@public:
7576 void setValue(const String&);
7677 String defaultValue() const;
7778 void setDefaultValue(const String&);
78 
 79 String inputmode() const;
 80 void setInputmode(const String&);
 81
7982 void rendererWillBeDestroyed();
8083
8184 virtual void accessKeyAction(bool sendToAnyElement);

WebCore/html/HTMLTextAreaElement.idl

11/*
22 * Copyright (C) 2006 Apple Computer, Inc.
33 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
 4 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
45 *
56 * This library is free software; you can redistribute it and/or
67 * modify it under the terms of the GNU Library General Public

@@module html {
3637 attribute long rows;
3738 readonly attribute DOMString type;
3839 attribute [ConvertNullToNullString] DOMString value;
 40 attribute [ConvertNullToNullString] DOMString inputmode;
3941
4042 void select();
4143