Commit 7eaa01a4 authored by justing's avatar justing

Build fix

        
        * editing/markup.cpp:
        (WebCore::startMarkup):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20543 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7d3dbfed
2007-03-27 Justin Garcia <justin.garcia@apple.com>
Build fix
* editing/markup.cpp:
(WebCore::startMarkup):
2007-03-27 Justin Garcia <justin.garcia@apple.com>
Reviewed by darin
......
......@@ -205,8 +205,9 @@ static DeprecatedString startMarkup(const Node *node, const Range *range, EAnnot
for (unsigned int i = 0; i < length; i++) {
Attribute *attr = attrs->attributeItem(i);
String value = attr->value();
if (attr->name() == styleAttr && convertBlocksToInlines) {
RefPtr<CSSMutableStyleDeclaration> inlineStyle = static_cast<const HTMLElement*>(el)->getInlineStyleDecl()->copy();
if (attr->name() == styleAttr && convertBlocksToInlines && el->isHTMLElement()) {
Element* element = const_cast<Element*>(el);
RefPtr<CSSMutableStyleDeclaration> inlineStyle = static_cast<HTMLElement*>(element)->getInlineStyleDecl()->copy();
inlineStyle->setProperty(CSS_PROP_DISPLAY, CSS_VAL_INLINE, true);
value = inlineStyle->cssText();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment