2007-01-10 Mitz Pettel <mitz@webkit.org>
Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=9284 Quirksmode (CSS1): Removing inline border styles is impossible Test: fast/css/remove-shorthand.html * css/CSSMutableStyleDeclaration.cpp: (WebCore::PropertyLonghand::PropertyLonghand): Added this structure containing a pointer to an array if properties and the array's length. (WebCore::PropertyLonghand::properties): (WebCore::PropertyLonghand::length): (WebCore::initShorthandMap): Initialize the mapping from shorthand properties to their dependent properties. (WebCore::CSSMutableStyleDeclaration::removeProperty): Changed to check if the property being removed is a shorthand, and if so, to remove all of its dependent properties. (WebCore::CSSMutableStyleDeclaration::removePropertiesInSet): Added a 'notifyChanged' boolean parameter which controls whether this method calls setChanged() if it actually removes any property. * css/CSSMutableStyleDeclaration.h: 2007-01-10 Mitz Pettel <mitz@webkit.org> Reviewed by Darin. - test for http://bugs.webkit.org/show_bug.cgi?id=9284 Quirksmode (CSS1): Removing inline border styles is impossible * fast/css/remove-shorthand-expected.txt: Added. * fast/css/remove-shorthand.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@18753 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
This diff is collapsed.
Please register or sign in to comment