Changeset 18523 in webkit
- Timestamp:
- Jan 2, 2007 6:12:09 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r18522 r18523 1 2007-01-02 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Darin. 4 5 Testcases for http://bugs.webkit.org/show_bug.cgi?id=3360 6 7 * fast/forms/input-align-expected.checksum: Added. 8 * fast/forms/input-align-expected.png: Added. 9 * fast/forms/input-align-expected.txt: Added. 10 * fast/forms/input-align-image-expected.checksum: Added. 11 * fast/forms/input-align-image-expected.png: Added. 12 * fast/forms/input-align-image-expected.txt: Added. 13 * fast/forms/input-align-image.html: Added. 14 * fast/forms/input-align.html: Added. 15 1 16 2007-01-02 Nikolas Zimmermann <zimmermann@kde.org> 2 17 -
trunk/WebCore/ChangeLog
r18521 r18523 1 2007-01-02 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Darin. 4 5 Patch for http://bugs.webkit.org/show_bug.cgi?id=3360 6 align="right" on a text input aligns the input field to the right 7 8 Don't map align if input type is not 'image'. 9 10 Test: fast/forms/input-align-image.html 11 Test: fast/forms/input-align.html 12 13 * WebCore.xcodeproj/project.pbxproj: 14 * html/HTMLInputElement.cpp: 15 (WebCore::HTMLInputElement::setInputType): 16 (WebCore::HTMLInputElement::mapToEntry): 17 (WebCore::HTMLInputElement::parseMappedAttribute): 18 1 19 2007-01-02 Nikolas Zimmermann <zimmermann@kde.org> 2 20 -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r18521 r18523 7863 7863 A871DE1F0A152AC800B12A68 /* HTMLFrameElement.h */, 7864 7864 855542950AA4938800BA89F2 /* HTMLFrameElement.idl */, 7865 14FFE31C0AE1963300136BF5 /* HTMLFrameElementBase.cpp */, 7866 14FFE31B0AE1963300136BF5 /* HTMLFrameElementBase.h */, 7867 93E2425E0B2B509500C732A1 /* HTMLFrameOwnerElement.cpp */, 7865 7868 93E241FE0B2B4E4000C732A1 /* HTMLFrameOwnerElement.h */, 7866 93E2425E0B2B509500C732A1 /* HTMLFrameOwnerElement.cpp */,7867 7869 A871DE220A152AC800B12A68 /* HTMLFrameSetElement.cpp */, 7868 7870 A871DE1C0A152AC800B12A68 /* HTMLFrameSetElement.h */, … … 8001 8003 BCCD74E40A4C8DDF005FDA6D /* HTMLViewSourceDocument.cpp */, 8002 8004 BCCD74DB0A4C8D35005FDA6D /* HTMLViewSourceDocument.h */, 8003 14FFE31B0AE1963300136BF5 /* HTMLFrameElementBase.h */,8004 14FFE31C0AE1963300136BF5 /* HTMLFrameElementBase.cpp */,8005 8005 ); 8006 8006 path = html; -
trunk/WebCore/html/HTMLInputElement.cpp
r18384 r18523 7 7 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 8 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 9 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 9 10 * 10 11 * This library is free software; you can redistribute it and/or … … 322 323 if (MappedAttribute* width = map->getAttributeItem(widthAttr)) 323 324 attributeChanged(width, false); 325 if (MappedAttribute* align = map->getAttributeItem(alignAttr)) 326 attributeChanged(align, false); 324 327 } 325 328 … … 660 663 return false; 661 664 } 662 665 663 666 if (attrName == alignAttr) { 664 result = eReplaced; // Share with <img> since the alignment behavior is the same. 665 return false; 666 } 667 667 if (inputType() == IMAGE) { 668 // Share with <img> since the alignment behavior is the same. 669 result = eReplaced; 670 return false; 671 } 672 } 673 668 674 return HTMLElement::mapToEntry(attrName, result); 669 675 } … … 733 739 addCSSLength(attr, CSS_PROP_MARGIN_RIGHT, attr->value()); 734 740 } else if (attr->name() == alignAttr) { 735 addHTMLAlignment(attr); 741 if (inputType() == IMAGE) 742 addHTMLAlignment(attr); 736 743 } else if (attr->name() == widthAttr) { 737 744 if (respectHeightAndWidthAttrs())
Note: See TracChangeset
for help on using the changeset viewer.