Commit ddc61b50 authored by sfalken's avatar sfalken
Browse files

2007-03-14 Steve Falkenburg <sfalken@apple.com>

        Reviewed by Adam.

        Added missing null check in case this is called on a subframe
        that hasn't started loading.

        * page/Frame.cpp:
        (WebCore::Frame::setMarkedTextMatchesAreHighlighted): Check for a null document.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent af0f8bdf
2007-03-14 Steve Falkenburg <sfalken@apple.com>
Reviewed by Adam.
Added missing null check in case this is called on a subframe
that hasn't started loading.
* page/Frame.cpp:
(WebCore::Frame::setMarkedTextMatchesAreHighlighted): Check for a null document.
2007-03-14 Antti Koivisto <antti@apple.com>
 
Reviewed by Geoff.
......
......@@ -1665,7 +1665,7 @@ bool Frame::markedTextMatchesAreHighlighted() const
void Frame::setMarkedTextMatchesAreHighlighted(bool flag)
{
if (flag == d->m_highlightTextMatches)
if (flag == d->m_highlightTextMatches || !document())
return;
d->m_highlightTextMatches = flag;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment