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

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

Issue 741123002: Get rid of computeFloatRectForPaintInvalidation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Return reference; Fixup references in comments. 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 862
863 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 863 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
864 // coordinate space. This method deals with outlines and overflow. 864 // coordinate space. This method deals with outlines and overflow.
865 LayoutRect absoluteClippedOverflowRect() const; 865 LayoutRect absoluteClippedOverflowRect() const;
866 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t; 866 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t;
867 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* = 0) const; 867 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* = 0) const;
868 868
869 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of 869 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of
870 // that rect in the coordinate space of paintInvalidationContainer. 870 // that rect in the coordinate space of paintInvalidationContainer.
871 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const; 871 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const;
872 virtual void computeFloatRectForPaintInvalidation(const RenderLayerModelObje ct* paintInvalidationContainer, FloatRect& paintInvalidationRect, const PaintInv alidationState*) const;
873 872
874 // Return the offset to the column in which the specified point (in flow-thr ead coordinates) 873 // Return the offset to the column in which the specified point (in flow-thr ead coordinates)
875 // lives. This is used to convert a flow-thread point to a visual point. 874 // lives. This is used to convert a flow-thread point to a visual point.
876 virtual LayoutSize columnOffset(const LayoutPoint&) const { return LayoutSiz e(); } 875 virtual LayoutSize columnOffset(const LayoutPoint&) const { return LayoutSiz e(); }
877 876
878 virtual unsigned length() const { return 1; } 877 virtual unsigned length() const { return 1; }
879 878
880 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut OfFlowPositioned()); } 879 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut OfFlowPositioned()); }
881 880
882 bool isTransparent() const { return style()->hasOpacity(); } 881 bool isTransparent() const { return style()->hasOpacity(); }
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 void showTree(const blink::RenderObject*); 1615 void showTree(const blink::RenderObject*);
1617 void showLineTree(const blink::RenderObject*); 1616 void showLineTree(const blink::RenderObject*);
1618 void showRenderTree(const blink::RenderObject* object1); 1617 void showRenderTree(const blink::RenderObject* object1);
1619 // We don't make object2 an optional parameter so that showRenderTree 1618 // We don't make object2 an optional parameter so that showRenderTree
1620 // can be called from gdb easily. 1619 // can be called from gdb easily.
1621 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1620 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1622 1621
1623 #endif 1622 #endif
1624 1623
1625 #endif // RenderObject_h 1624 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698