| Summary: | Clean up virtual functions in css/ | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
| Component: | CSS | Assignee: | Chris Dumez <cdumez> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | benjamin, commit-queue, kling | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Chris Dumez
2014-10-30 14:20:44 PDT
Created attachment 240696 [details]
Patch
Comment on attachment 240696 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240696&action=review > Source/WebCore/css/CSSRuleList.h:62 > + virtual CSSStyleSheet* styleSheet() const override { return 0; } 0 -> nullptr > Source/WebCore/css/CSSRuleList.h:69 > + virtual CSSRule* item(unsigned index) const override { return index < m_rules.size() ? m_rules[index].get() : 0; } ditto I wonder why it is valid to ask for a rule index > length... Comment on attachment 240696 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240696&action=review >> Source/WebCore/css/CSSRuleList.h:69 >> + virtual CSSRule* item(unsigned index) const override { return index < m_rules.size() ? m_rules[index].get() : 0; } > > ditto > > I wonder why it is valid to ask for a rule index > length... The spec says so: http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRuleList Created attachment 240707 [details]
Patch
Comment on attachment 240707 [details] Patch Clearing flags on attachment: 240707 Committed r175391: <http://trac.webkit.org/changeset/175391> All reviewed patches have been landed. Closing bug. |