RESOLVED FIXED 17259
Element::recalcStyle() needlessly null-checks the result of styleForElement()
https://bugs.webkit.org/show_bug.cgi?id=17259
Summary Element::recalcStyle() needlessly null-checks the result of styleForElement()
mitz
Reported 2008-02-09 10:56:44 PST
Element::recalcStyle() needlessly null-checks the result of styleForElement().
Attachments
Remove unneeded null checks (1.92 KB, patch)
2008-02-09 10:58 PST, mitz
sam: review+
mitz
Comment 1 2008-02-09 10:58:09 PST
Created attachment 19019 [details] Remove unneeded null checks
Sam Weinig
Comment 2 2008-02-09 15:58:12 PST
Comment on attachment 19019 [details] Remove unneeded null checks This looks good to me, but as discussed, a better word than redundant should be used to describe why the null checks aren't needed. Just stating that styleForElement() cannot return null should be sufficient.
mitz
Comment 3 2008-02-09 16:17:05 PST
Note You need to log in before you can comment on or make changes to this bug.