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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2830003002: Remove redundant WebLocalFrame* parameter from DidChangeScrollOffset (Closed)
Patch Set: Rebase Created 3 years, 8 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/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 7dc906231f16446c4d264ee595964ccc71d348a4..2c181644acc35e9aaf1126f6c5b047741e68405b 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -6956,11 +6956,11 @@ class TestScrolledFrameClient : public FrameTestHelpers::TestWebFrameClient {
bool WasFrameScrolled() const { return did_scroll_frame_; }
// WebFrameClient:
- void DidChangeScrollOffset(WebLocalFrame* frame) override {
- if (frame->Parent())
+ void DidChangeScrollOffset() override {
+ if (Frame()->Parent())
return;
EXPECT_FALSE(did_scroll_frame_);
- FrameView* view = ToWebLocalFrameImpl(frame)->GetFrameView();
+ FrameView* view = ToWebLocalFrameImpl(Frame())->GetFrameView();
// FrameView can be scrolled in FrameView::setFixedVisibleContentRect which
// is called from LocalFrame::createView (before the frame is associated
// with the the view).
« no previous file with comments | « third_party/WebKit/Source/web/tests/VisualViewportTest.cpp ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698