REGRESSION(r189555): ImageDocument title no longer includes the size of the image
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jan 2017 20:12:18 +0000 (20:12 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jan 2017 20:12:18 +0000 (20:12 +0000)
https://bugs.webkit.org/show_bug.cgi?id=166876
<rdar://problem/29939970>

Reviewed by Ryosuke Niwa.

Add a code comment to clarify fix that was made in r210536.

* html/ImageDocument.cpp:
(WebCore::ImageDocument::createDocumentStructure):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210556 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/ImageDocument.cpp

index feb02a1..cc8442a 100644 (file)
@@ -1,3 +1,16 @@
+2017-01-10  Chris Dumez  <cdumez@apple.com>
+
+        REGRESSION(r189555): ImageDocument title no longer includes the size of the image
+        https://bugs.webkit.org/show_bug.cgi?id=166876
+        <rdar://problem/29939970>
+
+        Reviewed by Ryosuke Niwa.
+
+        Add a code comment to clarify fix that was made in r210536.
+
+        * html/ImageDocument.cpp:
+        (WebCore::ImageDocument::createDocumentStructure):
+
 2017-01-10  Jer Noble  <jer.noble@apple.com>
 
         Add support for MediaKeys.generateRequest().
index c471332..4ab51fb 100644 (file)
@@ -216,6 +216,7 @@ void ImageDocument::createDocumentStructure()
 
     frame()->injectUserScripts(InjectAtDocumentStart);
 
+    // We need a <head> so that the call to setTitle() later on actually has an <head> to append to <title> to.
     auto head = HTMLHeadElement::create(*this);
     rootElement->appendChild(head);