| Summary: | Use is<>() / downcast<>() for StyleSheet subclasses | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
| Component: | CSS | Assignee: | Chris Dumez <cdumez> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | benjamin, commit-queue, darin, kling, rniwa | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | 137056 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Chris Dumez
2014-10-04 21:51:38 PDT
Created attachment 239291 [details]
Patch
Comment on attachment 239291 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=239291&action=review > Source/WebCore/dom/DocumentStyleSheetCollection.cpp:411 > for (unsigned i = 0; i < sheets.size(); ++i) { Let's update the loop too. > Source/WebCore/dom/DocumentStyleSheetCollection.cpp:413 > + if (!is<CSSStyleSheet>(*sheets[i])) > continue; I would move this after sheets[i]->disabled() to reduce the span between is<> and downcast<>, making it easier to follow the flow. Created attachment 239302 [details]
Patch
Comment on attachment 239302 [details] Patch Clearing flags on attachment: 239302 Committed r174332: <http://trac.webkit.org/changeset/174332> All reviewed patches have been landed. Closing bug. |