Title: [92264] trunk/Source/WebCore
Revision
92264
Author
[email protected]
Date
2011-08-03 01:20:41 -0700 (Wed, 03 Aug 2011)

Log Message

https://bugs.webkit.org/show_bug.cgi?id=65599
Image loads should trigger didFirstVisuallyNonEmptyLayout more easily

Reviewed by Dan Bernstein.

Tweak the heuristic pixel count so logo-sized images trigger didFirstVisuallyNonEmptyLayout.

* page/FrameView.h:
(WebCore::FrameView::incrementVisuallyNonEmptyPixelCount):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (92263 => 92264)


--- trunk/Source/WebCore/ChangeLog	2011-08-03 07:43:44 UTC (rev 92263)
+++ trunk/Source/WebCore/ChangeLog	2011-08-03 08:20:41 UTC (rev 92264)
@@ -1,3 +1,15 @@
+2011-08-03  Antti Koivisto  <[email protected]>
+
+        https://bugs.webkit.org/show_bug.cgi?id=65599
+        Image loads should trigger didFirstVisuallyNonEmptyLayout more easily
+
+        Reviewed by Dan Bernstein.
+
+        Tweak the heuristic pixel count so logo-sized images trigger didFirstVisuallyNonEmptyLayout.
+
+        * page/FrameView.h:
+        (WebCore::FrameView::incrementVisuallyNonEmptyPixelCount):
+
 2011-08-03  Takashi Toyoshima  <[email protected]>
 
         WebSocket: Could not handle zero length text frame.

Modified: trunk/Source/WebCore/page/FrameView.h (92263 => 92264)


--- trunk/Source/WebCore/page/FrameView.h	2011-08-03 07:43:44 UTC (rev 92263)
+++ trunk/Source/WebCore/page/FrameView.h	2011-08-03 08:20:41 UTC (rev 92264)
@@ -474,7 +474,7 @@
         return;
     m_visuallyNonEmptyPixelCount += size.width() * size.height();
     // Use a threshold value to prevent very small amounts of visible content from triggering didFirstVisuallyNonEmptyLayout
-    static const unsigned visualPixelThreshold = 256 * 256;
+    static const unsigned visualPixelThreshold = 32 * 32;
     if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
         setIsVisuallyNonEmpty();
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to