Title: [163995] trunk/Source/WebCore
Revision
163995
Author
[email protected]
Date
2014-02-12 15:14:43 -0800 (Wed, 12 Feb 2014)

Log Message

Document::childrenChanged does not necessarily have a page

Patch by Benjamin Poulain <[email protected]> on 2014-02-12
Rubber stamped by Enrica Casucci.

* dom/Document.cpp:
(WebCore::Document::childrenChanged):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (163994 => 163995)


--- trunk/Source/WebCore/ChangeLog	2014-02-12 23:13:49 UTC (rev 163994)
+++ trunk/Source/WebCore/ChangeLog	2014-02-12 23:14:43 UTC (rev 163995)
@@ -1,3 +1,12 @@
+2014-02-12  Benjamin Poulain  <[email protected]>
+
+        Document::childrenChanged does not necessarily have a page
+
+        Rubber stamped by Enrica Casucci.
+
+        * dom/Document.cpp:
+        (WebCore::Document::childrenChanged):
+
 2014-02-12  Timothy Hatcher  <[email protected]>
 
         Add a missing ": " between the URL and exception in STDOUT logs.

Modified: trunk/Source/WebCore/dom/Document.cpp (163994 => 163995)


--- trunk/Source/WebCore/dom/Document.cpp	2014-02-12 23:13:49 UTC (rev 163994)
+++ trunk/Source/WebCore/dom/Document.cpp	2014-02-12 23:14:43 UTC (rev 163995)
@@ -801,7 +801,8 @@
     // FIXME: Chrome::didReceiveDocType() used to be called only when the doctype changed. We need to check the
     // impact of calling this systematically. If the overhead is negligible, we need to rename didReceiveDocType,
     // otherwise, we need to detect the doc type changes before updating the viewport.
-    page()->chrome().didReceiveDocType(frame());
+    if (Page* page = this->page())
+        page->chrome().didReceiveDocType(frame());
 #endif
 
     Element* newDocumentElement = childrenOfType<Element>(*this).first();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to