Add support for the translate attribute in html elements.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Feb 2012 05:42:02 +0000 (05:42 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Feb 2012 05:42:02 +0000 (05:42 +0000)
commit270665ee47bf2d9aec14939d94cbd16734396fba
tree1a9f24c6e82315960bd17ea2927839eaf85e1a94
parent03b920128fbb9e6095a91beb24f429054776adf7
Add support for the translate attribute in html elements.
https://bugs.webkit.org/show_bug.cgi?id=78751

Patch by Pablo Flouret <pablof@motorola.com> on 2012-02-15
Reviewed by Adam Barth.

The translate attribute is used to specify whether an element's
attribute values and the values of its Text node children are to be
translated when the page is localized, or whether to leave them
unchanged.

Details at http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#attr-translate

Source/WebCore:

Test: fast/dom/HTMLElement/translate.html

* html/HTMLAttributeNames.in:
* html/HTMLElement.cpp:
(WebCore::HTMLElement::translateAttributeMode):
(WebCore):
(WebCore::HTMLElement::translate):
(WebCore::HTMLElement::setTranslate):
* html/HTMLElement.h:
(HTMLElement):
* html/HTMLElement.idl:

LayoutTests:

* fast/dom/HTMLElement/translate-expected.txt: Added.
* fast/dom/HTMLElement/translate.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@107883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLElement/translate-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLElement/translate.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLAttributeNames.in
Source/WebCore/html/HTMLElement.cpp
Source/WebCore/html/HTMLElement.h
Source/WebCore/html/HTMLElement.idl