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

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

Issue 2276283002: Include filter-generated content bounds in visual rects (Closed)
Patch Set: Created 4 years, 3 months 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 472
473 FilterOperations computeFilterOperations(const ComputedStyle&) const; 473 FilterOperations computeFilterOperations(const ComputedStyle&) const;
474 FilterOperations computeBackdropFilterOperations(const ComputedStyle&) const ; 474 FilterOperations computeBackdropFilterOperations(const ComputedStyle&) const ;
475 bool paintsWithFilters() const; 475 bool paintsWithFilters() const;
476 bool paintsWithBackdropFilters() const; 476 bool paintsWithBackdropFilters() const;
477 FilterEffect* lastFilterEffect() const; 477 FilterEffect* lastFilterEffect() const;
478 478
479 // Maps "forward" to determine which pixels in a destination rect are 479 // Maps "forward" to determine which pixels in a destination rect are
480 // affected by pixels in the source rect. 480 // affected by pixels in the source rect.
481 // See also FilterEffect::mapRect. 481 // See also FilterEffect::mapRect.
482 FloatRect mapRectForFilter(const FloatRect&) const; 482 FloatRect mapRectToAffectedFilterRegion(const FloatRect&) const;
483 483
484 // Calls the above, rounding outwards. 484 // Calls the above, rounding outwards.
485 LayoutRect mapLayoutRectForFilter(const LayoutRect&) const; 485 LayoutRect mapLayoutRectToAffectedFilterRegion(const LayoutRect&) const;
486 486
487 bool hasFilterThatMovesPixels() const; 487 bool hasFilterThatMovesPixels() const;
488 488
489 PaintLayerFilterInfo* filterInfo() const { return m_rareData ? m_rareData->f ilterInfo.get() : nullptr; } 489 PaintLayerFilterInfo* filterInfo() const { return m_rareData ? m_rareData->f ilterInfo.get() : nullptr; }
490 PaintLayerFilterInfo& ensureFilterInfo(); 490 PaintLayerFilterInfo& ensureFilterInfo();
491 491
492 void updateFilters(const ComputedStyle* oldStyle, const ComputedStyle& newSt yle); 492 void updateFilters(const ComputedStyle* oldStyle, const ComputedStyle& newSt yle);
493 493
494 Node* enclosingNode() const; 494 Node* enclosingNode() const;
495 495
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 899
900 } // namespace blink 900 } // namespace blink
901 901
902 #ifndef NDEBUG 902 #ifndef NDEBUG
903 // Outside the WebCore namespace for ease of invocation from gdb. 903 // Outside the WebCore namespace for ease of invocation from gdb.
904 void showLayerTree(const blink::PaintLayer*); 904 void showLayerTree(const blink::PaintLayer*);
905 void showLayerTree(const blink::LayoutObject*); 905 void showLayerTree(const blink::LayoutObject*);
906 #endif 906 #endif
907 907
908 #endif // Layer_h 908 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698