Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2244)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 1398823004: Switch the page-capturing machinery to use the new hooks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/FrameView.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index b837f722287136d6bb053d693dc844643ccb8794..f2a4129d0bd3ac00f9d88dfd600842707126f8d1 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -839,7 +839,7 @@ inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count)
if (m_isVisuallyNonEmpty)
return;
m_visuallyNonEmptyCharacterCount += count;
- // Use a threshold value to prevent very small amounts of visible content from triggering didFirstVisuallyNonEmptyLayout.
+ // Use a threshold value to prevent very small amounts of visible content from triggering didMeaningfulLayout.
// The first few hundred characters rarely contain the interesting content of the page.
static const unsigned visualCharacterThreshold = 200;
if (m_visuallyNonEmptyCharacterCount > visualCharacterThreshold)
@@ -851,7 +851,7 @@ inline void FrameView::incrementVisuallyNonEmptyPixelCount(const IntSize& size)
if (m_isVisuallyNonEmpty)
return;
m_visuallyNonEmptyPixelCount += size.width() * size.height();
- // Use a threshold value to prevent very small amounts of visible content from triggering didFirstVisuallyNonEmptyLayout
+ // Use a threshold value to prevent very small amounts of visible content from triggering didMeaningfulLayout.
static const unsigned visualPixelThreshold = 32 * 32;
if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
setIsVisuallyNonEmpty();

Powered by Google App Engine
This is Rietveld 408576698