Summary: | Remove unneeded frame check in FrameView::detachCustomScrollbars | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Julien Chaffraix <jchaffraix> | ||||
Component: | Frames | Assignee: | Julien Chaffraix <jchaffraix> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | andersca, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Julien Chaffraix
2011-11-09 17:48:50 PST
Created attachment 114412 [details]
Trivial change: remove the check.
Comment on attachment 114412 [details]
Trivial change: remove the check.
Can you remove this because m_frame is never going to be null, or because m_frame is never dereferenced? If it is because m_frame is never going to be null, you can assert that.
(In reply to comment #2) > (From update of attachment 114412 [details]) > Can you remove this because m_frame is never going to be null, or because m_frame is never dereferenced? If it is because m_frame is never going to be null, you can assert that. The latter I am afraid: AFAICT this check was introduced because we would crash if we did not check the Frame but the code has changed and this check is not needed anymore. Comment on attachment 114412 [details] Trivial change: remove the check. Clearing flags on attachment: 114412 Committed r100014: <http://trac.webkit.org/changeset/100014> All reviewed patches have been landed. Closing bug. |