RESOLVED FIXED 138227
Make CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement() faster
https://bugs.webkit.org/show_bug.cgi?id=138227
Summary Make CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement() faster
Chris Dumez
Reported 2014-10-30 13:37:36 PDT
CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement() currently does a lot of if checks, even though some of them are mutually exclusive. We can reduce the amount of checks by using "else ifs" instead of ifs where appropriate.
Attachments
Patch (8.17 KB, patch)
2014-10-30 14:24 PDT, Chris Dumez
no flags
Patch (8.20 KB, patch)
2014-10-30 14:38 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2014-10-30 14:24:14 PDT
Chris Dumez
Comment 2 2014-10-30 14:38:58 PDT
WebKit Commit Bot
Comment 3 2014-10-31 14:43:30 PDT
Comment on attachment 240703 [details] Patch Clearing flags on attachment: 240703 Committed r175427: <http://trac.webkit.org/changeset/175427>
WebKit Commit Bot
Comment 4 2014-10-31 14:43:34 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.