[webkit-reviews] Bug #3360: align="right" on a text input aligns the input field to the right, not the text inside

Grafisch Bureau Creatype studio at creatype.nl
Thu Jun 9 01:36:48 PDT 2005

Attached is a patch to solve bug #3360:

I did not use the cvs-extract tool to generate the patch, because I am 
working on a Windows machine. This is also the reason why was not able to
actually test if this patch solves the bug.

Niels Leenheer
niels.leenheer at gmail.com
-------------- next part --------------
Index: khtml/html/html_formimpl.cpp
RCS file: /cvs/root/WebCore/khtml/html/html_formimpl.cpp,v
retrieving revision 1.161
diff -u -r1.161 html_formimpl.cpp
--- html_formimpl.cpp	2005/05/31 05:48:41	1.161
+++ html_formimpl.cpp	2005/06/09 06:52:27
@@ -1678,7 +1678,8 @@
         addCSSLength(attr, CSS_PROP_MARGIN_RIGHT, attr->value());
     case ATTR_ALIGN:
-        addHTMLAlignment(attr);
+        if (m_render && m_type == IMAGE)
+	        addHTMLAlignment(attr);
     case ATTR_WIDTH:
         addCSSLength(attr, CSS_PROP_WIDTH, attr->value() );

More information about the webkit-reviews mailing list