OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1564 if (requiresCompositingForFrame(renderer)) | 1564 if (requiresCompositingForFrame(renderer)) |
1565 directReasons |= CompositingReasonIFrame; | 1565 directReasons |= CompositingReasonIFrame; |
1566 | 1566 |
1567 if (requiresCompositingForBackfaceVisibilityHidden(renderer)) | 1567 if (requiresCompositingForBackfaceVisibilityHidden(renderer)) |
1568 directReasons |= CompositingReasonBackfaceVisibilityHidden; | 1568 directReasons |= CompositingReasonBackfaceVisibilityHidden; |
1569 | 1569 |
1570 if (requiresCompositingForAnimation(renderer)) | 1570 if (requiresCompositingForAnimation(renderer)) |
1571 directReasons |= CompositingReasonAnimation; | 1571 directReasons |= CompositingReasonAnimation; |
1572 | 1572 |
1573 if (requiresCompositingForTransition(renderer)) | 1573 if (requiresCompositingForTransition(renderer)) |
1574 directReasons |= CompositingReasonTransition; | 1574 directReasons |= CompositingReasonAnimation; |
1575 | 1575 |
1576 if (requiresCompositingForFilters(renderer)) | 1576 if (requiresCompositingForFilters(renderer)) |
1577 directReasons |= CompositingReasonFilters; | 1577 directReasons |= CompositingReasonFilters; |
1578 | 1578 |
1579 if (requiresCompositingForPosition(renderer, layer)) | 1579 if (requiresCompositingForPosition(renderer, layer)) |
1580 directReasons |= renderer->style()->position() == FixedPosition ? Compos
itingReasonPositionFixed : CompositingReasonPositionSticky; | 1580 directReasons |= renderer->style()->position() == FixedPosition ? Compos
itingReasonPositionFixed : CompositingReasonPositionSticky; |
1581 | 1581 |
1582 if (requiresCompositingForOverflowScrolling(layer)) | 1582 if (requiresCompositingForOverflowScrolling(layer)) |
1583 directReasons |= CompositingReasonOverflowScrollingTouch; | 1583 directReasons |= CompositingReasonOverflowScrollingTouch; |
1584 | 1584 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 | 1620 |
1621 if (reasons & CompositingReasonBackfaceVisibilityHidden) | 1621 if (reasons & CompositingReasonBackfaceVisibilityHidden) |
1622 return "backface-visibility: hidden"; | 1622 return "backface-visibility: hidden"; |
1623 | 1623 |
1624 if (reasons & CompositingReasonClipsCompositingDescendants) | 1624 if (reasons & CompositingReasonClipsCompositingDescendants) |
1625 return "clips compositing descendants"; | 1625 return "clips compositing descendants"; |
1626 | 1626 |
1627 if (reasons & CompositingReasonAnimation) | 1627 if (reasons & CompositingReasonAnimation) |
1628 return "animation"; | 1628 return "animation"; |
1629 | 1629 |
1630 if (reasons & CompositingReasonTransition) | |
1631 return "transition"; | |
1632 | |
1633 if (reasons & CompositingReasonFilters) | 1630 if (reasons & CompositingReasonFilters) |
1634 return "filters"; | 1631 return "filters"; |
1635 | 1632 |
1636 if (reasons & CompositingReasonPositionFixed) | 1633 if (reasons & CompositingReasonPositionFixed) |
1637 return "position: fixed"; | 1634 return "position: fixed"; |
1638 | 1635 |
1639 if (reasons & CompositingReasonPositionSticky) | 1636 if (reasons & CompositingReasonPositionSticky) |
1640 return "position: sticky"; | 1637 return "position: sticky"; |
1641 | 1638 |
1642 if (reasons & CompositingReasonOverflowScrollingTouch) | 1639 if (reasons & CompositingReasonOverflowScrollingTouch) |
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2744 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); | 2741 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); |
2745 #if ENABLE(RUBBER_BANDING) | 2742 #if ENABLE(RUBBER_BANDING) |
2746 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); | 2743 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); |
2747 info.addMember(m_contentShadowLayer, "contentShadowLayer"); | 2744 info.addMember(m_contentShadowLayer, "contentShadowLayer"); |
2748 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); | 2745 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); |
2749 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); | 2746 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); |
2750 #endif | 2747 #endif |
2751 } | 2748 } |
2752 | 2749 |
2753 } // namespace WebCore | 2750 } // namespace WebCore |
OLD | NEW |