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

Side by Side Diff: Source/core/rendering/compositing/RenderLayerCompositor.h

Issue 302993003: Route selection bounds updates through WebLayerTreeView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Factor common logic to RenderLayerCompositor Created 6 years, 6 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
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 RootLayerAttachment rootLayerAttachment() const { return m_rootLayerAttachme nt; } 143 RootLayerAttachment rootLayerAttachment() const { return m_rootLayerAttachme nt; }
144 void updateRootLayerAttachment(); 144 void updateRootLayerAttachment();
145 void updateRootLayerPosition(); 145 void updateRootLayerPosition();
146 146
147 void setIsInWindow(bool); 147 void setIsInWindow(bool);
148 148
149 static RenderLayerCompositor* frameContentsCompositor(RenderPart*); 149 static RenderLayerCompositor* frameContentsCompositor(RenderPart*);
150 // Return true if the layers changed. 150 // Return true if the layers changed.
151 static bool parentFrameContentLayers(RenderPart*); 151 static bool parentFrameContentLayers(RenderPart*);
152 // Returns true if a suitable enclosing composited layer was found.
153 static bool computeEnclosingCompositingLayer(Node*, RenderLayer*&, GraphicsL ayer*&);
154 static void convertTargetSpaceQuadToCompositedLayer(const FloatQuad& targetS paceQuad, RenderObject* targetRenderer, RenderObject* compositedRenderer, FloatQ uad& compositedSpaceQuad);
abarth-chromium 2014/06/13 21:38:15 This work should be done by the CompositedLayerMap
152 155
153 // Update the geometry of the layers used for clipping and scrolling in fram es. 156 // Update the geometry of the layers used for clipping and scrolling in fram es.
154 void frameViewDidChangeLocation(const IntPoint& contentsOffset); 157 void frameViewDidChangeLocation(const IntPoint& contentsOffset);
155 void frameViewDidChangeSize(); 158 void frameViewDidChangeSize();
156 void frameViewDidScroll(); 159 void frameViewDidScroll();
157 void frameViewScrollbarsExistenceDidChange(); 160 void frameViewScrollbarsExistenceDidChange();
158 void rootFixedBackgroundsChanged(); 161 void rootFixedBackgroundsChanged();
159 162
160 bool scrollingLayerDidChange(RenderLayer*); 163 bool scrollingLayerDidChange(RenderLayer*);
161 164
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; 275 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar;
273 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 276 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
274 #if USE(RUBBER_BANDING) 277 #if USE(RUBBER_BANDING)
275 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; 278 OwnPtr<GraphicsLayer> m_layerForOverhangShadow;
276 #endif 279 #endif
277 }; 280 };
278 281
279 } // namespace WebCore 282 } // namespace WebCore
280 283
281 #endif // RenderLayerCompositor_h 284 #endif // RenderLayerCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698