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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1516683002: Introducing LayoutObject::mapToVisibleRectInContainerSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix flipping logic Created 5 years 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 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 1076
1077 void invalidatePaintIncludingNonCompositingDescendants(); 1077 void invalidatePaintIncludingNonCompositingDescendants();
1078 void invalidatePaintIncludingNonSelfPaintingLayerDescendants(const LayoutBox ModelObject& paintInvalidationContainer); 1078 void invalidatePaintIncludingNonSelfPaintingLayerDescendants(const LayoutBox ModelObject& paintInvalidationContainer);
1079 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); 1079 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
1080 1080
1081 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 1081 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
1082 // coordinate space. This method deals with outlines and overflow. 1082 // coordinate space. This method deals with outlines and overflow.
1083 virtual LayoutRect absoluteClippedOverflowRect() const; 1083 virtual LayoutRect absoluteClippedOverflowRect() const;
1084 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const; 1084 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const;
1085 1085
1086 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of 1086 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of that
1087 // that rect in the coordinate space of paintInvalidationContainer. 1087 // rect in the coordinate space of paintInvalidationContainer. If intermedi ate containers have clipping or
1088 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const; 1088 // scrolling of any kind, it is applied; but overflow clipping is *not* appl ied for paintInvalidationContainer
1089 // itself.
1090 virtual void mapToVisibleRectInContainerSpace(const LayoutBoxModelObject* pa intInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const;
1089 1091
1090 // Return the offset to the column in which the specified point (in flow-thr ead coordinates) 1092 // Return the offset to the column in which the specified point (in flow-thr ead coordinates)
1091 // lives. This is used to convert a flow-thread point to a visual point. 1093 // lives. This is used to convert a flow-thread point to a visual point.
1092 virtual LayoutSize columnOffset(const LayoutPoint&) const { return LayoutSiz e(); } 1094 virtual LayoutSize columnOffset(const LayoutPoint&) const { return LayoutSiz e(); }
1093 1095
1094 virtual unsigned length() const { return 1; } 1096 virtual unsigned length() const { return 1; }
1095 1097
1096 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut OfFlowPositioned()); } 1098 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut OfFlowPositioned()); }
1097 1099
1098 bool isTransparent() const { return style()->hasOpacity(); } 1100 bool isTransparent() const { return style()->hasOpacity(); }
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
2043 void showTree(const blink::LayoutObject*); 2045 void showTree(const blink::LayoutObject*);
2044 void showLineTree(const blink::LayoutObject*); 2046 void showLineTree(const blink::LayoutObject*);
2045 void showLayoutTree(const blink::LayoutObject* object1); 2047 void showLayoutTree(const blink::LayoutObject* object1);
2046 // We don't make object2 an optional parameter so that showLayoutTree 2048 // We don't make object2 an optional parameter so that showLayoutTree
2047 // can be called from gdb easily. 2049 // can be called from gdb easily.
2048 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2050 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2049 2051
2050 #endif 2052 #endif
2051 2053
2052 #endif // LayoutObject_h 2054 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutListMarker.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698