| OLD | NEW |
| 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 Loading... |
| 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 mainFrame()->loader().client()->didChangeScrollOffset(); | 302 mainFrame()->view()->didChangeScrollOffset(); |
| 303 valuesChanged = true; | 303 valuesChanged = true; |
| 304 } | 304 } |
| 305 | 305 |
| 306 if (!valuesChanged) | 306 if (!valuesChanged) |
| 307 return false; | 307 return false; |
| 308 | 308 |
| 309 InspectorInstrumentation::didUpdateLayout(mainFrame()); | 309 InspectorInstrumentation::didUpdateLayout(mainFrame()); |
| 310 mainFrame()->loader().saveScrollState(); | 310 mainFrame()->loader().saveScrollState(); |
| 311 | 311 |
| 312 clampToBoundaries(); | 312 clampToBoundaries(); |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 } else if (graphicsLayer == m_rootTransformLayer.get()) { | 832 } else if (graphicsLayer == m_rootTransformLayer.get()) { |
| 833 name = "Root Transform Layer"; | 833 name = "Root Transform Layer"; |
| 834 } else { | 834 } else { |
| 835 ASSERT_NOT_REACHED(); | 835 ASSERT_NOT_REACHED(); |
| 836 } | 836 } |
| 837 | 837 |
| 838 return name; | 838 return name; |
| 839 } | 839 } |
| 840 | 840 |
| 841 } // namespace blink | 841 } // namespace blink |
| OLD | NEW |