| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 5264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5275 .c_str()); | 5275 .c_str()); |
| 5276 return result; | 5276 return result; |
| 5277 } | 5277 } |
| 5278 | 5278 |
| 5279 String result(MainThreadScrollingReason::mainThreadScrollingReasonsAsText( | 5279 String result(MainThreadScrollingReason::mainThreadScrollingReasonsAsText( |
| 5280 main_thread_scrolling_reasons_) | 5280 main_thread_scrolling_reasons_) |
| 5281 .c_str()); | 5281 .c_str()); |
| 5282 return result; | 5282 return result; |
| 5283 } | 5283 } |
| 5284 | 5284 |
| 5285 void FrameView::SetViewportIntersectionFromParent( | |
| 5286 const IntRect& viewport_intersection) { | |
| 5287 if (remote_viewport_intersection_ != viewport_intersection) { | |
| 5288 remote_viewport_intersection_ = viewport_intersection; | |
| 5289 ScheduleAnimation(); | |
| 5290 } | |
| 5291 } | |
| 5292 | |
| 5293 IntRect FrameView::RemoteViewportIntersection() { | 5285 IntRect FrameView::RemoteViewportIntersection() { |
| 5294 IntRect intersection(remote_viewport_intersection_); | 5286 IntRect intersection(GetFrame().RemoteViewportIntersection()); |
| 5295 intersection.Move(ScrollOffsetInt()); | 5287 intersection.Move(ScrollOffsetInt()); |
| 5296 return intersection; | 5288 return intersection; |
| 5297 } | 5289 } |
| 5298 | 5290 |
| 5299 void FrameView::MapQuadToAncestorFrameIncludingScrollOffset( | 5291 void FrameView::MapQuadToAncestorFrameIncludingScrollOffset( |
| 5300 LayoutRect& rect, | 5292 LayoutRect& rect, |
| 5301 const LayoutObject* descendant, | 5293 const LayoutObject* descendant, |
| 5302 const LayoutView* ancestor, | 5294 const LayoutView* ancestor, |
| 5303 MapCoordinatesFlags mode) { | 5295 MapCoordinatesFlags mode) { |
| 5304 FloatQuad mapped_quad = descendant->LocalToAncestorQuad( | 5296 FloatQuad mapped_quad = descendant->LocalToAncestorQuad( |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5349 void FrameView::SetAnimationHost( | 5341 void FrameView::SetAnimationHost( |
| 5350 std::unique_ptr<CompositorAnimationHost> host) { | 5342 std::unique_ptr<CompositorAnimationHost> host) { |
| 5351 animation_host_ = std::move(host); | 5343 animation_host_ = std::move(host); |
| 5352 } | 5344 } |
| 5353 | 5345 |
| 5354 LayoutUnit FrameView::CaretWidth() const { | 5346 LayoutUnit FrameView::CaretWidth() const { |
| 5355 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); | 5347 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); |
| 5356 } | 5348 } |
| 5357 | 5349 |
| 5358 } // namespace blink | 5350 } // namespace blink |
| OLD | NEW |