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

Side by Side Diff: third_party/WebKit/Source/core/frame/VisualViewport.cpp

Issue 2237433004: Adds DevTools commands for forced viewport override. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adress Dmitry's comments + sync. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 if (ScrollingCoordinator* coordinator = frameHost().page().scrollingCoor dinator()) 293 if (ScrollingCoordinator* coordinator = frameHost().page().scrollingCoor dinator())
294 coordinator->scrollableAreaScrollLayerDidChange(this); 294 coordinator->scrollableAreaScrollLayerDidChange(this);
295 295
296 if (!frameHost().settings().inertVisualViewport()) { 296 if (!frameHost().settings().inertVisualViewport()) {
297 if (Document* document = mainFrame()->document()) 297 if (Document* document = mainFrame()->document())
298 document->enqueueScrollEventForNode(document); 298 document->enqueueScrollEventForNode(document);
299 } 299 }
300 300
301 enqueueScrollEvent(); 301 enqueueScrollEvent();
302 302
303 mainFrame()->loader().client()->didChangeScrollOffset(); 303 mainFrame()->view()->didChangeScrollOffset();
304 valuesChanged = true; 304 valuesChanged = true;
305 } 305 }
306 306
307 if (!valuesChanged) 307 if (!valuesChanged)
308 return false; 308 return false;
309 309
310 InspectorInstrumentation::didUpdateLayout(mainFrame()); 310 InspectorInstrumentation::didUpdateLayout(mainFrame());
311 mainFrame()->loader().saveScrollState(); 311 mainFrame()->loader().saveScrollState();
312 312
313 clampToBoundaries(); 313 clampToBoundaries();
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 } else if (graphicsLayer == m_rootTransformLayer.get()) { 838 } else if (graphicsLayer == m_rootTransformLayer.get()) {
839 name = "Root Transform Layer"; 839 name = "Root Transform Layer";
840 } else { 840 } else {
841 ASSERT_NOT_REACHED(); 841 ASSERT_NOT_REACHED();
842 } 842 }
843 843
844 return name; 844 return name;
845 } 845 }
846 846
847 } // namespace blink 847 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/inspector/browser_protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698