OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 // Changes to either the internal hierarchy or the mask layer have an impact | 723 // Changes to either the internal hierarchy or the mask layer have an impact |
724 // on painting phases, so we need to update when either are updated. | 724 // on painting phases, so we need to update when either are updated. |
725 if (layerConfigChanged || maskLayerChanged) | 725 if (layerConfigChanged || maskLayerChanged) |
726 updatePaintingPhases(); | 726 updatePaintingPhases(); |
727 | 727 |
728 updateElementIdAndCompositorMutableProperties(); | 728 updateElementIdAndCompositorMutableProperties(); |
729 | 729 |
730 m_graphicsLayer->setHasWillChangeTransformHint( | 730 m_graphicsLayer->setHasWillChangeTransformHint( |
731 style.hasWillChangeTransformHint()); | 731 style.hasWillChangeTransformHint()); |
732 | 732 |
733 m_owningLayer.update3DTransformedDescendantStatus(); | |
734 if (style.preserves3D() && style.hasOpacity() && | 733 if (style.preserves3D() && style.hasOpacity() && |
735 m_owningLayer.has3DTransformedDescendant()) | 734 m_owningLayer.has3DTransformedDescendant()) |
736 UseCounter::count(layoutObject->document(), | 735 UseCounter::count(layoutObject->document(), |
737 UseCounter::OpacityWithPreserve3DQuirk); | 736 UseCounter::OpacityWithPreserve3DQuirk); |
738 | 737 |
739 return layerConfigChanged; | 738 return layerConfigChanged; |
740 } | 739 } |
741 | 740 |
742 static IntRect clipBox(LayoutBox* layoutObject) { | 741 static IntRect clipBox(LayoutBox* layoutObject) { |
743 // TODO(chrishtr): pixel snapping is most likely incorrect here. | 742 // TODO(chrishtr): pixel snapping is most likely incorrect here. |
(...skipping 2636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3380 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { | 3379 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { |
3381 name = "Decoration Layer"; | 3380 name = "Decoration Layer"; |
3382 } else { | 3381 } else { |
3383 ASSERT_NOT_REACHED(); | 3382 ASSERT_NOT_REACHED(); |
3384 } | 3383 } |
3385 | 3384 |
3386 return name; | 3385 return name; |
3387 } | 3386 } |
3388 | 3387 |
3389 } // namespace blink | 3388 } // namespace blink |
OLD | NEW |