| 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 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1972 if (!layoutViewItem.isNull()) | 1972 if (!layoutViewItem.isNull()) |
| 1973 layoutViewItem.layer()->setNeedsCompositingInputsUpdate(); | 1973 layoutViewItem.layer()->setNeedsCompositingInputsUpdate(); |
| 1974 } | 1974 } |
| 1975 } | 1975 } |
| 1976 | 1976 |
| 1977 bool FrameView::computeCompositedSelection(LocalFrame& frame, | 1977 bool FrameView::computeCompositedSelection(LocalFrame& frame, |
| 1978 CompositedSelection& selection) { | 1978 CompositedSelection& selection) { |
| 1979 if (!frame.view() || frame.view()->shouldThrottleRendering()) | 1979 if (!frame.view() || frame.view()->shouldThrottleRendering()) |
| 1980 return false; | 1980 return false; |
| 1981 | 1981 |
| 1982 const VisibleSelection& visibleSelection = | 1982 const VisibleSelection& visibleSelection = frame.selection().selection(); |
| 1983 frame.selection().computeVisibleSelectionInDOMTree(); | |
| 1984 if (visibleSelection.isNone() || !frame.selection().isHandleVisible()) | 1983 if (visibleSelection.isNone() || !frame.selection().isHandleVisible()) |
| 1985 return false; | 1984 return false; |
| 1986 | 1985 |
| 1987 // Non-editable caret selections lack any kind of UI affordance, and | 1986 // Non-editable caret selections lack any kind of UI affordance, and |
| 1988 // needn't be tracked by the client. | 1987 // needn't be tracked by the client. |
| 1989 if (visibleSelection.isCaret() && !visibleSelection.isContentEditable()) | 1988 if (visibleSelection.isCaret() && !visibleSelection.isContentEditable()) |
| 1990 return false; | 1989 return false; |
| 1991 | 1990 |
| 1992 VisiblePosition visibleStart(visibleSelection.visibleStart()); | 1991 VisiblePosition visibleStart(visibleSelection.visibleStart()); |
| 1993 RenderedPosition renderedStart(visibleStart); | 1992 RenderedPosition renderedStart(visibleStart); |
| (...skipping 3165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5159 std::unique_ptr<CompositorAnimationTimeline> timeline) { | 5158 std::unique_ptr<CompositorAnimationTimeline> timeline) { |
| 5160 m_animationTimeline = std::move(timeline); | 5159 m_animationTimeline = std::move(timeline); |
| 5161 } | 5160 } |
| 5162 | 5161 |
| 5163 void FrameView::setAnimationHost( | 5162 void FrameView::setAnimationHost( |
| 5164 std::unique_ptr<CompositorAnimationHost> host) { | 5163 std::unique_ptr<CompositorAnimationHost> host) { |
| 5165 m_animationHost = std::move(host); | 5164 m_animationHost = std::move(host); |
| 5166 } | 5165 } |
| 5167 | 5166 |
| 5168 } // namespace blink | 5167 } // namespace blink |
| OLD | NEW |