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

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

Issue 688433003: Remove viewportConstrained 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
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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 733
734 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 734 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
735 // coordinate space. This method deals with outlines and overflow. 735 // coordinate space. This method deals with outlines and overflow.
736 LayoutRect absoluteClippedOverflowRect() const; 736 LayoutRect absoluteClippedOverflowRect() const;
737 IntRect pixelSnappedAbsoluteClippedOverflowRect() const; 737 IntRect pixelSnappedAbsoluteClippedOverflowRect() const;
738 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t; 738 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t;
739 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* = 0) const; 739 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* = 0) const;
740 740
741 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of 741 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of
742 // that rect in the coordinate space of paintInvalidationContainer. 742 // that rect in the coordinate space of paintInvalidationContainer.
743 // The ViewportConstrainedPosition parameter is only meaningful when this ob ject is RenderView.
744 // For other objects, the caller can just pass |ViewportConstraintDoesNotMat ter|.
745 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const; 743 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const;
746 virtual void computeFloatRectForPaintInvalidation(const RenderLayerModelObje ct* paintInvalidationContainer, FloatRect& paintInvalidationRect, const PaintInv alidationState*) const; 744 virtual void computeFloatRectForPaintInvalidation(const RenderLayerModelObje ct* paintInvalidationContainer, FloatRect& paintInvalidationRect, const PaintInv alidationState*) const;
747 745
748 virtual unsigned length() const { return 1; } 746 virtual unsigned length() const { return 1; }
749 747
750 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut OfFlowPositioned()); } 748 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut OfFlowPositioned()); }
751 749
752 bool isTransparent() const { return style()->hasOpacity(); } 750 bool isTransparent() const { return style()->hasOpacity(); }
753 float opacity() const { return style()->opacity(); } 751 float opacity() const { return style()->opacity(); }
754 752
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 void showTree(const blink::RenderObject*); 1344 void showTree(const blink::RenderObject*);
1347 void showLineTree(const blink::RenderObject*); 1345 void showLineTree(const blink::RenderObject*);
1348 void showRenderTree(const blink::RenderObject* object1); 1346 void showRenderTree(const blink::RenderObject* object1);
1349 // We don't make object2 an optional parameter so that showRenderTree 1347 // We don't make object2 an optional parameter so that showRenderTree
1350 // can be called from gdb easily. 1348 // can be called from gdb easily.
1351 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1349 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1352 1350
1353 #endif 1351 #endif
1354 1352
1355 #endif // RenderObject_h 1353 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698