Commit 7d5f6698 authored by ariya@webkit.org's avatar ariya@webkit.org

2009-05-13 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>

    Rubberstamped by Ariya Hidayat.

    Fix coding style: Add {} to contents of if, containing a for loop.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0fad170a
......@@ -908,7 +908,7 @@ QString QWebElement::styleProperty(const QString &name, const ResolveRule rule)
// declarations, as well as embedded and inline style declarations.
DOMWindow* domWindow = m_element->document()->frame()->domWindow();
if (RefPtr<CSSRuleList> rules = domWindow->getMatchedCSSRules(m_element, ""))
if (RefPtr<CSSRuleList> rules = domWindow->getMatchedCSSRules(m_element, "")) {
for (int i = rules->length(); i > 0; --i) {
CSSStyleRule* rule = static_cast<CSSStyleRule*>(rules->item(i - 1));
......@@ -918,6 +918,7 @@ QString QWebElement::styleProperty(const QString &name, const ResolveRule rule)
if (style->getPropertyValue(propID).isEmpty())
style = rule->style();
}
}
return style->getPropertyValue(propID);
}
......
2009-05-13 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
Rubberstamped by Ariya Hidayat.
Fix coding style: Add {} to contents of if, containing a for loop.
* Api/qwebelement.cpp:
(QWebElement::styleProperty):
2009-05-12 Antonio Gomes <antonio.gomes@openbossa.org>
Reviewed by Ariya Hidayat.
......
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