OLD | NEW |
---|---|
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 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1141 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); | 1141 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); |
1142 | 1142 |
1143 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's | 1143 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's |
1144 // coordinate space. This method deals with outlines and overflow. | 1144 // coordinate space. This method deals with outlines and overflow. |
1145 virtual LayoutRect absoluteClippedOverflowRect() const; | 1145 virtual LayoutRect absoluteClippedOverflowRect() const; |
1146 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const; | 1146 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const; |
1147 | 1147 |
1148 // Given a rect in the object's coordinate space, compute a rect in the coor dinate space of |ancestor|. If | 1148 // Given a rect in the object's coordinate space, compute a rect in the coor dinate space of |ancestor|. If |
1149 // intermediate containers have clipping or scrolling of any kind, it is app lied; but overflow clipping is *not* | 1149 // intermediate containers have clipping or scrolling of any kind, it is app lied; but overflow clipping is *not* |
1150 // applied for |ancestor| itself. The output rect is suitable for purposes s uch as paint invalidation. | 1150 // applied for |ancestor| itself. The output rect is suitable for purposes s uch as paint invalidation. |
1151 virtual void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc estor, LayoutRect&, const PaintInvalidationState*) const; | 1151 // The return value indicates whether the output rect actually has a visible intersection |
1152 // with the ancestor. If flags is EdgeInclusive, the return value can be tr ue even if the | |
1153 // resulting rect is zero-area. | |
chrishtr
2016/03/22 17:25:49
"intersection" might lead to the wrong conclusions
szager1
2016/03/22 18:33:35
I think the best documentation is what I wrote for
| |
1154 virtual bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc estor, LayoutRect&, const PaintInvalidationState*, int flags = 0) const; | |
chrishtr
2016/03/22 17:25:49
IntersectionFlags instead of int
eae
2016/03/22 17:54:16
Use unsigned (or typedef for unsigned as Chris sug
szager1
2016/03/22 19:42:24
Done.
| |
1152 | 1155 |
1153 // Return the offset to the column in which the specified point (in flow-thr ead coordinates) | 1156 // Return the offset to the column in which the specified point (in flow-thr ead coordinates) |
1154 // lives. This is used to convert a flow-thread point to a visual point. | 1157 // lives. This is used to convert a flow-thread point to a visual point. |
1155 virtual LayoutSize columnOffset(const LayoutPoint&) const { return LayoutSiz e(); } | 1158 virtual LayoutSize columnOffset(const LayoutPoint&) const { return LayoutSiz e(); } |
1156 | 1159 |
1157 virtual unsigned length() const { return 1; } | 1160 virtual unsigned length() const { return 1; } |
1158 | 1161 |
1159 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut OfFlowPositioned()); } | 1162 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut OfFlowPositioned()); } |
1160 | 1163 |
1161 bool isTransparent() const { return style()->hasOpacity(); } | 1164 bool isTransparent() const { return style()->hasOpacity(); } |
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2168 void showTree(const blink::LayoutObject*); | 2171 void showTree(const blink::LayoutObject*); |
2169 void showLineTree(const blink::LayoutObject*); | 2172 void showLineTree(const blink::LayoutObject*); |
2170 void showLayoutTree(const blink::LayoutObject* object1); | 2173 void showLayoutTree(const blink::LayoutObject* object1); |
2171 // We don't make object2 an optional parameter so that showLayoutTree | 2174 // We don't make object2 an optional parameter so that showLayoutTree |
2172 // can be called from gdb easily. | 2175 // can be called from gdb easily. |
2173 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); | 2176 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); |
2174 | 2177 |
2175 #endif | 2178 #endif |
2176 | 2179 |
2177 #endif // LayoutObject_h | 2180 #endif // LayoutObject_h |
OLD | NEW |