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

Side by Side Diff: sky/engine/core/rendering/compositing/RenderLayerCompositor.h

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) 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 19 matching lines...) Expand all
30 #include "core/rendering/compositing/CompositingReasonFinder.h" 30 #include "core/rendering/compositing/CompositingReasonFinder.h"
31 #include "platform/graphics/GraphicsLayerClient.h" 31 #include "platform/graphics/GraphicsLayerClient.h"
32 #include "wtf/HashMap.h" 32 #include "wtf/HashMap.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class DocumentLifecycle; 36 class DocumentLifecycle;
37 class GraphicsLayer; 37 class GraphicsLayer;
38 class GraphicsLayerFactory; 38 class GraphicsLayerFactory;
39 class Page; 39 class Page;
40 class RenderPart;
41 class ScrollingCoordinator; 40 class ScrollingCoordinator;
42 41
43 enum CompositingUpdateType { 42 enum CompositingUpdateType {
44 CompositingUpdateNone, 43 CompositingUpdateNone,
45 CompositingUpdateAfterGeometryChange, 44 CompositingUpdateAfterGeometryChange,
46 CompositingUpdateAfterCompositingInputChange, 45 CompositingUpdateAfterCompositingInputChange,
47 CompositingUpdateRebuildTree, 46 CompositingUpdateRebuildTree,
48 }; 47 };
49 48
50 enum CompositingStateTransitionType { 49 enum CompositingStateTransitionType {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 RootLayerAttachedViaChromeClient, 125 RootLayerAttachedViaChromeClient,
127 RootLayerAttachedViaEnclosingFrame 126 RootLayerAttachedViaEnclosingFrame
128 }; 127 };
129 128
130 RootLayerAttachment rootLayerAttachment() const { return m_rootLayerAttachme nt; } 129 RootLayerAttachment rootLayerAttachment() const { return m_rootLayerAttachme nt; }
131 void updateRootLayerAttachment(); 130 void updateRootLayerAttachment();
132 void updateRootLayerPosition(); 131 void updateRootLayerPosition();
133 132
134 void setIsInWindow(bool); 133 void setIsInWindow(bool);
135 134
136 static RenderLayerCompositor* frameContentsCompositor(RenderPart*);
137 // Return true if the layers changed.
138 static bool parentFrameContentLayers(RenderPart*);
139
140 // Update the geometry of the layers used for clipping and scrolling in fram es. 135 // Update the geometry of the layers used for clipping and scrolling in fram es.
141 void frameViewDidChangeLocation(const IntPoint& contentsOffset); 136 void frameViewDidChangeLocation(const IntPoint& contentsOffset);
142 void frameViewDidChangeSize(); 137 void frameViewDidChangeSize();
143 void frameViewDidScroll(); 138 void frameViewDidScroll();
144 void frameViewScrollbarsExistenceDidChange(); 139 void frameViewScrollbarsExistenceDidChange();
145 void rootFixedBackgroundsChanged(); 140 void rootFixedBackgroundsChanged();
146 141
147 bool scrollingLayerDidChange(RenderLayer*); 142 bool scrollingLayerDidChange(RenderLayer*);
148 143
149 String layerTreeAsText(LayerTreeFlags); 144 String layerTreeAsText(LayerTreeFlags);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 231
237 // Layers for overflow controls 232 // Layers for overflow controls
238 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; 233 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar;
239 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; 234 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar;
240 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 235 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
241 }; 236 };
242 237
243 } // namespace blink 238 } // namespace blink
244 239
245 #endif // RenderLayerCompositor_h 240 #endif // RenderLayerCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698