[Webkit-unassigned] [Bug 55338] applyInlineStyleToPushDown and removeInlineStyleFromElement should take EditingStyle

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 1 00:38:36 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=55338





--- Comment #7 from Ryosuke Niwa <rniwa at webkit.org>  2011-03-01 00:38:36 PST ---
(From update of attachment 84014)
View in context: https://bugs.webkit.org/attachment.cgi?id=84014&action=review

>> Source/WebCore/editing/ApplyStyleCommand.cpp:1229
>> +       
> 
> Nit: Did you mean to add spaces here?

Oops, I meant to remove the spaces.

>> Source/WebCore/editing/EditingStyle.cpp:327
>> +    m_mutableStyle->setProperty(propertyID, value, important, ec);
> 
> Do we need to check or assert the exception code here?

I don't think we need to given:

void CSSMutableStyleDeclaration::setProperty(int propertyID, const String& value, bool important, ExceptionCode& ec)
{
    ec = 0;
    setProperty(propertyID, value, important, true);
}

>> Source/WebCore/editing/EditingStyle.h:39
>> +#include <wtf/text/WTFString.h>
> 
> Why is this needed?

Because setProperty takes a String reference.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list