Changeset 149800 in webkit


Ignore:
Timestamp:
May 9, 2013 6:11:30 AM (11 years ago)
Author:
akling@apple.com
Message:

[Qt][WK1]REGRESSION(r149532) tst_qwebelement and tst_qwebframe API tests crash.
<http://webkit.org/b/115855>

Fix obvious off-by-one mistake.

  • Api/qwebelement.cpp:

(QWebElement::styleProperty):

Location:
trunk/Source/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/qt/Api/qwebelement.cpp

    r149671 r149800  
    837837        Vector<RefPtr<StyleRuleBase> > rules = doc->ensureStyleResolver()->styleRulesForElement(m_element, StyleResolver::AuthorCSSRules | StyleResolver::CrossOriginCSSRules);
    838838        for (int i = rules.size(); i > 0; --i) {
    839             if (!rules[i]->isStyleRule())
     839            if (!rules[i - 1]->isStyleRule())
    840840                continue;
    841841            StyleRule* styleRule = static_cast<StyleRule*>(rules[i - 1].get());
  • trunk/Source/WebKit/qt/ChangeLog

    r149671 r149800  
     12013-05-09  Andreas Kling  <akling@apple.com>
     2
     3        [Qt][WK1]REGRESSION(r149532) tst_qwebelement and tst_qwebframe API tests crash.
     4        <http://webkit.org/b/115855>
     5
     6        Fix obvious off-by-one mistake.
     7
     8        * Api/qwebelement.cpp:
     9        (QWebElement::styleProperty):
     10
    1112013-05-07  Allan Sandfeld Jensen  <allan.jensen@digia.com>
    212
Note: See TracChangeset for help on using the changeset viewer.