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

Unified Diff: Source/WebCore/page/Page.cpp

Issue 11875020: Merge 138991 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « Source/WebCore/page/Page.h ('k') | Source/WebCore/page/scrolling/ScrollingCoordinator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/page/Page.cpp
===================================================================
--- Source/WebCore/page/Page.cpp (revision 139630)
+++ Source/WebCore/page/Page.cpp (working copy)
@@ -25,6 +25,7 @@
#include "BackForwardList.h"
#include "Chrome.h"
#include "ChromeClient.h"
+#include "ClientRectList.h"
#include "ContextMenuClient.h"
#include "ContextMenuController.h"
#include "DOMWindow.h"
@@ -269,6 +270,21 @@
return String();
}
+PassRefPtr<ClientRectList> Page::nonFastScrollableRects(const Frame* frame)
+{
+ if (Document* document = m_mainFrame->document())
+ document->updateLayout();
+
+ Vector<IntRect> rects;
+ if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator())
+ rects = scrollingCoordinator->computeNonFastScrollableRegion(frame, IntPoint()).rects();
+
+ Vector<FloatQuad> quads(rects.size());
+ for (size_t i = 0; i < rects.size(); ++i)
+ quads[i] = FloatRect(rects[i]);
+ return ClientRectList::create(quads);
+}
+
struct ViewModeInfo {
const char* name;
Page::ViewMode type;
« no previous file with comments | « Source/WebCore/page/Page.h ('k') | Source/WebCore/page/scrolling/ScrollingCoordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698