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