Title: [150177] trunk/Source/WebCore
Revision
150177
Author
[email protected]
Date
2013-05-15 22:56:10 -0700 (Wed, 15 May 2013)

Log Message

Fix a thinko.

We want to invalidate the file icon loader if it exists, not create it!

* html/FileInputType.cpp:
(WebCore::FileInputType::requestIcon):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (150176 => 150177)


--- trunk/Source/WebCore/ChangeLog	2013-05-16 04:37:28 UTC (rev 150176)
+++ trunk/Source/WebCore/ChangeLog	2013-05-16 05:56:10 UTC (rev 150177)
@@ -1,3 +1,12 @@
+2013-05-15  Anders Carlsson  <[email protected]>
+
+        Fix a thinko.
+
+        We want to invalidate the file icon loader if it exists, not create it!
+
+        * html/FileInputType.cpp:
+        (WebCore::FileInputType::requestIcon):
+
 2013-05-15  Darin Adler  <[email protected]>
 
         Move drag-specific Clipboard functions inside ENABLE(DRAG_SUPPORT)

Modified: trunk/Source/WebCore/html/FileInputType.cpp (150176 => 150177)


--- trunk/Source/WebCore/html/FileInputType.cpp	2013-05-16 04:37:28 UTC (rev 150176)
+++ trunk/Source/WebCore/html/FileInputType.cpp	2013-05-16 05:56:10 UTC (rev 150177)
@@ -343,8 +343,10 @@
         return;
 
     if (m_fileIconLoader)
-        m_fileIconLoader = FileIconLoader::create(this);
+        m_fileIconLoader->invalidate();
 
+    m_fileIconLoader = FileIconLoader::create(this);
+
     chrome->loadIconForFiles(paths, m_fileIconLoader.get());
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to