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

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 again :) 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 bool clipsCompositingDescendantsWithBorderRadius() const; 337 bool clipsCompositingDescendantsWithBorderRadius() const;
338 338
339 RenderLayer* scrollParent() const 339 RenderLayer* scrollParent() const
340 { 340 {
341 return const_cast<RenderLayer*>(compositingInputs().scrollParent); 341 return const_cast<RenderLayer*>(compositingInputs().scrollParent);
342 } 342 }
343 343
344 // Computes the position of the given render object in the space of |paintIn validationContainer|. 344 // Computes the position of the given render object in the space of |paintIn validationContainer|.
345 // FIXME: invert the logic to have paint invalidation containers take care o f painting objects into them, rather than the reverse. 345 // FIXME: invert the logic to have paint invalidation containers take care o f painting objects into them, rather than the reverse.
346 // This will allow us to clean up this static method messiness. 346 // This will allow us to clean up this static method messiness.
347 static LayoutPoint positionFromPaintInvalidationContainer(const RenderObject *, const RenderLayerModelObject* paintInvalidationContainer); 347 static LayoutPoint positionFromPaintInvalidationContainer(const RenderObject *, const RenderLayerModelObject* paintInvalidationContainer, const InvalidationT reeWalkState* = 0);
348 348
349 static void mapRectToPaintBackingCoordinates(const RenderLayerModelObject* p aintInvalidationContainer, LayoutRect&); 349 static void mapRectToPaintBackingCoordinates(const RenderLayerModelObject* p aintInvalidationContainer, LayoutRect&);
350 350
351 // Adjusts the given rect (in the coordinate space of the RenderObject) to t he coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. 351 // Adjusts the given rect (in the coordinate space of the RenderObject) to t he coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing.
352 static void mapRectToPaintInvalidationBacking(const RenderObject*, const Ren derLayerModelObject* paintInvalidationContainer, LayoutRect&); 352 static void mapRectToPaintInvalidationBacking(const RenderObject*, const Ren derLayerModelObject* paintInvalidationContainer, LayoutRect&, const Invalidation TreeWalkState* = 0);
353 353
354 // Computes the bounding paint invalidation rect for |renderObject|, in the coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. 354 // Computes the bounding paint invalidation rect for |renderObject|, in the coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing.
355 static LayoutRect computePaintInvalidationRect(const RenderObject*, const Re nderLayer* paintInvalidationContainer); 355 static LayoutRect computePaintInvalidationRect(const RenderObject*, const Re nderLayer* paintInvalidationContainer, const InvalidationTreeWalkState* = 0);
356 356
357 bool paintsWithTransparency(PaintBehavior paintBehavior) const 357 bool paintsWithTransparency(PaintBehavior paintBehavior) const
358 { 358 {
359 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit ingLayers) || compositingState() != PaintsIntoOwnBacking); 359 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit ingLayers) || compositingState() != PaintsIntoOwnBacking);
360 } 360 }
361 361
362 bool paintsWithTransform(PaintBehavior) const; 362 bool paintsWithTransform(PaintBehavior) const;
363 363
364 // Returns true if background phase is painted opaque in the given rect. 364 // Returns true if background phase is painted opaque in the given rect.
365 // The query rect is given in local coordinates. 365 // The query rect is given in local coordinates.
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 719
720 } // namespace WebCore 720 } // namespace WebCore
721 721
722 #ifndef NDEBUG 722 #ifndef NDEBUG
723 // Outside the WebCore namespace for ease of invocation from gdb. 723 // Outside the WebCore namespace for ease of invocation from gdb.
724 void showLayerTree(const WebCore::RenderLayer*); 724 void showLayerTree(const WebCore::RenderLayer*);
725 void showLayerTree(const WebCore::RenderObject*); 725 void showLayerTree(const WebCore::RenderObject*);
726 #endif 726 #endif
727 727
728 #endif // RenderLayer_h 728 #endif // RenderLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698