| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |