Changeset 74957 in webkit


Ignore:
Timestamp:
Jan 3, 2011 10:20:17 PM (13 years ago)
Author:
ddkilzer@apple.com
Message:

WebCore: HTML5 Conformance Test failure: approved/xhtml5/object_border_pixel.xhtml
https://bugs.webkit.org/show_bug.cgi?id=48596

Patch by Julie-Jeongeun-Kim <Jeongeun.Kim@obigo.com> on 2011-01-03
Reviewed by Darin Adler.

border attribute was not parsed in HTMLObjectElement.
I added code for it as HTMLImageElement handled.

new test:fast/html/object-border.html

  • html/HTMLObjectElement.cpp:

(WebCore::HTMLObjectElement::parseMappedAttribute):

LayoutTests: HTML5 Conformance Test failure: approved/xhtml5/object_border_pixel.xhtml
https://bugs.webkit.org/show_bug.cgi?id=48596

Patch by Julie-Jeongeun-Kim <Jeongeun.Kim@obigo.com> on 2011-01-03
Reviewed by Darin Adler.

  • fast/html/object-border-expected.txt: Added.
  • fast/html/object-border.html: Added.
  • fast/html/resources/images/blue-border.png: Added.
  • fast/html/resources/images/blue.png: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r74954 r74957  
     12011-01-03  Julie-Jeongeun-Kim  <Jeongeun.Kim@obigo.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        HTML5 Conformance Test failure: approved/xhtml5/object_border_pixel.xhtml
     6        https://bugs.webkit.org/show_bug.cgi?id=48596
     7
     8        * fast/html/object-border-expected.txt: Added.
     9        * fast/html/object-border.html: Added.
     10        * fast/html/resources/images/blue-border.png: Added.
     11        * fast/html/resources/images/blue.png: Added.
     12
    1132010-12-20  Abhishek Arya  <inferno@chromium.org>
    214
  • trunk/WebCore/ChangeLog

    r74956 r74957  
     12011-01-03  Julie-Jeongeun-Kim  <Jeongeun.Kim@obigo.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        HTML5 Conformance Test failure: approved/xhtml5/object_border_pixel.xhtml
     6        https://bugs.webkit.org/show_bug.cgi?id=48596
     7       
     8        border attribute was not parsed in HTMLObjectElement.
     9        I added code for it as HTMLImageElement handled.
     10
     11        new test:fast/html/object-border.html
     12
     13        * html/HTMLObjectElement.cpp:
     14        (WebCore::HTMLObjectElement::parseMappedAttribute):
     15
    1162011-01-03  Darin Adler  <darin@apple.com>
    217
  • trunk/WebCore/html/HTMLObjectElement.cpp

    r73430 r74957  
    2626
    2727#include "Attribute.h"
     28#include "CSSValueKeywords.h"
    2829#include "EventNames.h"
    2930#include "ExceptionCode.h"
     
    114115        }
    115116        m_name = newName;
     117    } else if (attr->name() == borderAttr) {
     118        addCSSLength(attr, CSSPropertyBorderWidth, attr->value().toInt() ? attr->value() : "0");
     119        addCSSProperty(attr, CSSPropertyBorderTopStyle, CSSValueSolid);
     120        addCSSProperty(attr, CSSPropertyBorderRightStyle, CSSValueSolid);
     121        addCSSProperty(attr, CSSPropertyBorderBottomStyle, CSSValueSolid);
     122        addCSSProperty(attr, CSSPropertyBorderLeftStyle, CSSValueSolid);
    116123    } else if (isIdAttributeName(attr->name())) {
    117124        const AtomicString& newId = attr->value();
Note: See TracChangeset for help on using the changeset viewer.