Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderLayerBacking.cpp

Issue 21184: WebKit merge 40722:40785 (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 } 610 }
611 611
612 // Map the given point from coordinates in the RenderLayer to GraphicsLayer coor dinates. 612 // Map the given point from coordinates in the RenderLayer to GraphicsLayer coor dinates.
613 FloatPoint RenderLayerBacking::contentsToGraphicsLayerCoordinates(const Graphics Layer* graphicsLayer, const FloatPoint& point) 613 FloatPoint RenderLayerBacking::contentsToGraphicsLayerCoordinates(const Graphics Layer* graphicsLayer, const FloatPoint& point)
614 { 614 {
615 return point - FloatSize(graphicsLayer->offsetFromRenderer()); 615 return point - FloatSize(graphicsLayer->offsetFromRenderer());
616 } 616 }
617 617
618 bool RenderLayerBacking::paintingGoesToWindow() const 618 bool RenderLayerBacking::paintingGoesToWindow() const
619 { 619 {
620 return m_owningLayer->isDocumentLayer(); 620 return m_owningLayer->isRootLayer();
621 } 621 }
622 622
623 void RenderLayerBacking::setContentsNeedDisplay() 623 void RenderLayerBacking::setContentsNeedDisplay()
624 { 624 {
625 if (m_graphicsLayer) 625 if (m_graphicsLayer)
626 m_graphicsLayer->setNeedsDisplay(); 626 m_graphicsLayer->setNeedsDisplay();
627 if (m_contentsLayer) 627 if (m_contentsLayer)
628 m_contentsLayer->setNeedsDisplay(); 628 m_contentsLayer->setNeedsDisplay();
629 } 629 }
630 630
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 case CSSPropertyBackgroundColor: 957 case CSSPropertyBackgroundColor:
958 return AnimatedPropertyBackgroundColor; 958 return AnimatedPropertyBackgroundColor;
959 // It's fine if we see other css properties here; they are just not acce lerated. 959 // It's fine if we see other css properties here; they are just not acce lerated.
960 } 960 }
961 return AnimatedPropertyInvalid; 961 return AnimatedPropertyInvalid;
962 } 962 }
963 963
964 } // namespace WebCore 964 } // namespace WebCore
965 965
966 #endif // USE(ACCELERATED_COMPOSITING) 966 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderLayer.cpp ('k') | third_party/WebKit/WebCore/rendering/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698