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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2516793002: Use the bounding box of all descendants for localVisualRect if there is a mask. (Closed)
Patch Set: none Created 4 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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 }; 417 };
418 418
419 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if known. 419 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if known.
420 LayoutRect physicalBoundingBox(const LayoutPoint& offsetFromRoot) const; 420 LayoutRect physicalBoundingBox(const LayoutPoint& offsetFromRoot) const;
421 LayoutRect physicalBoundingBox(const PaintLayer* ancestorLayer) const; 421 LayoutRect physicalBoundingBox(const PaintLayer* ancestorLayer) const;
422 LayoutRect physicalBoundingBoxIncludingStackingChildren( 422 LayoutRect physicalBoundingBoxIncludingStackingChildren(
423 const LayoutPoint& offsetFromRoot, 423 const LayoutPoint& offsetFromRoot,
424 CalculateBoundsOptions = MaybeIncludeTransformForAncestorLayer) const; 424 CalculateBoundsOptions = MaybeIncludeTransformForAncestorLayer) const;
425 LayoutRect fragmentsBoundingBox(const PaintLayer* ancestorLayer) const; 425 LayoutRect fragmentsBoundingBox(const PaintLayer* ancestorLayer) const;
426 426
427 FloatRect boxForFilter() const; 427 FloatRect boxForFilterOrMask() const;
428 LayoutRect boxForClipPath() const; 428 LayoutRect boxForClipPath() const;
429 429
430 LayoutRect boundingBoxForCompositingOverlapTest() const; 430 LayoutRect boundingBoxForCompositingOverlapTest() const;
431 431
432 // If true, this layer's children are included in its bounds for overlap 432 // If true, this layer's children are included in its bounds for overlap
433 // testing. We can't rely on the children's positions if this layer has a 433 // testing. We can't rely on the children's positions if this layer has a
434 // filter that could have moved the children's pixels around. 434 // filter that could have moved the children's pixels around.
435 bool overlapBoundsIncludeChildren() const; 435 bool overlapBoundsIncludeChildren() const;
436 LayoutRect boundingBoxForCompositing( 436 LayoutRect boundingBoxForCompositing(
437 const PaintLayer* ancestorLayer = 0, 437 const PaintLayer* ancestorLayer = 0,
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 1224
1225 } // namespace blink 1225 } // namespace blink
1226 1226
1227 #ifndef NDEBUG 1227 #ifndef NDEBUG
1228 // Outside the WebCore namespace for ease of invocation from gdb. 1228 // Outside the WebCore namespace for ease of invocation from gdb.
1229 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1229 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1230 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1230 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1231 #endif 1231 #endif
1232 1232
1233 #endif // Layer_h 1233 #endif // Layer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698