Changeset 157384 in webkit


Ignore:
Timestamp:
Oct 13, 2013, 3:06:47 PM (12 years ago)
Author:
akling@apple.com
Message:

Uncrashify Document::head() too. (Why am I even awake?)

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r157383 r157384  
     12013-10-13  Andreas Kling  <akling@apple.com>
     2
     3        Uncrashify Document::head() too. (Why am I even awake?)
     4
    152013-10-13  Andreas Kling  <akling@apple.com>
    26
  • trunk/Source/WebCore/dom/Document.cpp

    r157383 r157384  
    22762276HTMLHeadElement* Document::head()
    22772277{
    2278     return childrenOfType<HTMLHeadElement>(documentElement()).first();
     2278    if (auto element = documentElement())
     2279        return childrenOfType<HTMLHeadElement>(element).first();
     2280    return nullptr;
    22792281}
    22802282
Note: See TracChangeset for help on using the changeset viewer.