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

Side by Side Diff: sky/engine/core/rendering/RenderLayer.cpp

Issue 686903003: Remove RenderPart. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "core/frame/LocalFrame.h" 51 #include "core/frame/LocalFrame.h"
52 #include "core/frame/Settings.h" 52 #include "core/frame/Settings.h"
53 #include "core/page/Page.h" 53 #include "core/page/Page.h"
54 #include "core/page/scrolling/ScrollingCoordinator.h" 54 #include "core/page/scrolling/ScrollingCoordinator.h"
55 #include "core/rendering/FilterEffectRenderer.h" 55 #include "core/rendering/FilterEffectRenderer.h"
56 #include "core/rendering/HitTestRequest.h" 56 #include "core/rendering/HitTestRequest.h"
57 #include "core/rendering/HitTestResult.h" 57 #include "core/rendering/HitTestResult.h"
58 #include "core/rendering/HitTestingTransformState.h" 58 #include "core/rendering/HitTestingTransformState.h"
59 #include "core/rendering/RenderGeometryMap.h" 59 #include "core/rendering/RenderGeometryMap.h"
60 #include "core/rendering/RenderInline.h" 60 #include "core/rendering/RenderInline.h"
61 #include "core/rendering/RenderPart.h"
62 #include "core/rendering/RenderTreeAsText.h" 61 #include "core/rendering/RenderTreeAsText.h"
63 #include "core/rendering/RenderView.h" 62 #include "core/rendering/RenderView.h"
64 #include "core/rendering/compositing/CompositedLayerMapping.h" 63 #include "core/rendering/compositing/CompositedLayerMapping.h"
65 #include "core/rendering/compositing/RenderLayerCompositor.h" 64 #include "core/rendering/compositing/RenderLayerCompositor.h"
66 #include "platform/LengthFunctions.h" 65 #include "platform/LengthFunctions.h"
67 #include "platform/Partitions.h" 66 #include "platform/Partitions.h"
68 #include "platform/RuntimeEnabledFeatures.h" 67 #include "platform/RuntimeEnabledFeatures.h"
69 #include "platform/TraceEvent.h" 68 #include "platform/TraceEvent.h"
70 #include "platform/geometry/FloatPoint3D.h" 69 #include "platform/geometry/FloatPoint3D.h"
71 #include "platform/geometry/FloatRect.h" 70 #include "platform/geometry/FloatRect.h"
(...skipping 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after
2518 childLocalRect.moveBy(-childOffset); 2517 childLocalRect.moveBy(-childOffset);
2519 2518
2520 if (childLayer->backgroundIsKnownToBeOpaqueInRect(childLocalRect)) 2519 if (childLayer->backgroundIsKnownToBeOpaqueInRect(childLocalRect))
2521 return true; 2520 return true;
2522 } 2521 }
2523 return false; 2522 return false;
2524 } 2523 }
2525 2524
2526 bool RenderLayer::shouldBeSelfPaintingLayer() const 2525 bool RenderLayer::shouldBeSelfPaintingLayer() const
2527 { 2526 {
2528 if (renderer()->isRenderPart() && toRenderPart(renderer())->requiresAccelera tedCompositing())
2529 return true;
2530 return m_layerType == NormalLayer 2527 return m_layerType == NormalLayer
2531 || (m_scrollableArea && m_scrollableArea->hasOverlayScrollbars()) 2528 || (m_scrollableArea && m_scrollableArea->hasOverlayScrollbars())
2532 || needsCompositedScrolling(); 2529 || needsCompositedScrolling();
2533 } 2530 }
2534 2531
2535 void RenderLayer::updateSelfPaintingLayer() 2532 void RenderLayer::updateSelfPaintingLayer()
2536 { 2533 {
2537 bool isSelfPaintingLayer = shouldBeSelfPaintingLayer(); 2534 bool isSelfPaintingLayer = shouldBeSelfPaintingLayer();
2538 if (this->isSelfPaintingLayer() == isSelfPaintingLayer) 2535 if (this->isSelfPaintingLayer() == isSelfPaintingLayer)
2539 return; 2536 return;
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2791 } 2788 }
2792 } 2789 }
2793 2790
2794 void showLayerTree(const blink::RenderObject* renderer) 2791 void showLayerTree(const blink::RenderObject* renderer)
2795 { 2792 {
2796 if (!renderer) 2793 if (!renderer)
2797 return; 2794 return;
2798 showLayerTree(renderer->enclosingLayer()); 2795 showLayerTree(renderer->enclosingLayer());
2799 } 2796 }
2800 #endif 2797 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/page/scrolling/ScrollingCoordinator.cpp ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698