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

Side by Side Diff: Source/core/rendering/RenderLayer.h

Issue 360833002: Divorce PaintInvalidationState from LayoutState (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToT-ed Created 6 years, 5 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) 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 bool clipsCompositingDescendantsWithBorderRadius() const; 332 bool clipsCompositingDescendantsWithBorderRadius() const;
333 333
334 RenderLayer* scrollParent() const 334 RenderLayer* scrollParent() const
335 { 335 {
336 return const_cast<RenderLayer*>(compositingInputs().scrollParent); 336 return const_cast<RenderLayer*>(compositingInputs().scrollParent);
337 } 337 }
338 338
339 // Computes the position of the given render object in the space of |paintIn validationContainer|. 339 // Computes the position of the given render object in the space of |paintIn validationContainer|.
340 // FIXME: invert the logic to have paint invalidation containers take care o f painting objects into them, rather than the reverse. 340 // FIXME: invert the logic to have paint invalidation containers take care o f painting objects into them, rather than the reverse.
341 // This will allow us to clean up this static method messiness. 341 // This will allow us to clean up this static method messiness.
342 static LayoutPoint positionFromPaintInvalidationContainer(const RenderObject *, const RenderLayerModelObject* paintInvalidationContainer); 342 static LayoutPoint positionFromPaintInvalidationContainer(const RenderObject *, const RenderLayerModelObject* paintInvalidationContainer, const InvalidationT reeWalkState* = 0);
343 343
344 static void mapRectToPaintBackingCoordinates(const RenderLayerModelObject* p aintInvalidationContainer, LayoutRect&); 344 static void mapRectToPaintBackingCoordinates(const RenderLayerModelObject* p aintInvalidationContainer, LayoutRect&);
345 345
346 // Adjusts the given rect (in the coordinate space of the RenderObject) to t he coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. 346 // Adjusts the given rect (in the coordinate space of the RenderObject) to t he coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing.
347 static void mapRectToPaintInvalidationBacking(const RenderObject*, const Ren derLayerModelObject* paintInvalidationContainer, LayoutRect&); 347 static void mapRectToPaintInvalidationBacking(const RenderObject*, const Ren derLayerModelObject* paintInvalidationContainer, LayoutRect&, const Invalidation TreeWalkState* = 0);
348 348
349 // Computes the bounding paint invalidation rect for |renderObject|, in the coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. 349 // Computes the bounding paint invalidation rect for |renderObject|, in the coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing.
350 static LayoutRect computePaintInvalidationRect(const RenderObject*, const Re nderLayer* paintInvalidationContainer); 350 static LayoutRect computePaintInvalidationRect(const RenderObject*, const Re nderLayer* paintInvalidationContainer, const InvalidationTreeWalkState* = 0);
351 351
352 bool paintsWithTransparency(PaintBehavior paintBehavior) const 352 bool paintsWithTransparency(PaintBehavior paintBehavior) const
353 { 353 {
354 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit ingLayers) || compositingState() != PaintsIntoOwnBacking); 354 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit ingLayers) || compositingState() != PaintsIntoOwnBacking);
355 } 355 }
356 356
357 bool paintsWithTransform(PaintBehavior) const; 357 bool paintsWithTransform(PaintBehavior) const;
358 358
359 // Returns true if background phase is painted opaque in the given rect. 359 // Returns true if background phase is painted opaque in the given rect.
360 // The query rect is given in local coordinates. 360 // The query rect is given in local coordinates.
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 714
715 } // namespace WebCore 715 } // namespace WebCore
716 716
717 #ifndef NDEBUG 717 #ifndef NDEBUG
718 // Outside the WebCore namespace for ease of invocation from gdb. 718 // Outside the WebCore namespace for ease of invocation from gdb.
719 void showLayerTree(const WebCore::RenderLayer*); 719 void showLayerTree(const WebCore::RenderLayer*);
720 void showLayerTree(const WebCore::RenderObject*); 720 void showLayerTree(const WebCore::RenderObject*);
721 #endif 721 #endif
722 722
723 #endif // RenderLayer_h 723 #endif // RenderLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698