OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@gmail.com> | 9 * Christian Biesinger <cbiesinger@gmail.com> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 | 1410 |
1411 static bool layerNeedsCompositedScrolling(PaintLayerScrollableArea::LCDTextMode
mode, const PaintLayer* layer) | 1411 static bool layerNeedsCompositedScrolling(PaintLayerScrollableArea::LCDTextMode
mode, const PaintLayer* layer) |
1412 { | 1412 { |
1413 if (!layer->scrollsOverflow()) | 1413 if (!layer->scrollsOverflow()) |
1414 return false; | 1414 return false; |
1415 | 1415 |
1416 Node* node = layer->enclosingNode(); | 1416 Node* node = layer->enclosingNode(); |
1417 if (node && node->isElementNode() && (toElement(node)->compositorMutableProp
erties() & (CompositorMutableProperty::kScrollTop | CompositorMutableProperty::k
ScrollLeft))) | 1417 if (node && node->isElementNode() && (toElement(node)->compositorMutableProp
erties() & (CompositorMutableProperty::kScrollTop | CompositorMutableProperty::k
ScrollLeft))) |
1418 return true; | 1418 return true; |
1419 | 1419 |
1420 if (mode == PaintLayerScrollableArea::ConsiderLCDText && !layer->compositor(
)->preferCompositingToLCDTextEnabled()) | 1420 if (mode == PaintLayerScrollableArea::ConsiderLCDText && !layer->compositor(
)->preferCompositingToLCDTextEnabled(layer)) |
1421 return false; | 1421 return false; |
1422 | 1422 |
1423 return !layer->hasDescendantWithClipPath() | 1423 return !layer->hasDescendantWithClipPath() |
1424 && !layer->hasAncestorWithClipPath() | 1424 && !layer->hasAncestorWithClipPath() |
1425 && !layer->layoutObject()->style()->hasBorderRadius(); | 1425 && !layer->layoutObject()->style()->hasBorderRadius(); |
1426 } | 1426 } |
1427 | 1427 |
1428 void PaintLayerScrollableArea::updateNeedsCompositedScrolling(LCDTextMode mode) | 1428 void PaintLayerScrollableArea::updateNeedsCompositedScrolling(LCDTextMode mode) |
1429 { | 1429 { |
1430 const bool needsCompositedScrolling = layerNeedsCompositedScrolling(mode, la
yer()); | 1430 const bool needsCompositedScrolling = layerNeedsCompositedScrolling(mode, la
yer()); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1585 } | 1585 } |
1586 | 1586 |
1587 DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager) | 1587 DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager) |
1588 { | 1588 { |
1589 visitor->trace(m_scrollableArea); | 1589 visitor->trace(m_scrollableArea); |
1590 visitor->trace(m_hBar); | 1590 visitor->trace(m_hBar); |
1591 visitor->trace(m_vBar); | 1591 visitor->trace(m_vBar); |
1592 } | 1592 } |
1593 | 1593 |
1594 } // namespace blink | 1594 } // namespace blink |
OLD | NEW |