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 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1730 layoutViewItem.layer()->setNeedsCompositingInputsUpdate(); | 1730 layoutViewItem.layer()->setNeedsCompositingInputsUpdate(); |
1731 } | 1731 } |
1732 } | 1732 } |
1733 | 1733 |
1734 bool FrameView::computeCompositedSelection(LocalFrame& frame, | 1734 bool FrameView::computeCompositedSelection(LocalFrame& frame, |
1735 CompositedSelection& selection) { | 1735 CompositedSelection& selection) { |
1736 if (!frame.view() || frame.view()->shouldThrottleRendering()) | 1736 if (!frame.view() || frame.view()->shouldThrottleRendering()) |
1737 return false; | 1737 return false; |
1738 | 1738 |
1739 const VisibleSelection& visibleSelection = frame.selection().selection(); | 1739 const VisibleSelection& visibleSelection = frame.selection().selection(); |
1740 if (visibleSelection.isNone()) | 1740 if (visibleSelection.isNone() || !frame.selection().isHandleVisible()) |
1741 return false; | 1741 return false; |
1742 | 1742 |
1743 // Non-editable caret selections lack any kind of UI affordance, and | 1743 // Non-editable caret selections lack any kind of UI affordance, and |
1744 // needn't be tracked by the client. | 1744 // needn't be tracked by the client. |
1745 if (visibleSelection.isCaret() && !visibleSelection.isContentEditable()) | 1745 if (visibleSelection.isCaret() && !visibleSelection.isContentEditable()) |
1746 return false; | 1746 return false; |
1747 | 1747 |
1748 VisiblePosition visibleStart(visibleSelection.visibleStart()); | 1748 VisiblePosition visibleStart(visibleSelection.visibleStart()); |
1749 RenderedPosition renderedStart(visibleStart); | 1749 RenderedPosition renderedStart(visibleStart); |
1750 renderedStart.positionInGraphicsLayerBacking(selection.start, true); | 1750 renderedStart.positionInGraphicsLayerBacking(selection.start, true); |
(...skipping 2723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4474 } | 4474 } |
4475 | 4475 |
4476 bool FrameView::canThrottleRendering() const { | 4476 bool FrameView::canThrottleRendering() const { |
4477 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) | 4477 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) |
4478 return false; | 4478 return false; |
4479 return m_subtreeThrottled || | 4479 return m_subtreeThrottled || |
4480 (m_hiddenForThrottling && m_crossOriginForThrottling); | 4480 (m_hiddenForThrottling && m_crossOriginForThrottling); |
4481 } | 4481 } |
4482 | 4482 |
4483 } // namespace blink | 4483 } // namespace blink |
OLD | NEW |