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 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1732 finalOpacity *= curr->layoutObject()->opacity(); | 1732 finalOpacity *= curr->layoutObject()->opacity(); |
1733 } | 1733 } |
1734 | 1734 |
1735 return finalOpacity; | 1735 return finalOpacity; |
1736 } | 1736 } |
1737 | 1737 |
1738 Color CompositedDeprecatedPaintLayerMapping::layoutObjectBackgroundColor() const | 1738 Color CompositedDeprecatedPaintLayerMapping::layoutObjectBackgroundColor() const |
1739 { | 1739 { |
1740 LayoutObject* backgroundLayoutObject = layoutObject(); | 1740 LayoutObject* backgroundLayoutObject = layoutObject(); |
1741 if (backgroundLayoutObject->isDocumentElement()) | 1741 if (backgroundLayoutObject->isDocumentElement()) |
1742 backgroundLayoutObject = backgroundLayoutObject->rendererForRootBackgrou
nd(); | 1742 backgroundLayoutObject = backgroundLayoutObject->layoutObjectForRootBack
ground(); |
1743 | 1743 |
1744 return backgroundLayoutObject->resolveColor(CSSPropertyBackgroundColor); | 1744 return backgroundLayoutObject->resolveColor(CSSPropertyBackgroundColor); |
1745 } | 1745 } |
1746 | 1746 |
1747 void CompositedDeprecatedPaintLayerMapping::updateBackgroundColor() | 1747 void CompositedDeprecatedPaintLayerMapping::updateBackgroundColor() |
1748 { | 1748 { |
1749 m_graphicsLayer->setBackgroundColor(layoutObjectBackgroundColor()); | 1749 m_graphicsLayer->setBackgroundColor(layoutObjectBackgroundColor()); |
1750 } | 1750 } |
1751 | 1751 |
1752 bool CompositedDeprecatedPaintLayerMapping::paintsChildren() const | 1752 bool CompositedDeprecatedPaintLayerMapping::paintsChildren() const |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2342 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { | 2342 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { |
2343 name = "Scrolling Block Selection Layer"; | 2343 name = "Scrolling Block Selection Layer"; |
2344 } else { | 2344 } else { |
2345 ASSERT_NOT_REACHED(); | 2345 ASSERT_NOT_REACHED(); |
2346 } | 2346 } |
2347 | 2347 |
2348 return name; | 2348 return name; |
2349 } | 2349 } |
2350 | 2350 |
2351 } // namespace blink | 2351 } // namespace blink |
OLD | NEW |