| 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 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1570 if (requiresCompositingForFrame(renderer)) | 1570 if (requiresCompositingForFrame(renderer)) |
| 1571 directReasons |= CompositingReasonIFrame; | 1571 directReasons |= CompositingReasonIFrame; |
| 1572 | 1572 |
| 1573 if (requiresCompositingForBackfaceVisibilityHidden(renderer)) | 1573 if (requiresCompositingForBackfaceVisibilityHidden(renderer)) |
| 1574 directReasons |= CompositingReasonBackfaceVisibilityHidden; | 1574 directReasons |= CompositingReasonBackfaceVisibilityHidden; |
| 1575 | 1575 |
| 1576 if (requiresCompositingForAnimation(renderer)) | 1576 if (requiresCompositingForAnimation(renderer)) |
| 1577 directReasons |= CompositingReasonAnimation; | 1577 directReasons |= CompositingReasonAnimation; |
| 1578 | 1578 |
| 1579 if (requiresCompositingForTransition(renderer)) | 1579 if (requiresCompositingForTransition(renderer)) |
| 1580 directReasons |= CompositingReasonTransition; | 1580 directReasons |= CompositingReasonAnimation; |
| 1581 | 1581 |
| 1582 if (requiresCompositingForFilters(renderer)) | 1582 if (requiresCompositingForFilters(renderer)) |
| 1583 directReasons |= CompositingReasonFilters; | 1583 directReasons |= CompositingReasonFilters; |
| 1584 | 1584 |
| 1585 if (requiresCompositingForPosition(renderer, layer)) | 1585 if (requiresCompositingForPosition(renderer, layer)) |
| 1586 directReasons |= renderer->style()->position() == FixedPosition ? Compos
itingReasonPositionFixed : CompositingReasonPositionSticky; | 1586 directReasons |= renderer->style()->position() == FixedPosition ? Compos
itingReasonPositionFixed : CompositingReasonPositionSticky; |
| 1587 | 1587 |
| 1588 if (requiresCompositingForOverflowScrolling(layer)) | 1588 if (requiresCompositingForOverflowScrolling(layer)) |
| 1589 directReasons |= CompositingReasonOverflowScrollingTouch; | 1589 directReasons |= CompositingReasonOverflowScrollingTouch; |
| 1590 | 1590 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1626 | 1626 |
| 1627 if (reasons & CompositingReasonBackfaceVisibilityHidden) | 1627 if (reasons & CompositingReasonBackfaceVisibilityHidden) |
| 1628 return "backface-visibility: hidden"; | 1628 return "backface-visibility: hidden"; |
| 1629 | 1629 |
| 1630 if (reasons & CompositingReasonClipsCompositingDescendants) | 1630 if (reasons & CompositingReasonClipsCompositingDescendants) |
| 1631 return "clips compositing descendants"; | 1631 return "clips compositing descendants"; |
| 1632 | 1632 |
| 1633 if (reasons & CompositingReasonAnimation) | 1633 if (reasons & CompositingReasonAnimation) |
| 1634 return "animation"; | 1634 return "animation"; |
| 1635 | 1635 |
| 1636 if (reasons & CompositingReasonTransition) | |
| 1637 return "transition"; | |
| 1638 | |
| 1639 if (reasons & CompositingReasonFilters) | 1636 if (reasons & CompositingReasonFilters) |
| 1640 return "filters"; | 1637 return "filters"; |
| 1641 | 1638 |
| 1642 if (reasons & CompositingReasonPositionFixed) | 1639 if (reasons & CompositingReasonPositionFixed) |
| 1643 return "position: fixed"; | 1640 return "position: fixed"; |
| 1644 | 1641 |
| 1645 if (reasons & CompositingReasonPositionSticky) | 1642 if (reasons & CompositingReasonPositionSticky) |
| 1646 return "position: sticky"; | 1643 return "position: sticky"; |
| 1647 | 1644 |
| 1648 if (reasons & CompositingReasonOverflowScrollingTouch) | 1645 if (reasons & CompositingReasonOverflowScrollingTouch) |
| (...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2750 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); | 2747 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); |
| 2751 #if ENABLE(RUBBER_BANDING) | 2748 #if ENABLE(RUBBER_BANDING) |
| 2752 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); | 2749 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); |
| 2753 info.addMember(m_contentShadowLayer, "contentShadowLayer"); | 2750 info.addMember(m_contentShadowLayer, "contentShadowLayer"); |
| 2754 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); | 2751 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); |
| 2755 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); | 2752 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); |
| 2756 #endif | 2753 #endif |
| 2757 } | 2754 } |
| 2758 | 2755 |
| 2759 } // namespace WebCore | 2756 } // namespace WebCore |
| OLD | NEW |