[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

commit-queue at webkit.org commit-queue at webkit.org
Wed Dec 22 11:17:48 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 086284f5b2a1437010b039a045a804fabea6898c
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Jul 16 22:59:18 2010 +0000

    2010-07-16  Satish Sampath  <satish at chromium.org>
    
            Reviewed by Anders Carlsson.
    
            Add speech attribute to IDL for enabling access from JS.
            https://bugs.webkit.org/show_bug.cgi?id=42483
    
            No tests added, this change is a pre-requisite for future layout tests.
    
            * html/HTMLInputElement.cpp:
            (WebCore::HTMLInputElement::parseMappedAttribute): Update the renderer when speech attribute changes.
            * html/HTMLInputElement.idl: Added the speech attribute to IDL.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63594 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 612b1e2..fbc0725 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+2010-07-16  Satish Sampath  <satish at chromium.org>
+
+        Reviewed by Anders Carlsson.
+
+        Add speech attribute to IDL for enabling access from JS.
+        https://bugs.webkit.org/show_bug.cgi?id=42483
+
+        No tests added, this change is a pre-requisite for future layout tests.
+
+        * html/HTMLInputElement.cpp:
+        (WebCore::HTMLInputElement::parseMappedAttribute): Update the renderer when speech attribute changes.
+        * html/HTMLInputElement.idl: Added the speech attribute to IDL.
+
 2010-07-16  Fady Samuel  <fsamuel at chromium.org>
 
         Reviewed by David Levin.
diff --git a/WebCore/html/HTMLInputElement.cpp b/WebCore/html/HTMLInputElement.cpp
index d1023ed..b7ad118 100644
--- a/WebCore/html/HTMLInputElement.cpp
+++ b/WebCore/html/HTMLInputElement.cpp
@@ -1188,6 +1188,13 @@ void HTMLInputElement::parseMappedAttribute(Attribute* attr)
         m_hasNonEmptyList = !attr->isEmpty();
         // FIXME: we need to tell this change to a renderer if the attribute affects the appearance.
 #endif
+#if ENABLE(INPUT_SPEECH)
+    else if (attr->name() == speechAttr) {
+      if (renderer())
+          renderer()->updateFromElement();
+      setNeedsStyleRecalc();
+    }
+#endif
     else
         HTMLTextFormControlElement::parseMappedAttribute(attr);
 }
diff --git a/WebCore/html/HTMLInputElement.idl b/WebCore/html/HTMLInputElement.idl
index 667358a..c66e775 100644
--- a/WebCore/html/HTMLInputElement.idl
+++ b/WebCore/html/HTMLInputElement.idl
@@ -98,6 +98,10 @@ module html {
 
         readonly attribute FileList files;
         readonly attribute NodeList labels;
+
+#if defined(ENABLE_INPUT_SPEECH) && ENABLE_INPUT_SPEECH
+        attribute [Reflect] boolean speech;
+#endif
     };
 
 }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list