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

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

Issue 688443003: Remove a bit more position:fixed plumbing. (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
« no previous file with comments | « sky/engine/core/rendering/RenderBlock.cpp ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 360
361 // FIXME: This should probably return a ScrollableArea but a lot of internal methods are mistakenly exposed. 361 // FIXME: This should probably return a ScrollableArea but a lot of internal methods are mistakenly exposed.
362 RenderLayerScrollableArea* scrollableArea() const { return m_scrollableArea. get(); } 362 RenderLayerScrollableArea* scrollableArea() const { return m_scrollableArea. get(); }
363 RenderLayerRepainter& paintInvalidator() { return m_paintInvalidator; } 363 RenderLayerRepainter& paintInvalidator() { return m_paintInvalidator; }
364 RenderLayerClipper& clipper() { return m_clipper; } 364 RenderLayerClipper& clipper() { return m_clipper; }
365 const RenderLayerClipper& clipper() const { return m_clipper; } 365 const RenderLayerClipper& clipper() const { return m_clipper; }
366 366
367 inline bool isPositionedContainer() const 367 inline bool isPositionedContainer() const
368 { 368 {
369 // FIXME: This is not in sync with containingBlock. 369 // FIXME: This is not in sync with containingBlock.
370 // RenderObject::canContainFixedPositionedObject() should probably be us ed
371 // instead.
372 RenderLayerModelObject* layerRenderer = renderer(); 370 RenderLayerModelObject* layerRenderer = renderer();
373 return isRootLayer() || layerRenderer->isPositioned() || hasTransform(); 371 return isRootLayer() || layerRenderer->isPositioned() || hasTransform();
374 } 372 }
375 373
376 // paintLayer() assumes that the caller will clip to the bounds of the paint ing dirty if necessary. 374 // paintLayer() assumes that the caller will clip to the bounds of the paint ing dirty if necessary.
377 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags) ; 375 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags) ;
378 376
379 bool scrollsOverflow() const; 377 bool scrollsOverflow() const;
380 378
381 CompositingReasons potentialCompositingReasonsFromStyle() const { return m_p otentialCompositingReasonsFromStyle; } 379 CompositingReasons potentialCompositingReasonsFromStyle() const { return m_p otentialCompositingReasonsFromStyle; }
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 682
685 } // namespace blink 683 } // namespace blink
686 684
687 #ifndef NDEBUG 685 #ifndef NDEBUG
688 // Outside the WebCore namespace for ease of invocation from gdb. 686 // Outside the WebCore namespace for ease of invocation from gdb.
689 void showLayerTree(const blink::RenderLayer*); 687 void showLayerTree(const blink::RenderLayer*);
690 void showLayerTree(const blink::RenderObject*); 688 void showLayerTree(const blink::RenderObject*);
691 #endif 689 #endif
692 690
693 #endif // RenderLayer_h 691 #endif // RenderLayer_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBlock.cpp ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698