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

Side by Side Diff: Source/core/frame/PinchViewport.cpp

Issue 731413002: Adjust DOMWindow properties to emulate old style pinch semantics (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Check for scroll event handling in RAF callback Created 6 years, 1 month 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
« no previous file with comments | « Source/core/frame/PinchViewport.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 FloatPoint clampedOffset(clampOffsetToBoundaries(location)); 193 FloatPoint clampedOffset(clampOffsetToBoundaries(location));
194 194
195 if (clampedOffset != m_offset) { 195 if (clampedOffset != m_offset) {
196 m_offset = clampedOffset; 196 m_offset = clampedOffset;
197 197
198 ScrollingCoordinator* coordinator = frameHost().page().scrollingCoordina tor(); 198 ScrollingCoordinator* coordinator = frameHost().page().scrollingCoordina tor();
199 ASSERT(coordinator); 199 ASSERT(coordinator);
200 coordinator->scrollableAreaScrollLayerDidChange(this); 200 coordinator->scrollableAreaScrollLayerDidChange(this);
201 201
202 Document* document = mainFrame()->document();
203 document->enqueueScrollEventForNode(document);
204
202 valuesChanged = true; 205 valuesChanged = true;
203 } 206 }
204 207
205 if (!valuesChanged) 208 if (!valuesChanged)
206 return; 209 return;
207 210
208 mainFrame()->loader().saveScrollState(); 211 mainFrame()->loader().saveScrollState();
209 212
210 clampToBoundaries(); 213 clampToBoundaries();
211 } 214 }
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 } else if (graphicsLayer == m_rootTransformLayer) { 521 } else if (graphicsLayer == m_rootTransformLayer) {
519 name = "Root Transform Layer"; 522 name = "Root Transform Layer";
520 } else { 523 } else {
521 ASSERT_NOT_REACHED(); 524 ASSERT_NOT_REACHED();
522 } 525 }
523 526
524 return name; 527 return name;
525 } 528 }
526 529
527 } // namespace blink 530 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/PinchViewport.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698