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

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: Created 4 years, 4 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 if (ScrollingCoordinator* coordinator = frameHost().page().scrollingCoor dinator()) 292 if (ScrollingCoordinator* coordinator = frameHost().page().scrollingCoor dinator())
293 coordinator->scrollableAreaScrollLayerDidChange(this); 293 coordinator->scrollableAreaScrollLayerDidChange(this);
294 294
295 if (!frameHost().settings().inertVisualViewport()) { 295 if (!frameHost().settings().inertVisualViewport()) {
296 if (Document* document = mainFrame()->document()) 296 if (Document* document = mainFrame()->document())
297 document->enqueueScrollEventForNode(document); 297 document->enqueueScrollEventForNode(document);
298 } 298 }
299 299
300 enqueueScrollEvent(); 300 enqueueScrollEvent();
301 301
302 frameHost().chromeClient().mainFrameScrollOffsetChanged();
302 mainFrame()->loader().client()->didChangeScrollOffset(); 303 mainFrame()->loader().client()->didChangeScrollOffset();
303 valuesChanged = true; 304 valuesChanged = true;
304 } 305 }
305 306
306 if (!valuesChanged) 307 if (!valuesChanged)
307 return false; 308 return false;
308 309
309 InspectorInstrumentation::didUpdateLayout(mainFrame()); 310 InspectorInstrumentation::didUpdateLayout(mainFrame());
310 mainFrame()->loader().saveScrollState(); 311 mainFrame()->loader().saveScrollState();
311 312
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 } else if (graphicsLayer == m_rootTransformLayer.get()) { 833 } else if (graphicsLayer == m_rootTransformLayer.get()) {
833 name = "Root Transform Layer"; 834 name = "Root Transform Layer";
834 } else { 835 } else {
835 ASSERT_NOT_REACHED(); 836 ASSERT_NOT_REACHED();
836 } 837 }
837 838
838 return name; 839 return name;
839 } 840 }
840 841
841 } // namespace blink 842 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698