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

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

Issue 482063005: Allow paint invalidation containers to cross frame boundaries. (re-land #2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix. Created 6 years, 4 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
« no previous file with comments | « Source/core/rendering/RenderLayerRepainter.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 // Walk the tree after layout issuing paint invalidations for renderers that have changed or moved, updating bounds that have changed, and clearing paint in validation state. 883 // Walk the tree after layout issuing paint invalidations for renderers that have changed or moved, updating bounds that have changed, and clearing paint in validation state.
884 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&); 884 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&);
885 885
886 virtual void invalidatePaintForOverflow(); 886 virtual void invalidatePaintForOverflow();
887 void invalidatePaintForOverflowIfNeeded(); 887 void invalidatePaintForOverflowIfNeeded();
888 888
889 bool checkForPaintInvalidation() const; 889 bool checkForPaintInvalidation() const;
890 890
891 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 891 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
892 // coordinate space. This method deals with outlines and overflow. 892 // coordinate space. This method deals with outlines and overflow.
893 LayoutRect absoluteClippedOverflowRect() const 893 LayoutRect absoluteClippedOverflowRect() const;
894 {
895 return clippedOverflowRectForPaintInvalidation(0);
896 }
897 IntRect pixelSnappedAbsoluteClippedOverflowRect() const; 894 IntRect pixelSnappedAbsoluteClippedOverflowRect() const;
898 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t; 895 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t;
899 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* = 0) const; 896 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* = 0) const;
900 897
901 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of 898 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of
902 // that rect in the coordinate space of paintInvalidationContainer. 899 // that rect in the coordinate space of paintInvalidationContainer.
903 // The ViewportConstrainedPosition parameter is only meaningful when this ob ject is RenderView. 900 // The ViewportConstrainedPosition parameter is only meaningful when this ob ject is RenderView.
904 // For other objects, the caller can just pass |ViewportConstraintDoesNotMat ter|. 901 // For other objects, the caller can just pass |ViewportConstraintDoesNotMat ter|.
905 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, ViewportConstrainedPosition, const Pai ntInvalidationState*) const; 902 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, ViewportConstrainedPosition, const Pai ntInvalidationState*) const;
906 virtual void computeFloatRectForPaintInvalidation(const RenderLayerModelObje ct* paintInvalidationContainer, FloatRect& paintInvalidationRect, const PaintInv alidationState*) const; 903 virtual void computeFloatRectForPaintInvalidation(const RenderLayerModelObje ct* paintInvalidationContainer, FloatRect& paintInvalidationRect, const PaintInv alidationState*) const;
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 void showTree(const blink::RenderObject*); 1568 void showTree(const blink::RenderObject*);
1572 void showLineTree(const blink::RenderObject*); 1569 void showLineTree(const blink::RenderObject*);
1573 void showRenderTree(const blink::RenderObject* object1); 1570 void showRenderTree(const blink::RenderObject* object1);
1574 // We don't make object2 an optional parameter so that showRenderTree 1571 // We don't make object2 an optional parameter so that showRenderTree
1575 // can be called from gdb easily. 1572 // can be called from gdb easily.
1576 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1573 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1577 1574
1578 #endif 1575 #endif
1579 1576
1580 #endif // RenderObject_h 1577 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerRepainter.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698