Commit 0956a81b authored by darin's avatar darin

Reviewed by Eric.

        - fix regression in layout tests

        * dom/dom_elementimpl.cpp: (WebCore::StyledElementImpl::addCSSLength):
        Fix some code that was not properly truncating. I broke it in my
        string change this morning. 



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b6a2ed70
2006-02-27 Darin Adler <darin@apple.com>
Reviewed by Eric.
- fix regression in layout tests
* dom/dom_elementimpl.cpp: (WebCore::StyledElementImpl::addCSSLength):
Fix some code that was not properly truncating. I broke it in my
string change this morning.
2006-02-27 Maciej Stachowiak <mjs@apple.com>
Rubber stamped by Eric.
......
......@@ -1476,7 +1476,7 @@ void StyledElementImpl::addCSSLength(MappedAttributeImpl* attr, int id, const DO
}
if (l != v->length()) {
attr->decl()->setLengthProperty(id, String(v->copy()), false);
attr->decl()->setLengthProperty(id, v->substring(0, l), false);
return;
}
}
......
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