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

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

Issue 1455213006: [Not For Commit] Deferred building of PaintLayer filter-chain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 411
412 bool paintsWithTransform(GlobalPaintFlags) const; 412 bool paintsWithTransform(GlobalPaintFlags) const;
413 413
414 // Returns true if background phase is painted opaque in the given rect. 414 // Returns true if background phase is painted opaque in the given rect.
415 // The query rect is given in local coordinates. 415 // The query rect is given in local coordinates.
416 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; 416 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const;
417 417
418 bool containsDirtyOverlayScrollbars() const { return m_containsDirtyOverlayS crollbars; } 418 bool containsDirtyOverlayScrollbars() const { return m_containsDirtyOverlayS crollbars; }
419 void setContainsDirtyOverlayScrollbars(bool dirtyScrollbars) { m_containsDir tyOverlayScrollbars = dirtyScrollbars; } 419 void setContainsDirtyOverlayScrollbars(bool dirtyScrollbars) { m_containsDir tyOverlayScrollbars = dirtyScrollbars; }
420 420
421 FilterOperations computeFilterOperations(const ComputedStyle&); 421 FilterOperations computeFilterOperations(const ComputedStyle&) const;
422 FilterOperations computeBackdropFilterOperations(const ComputedStyle&); 422 FilterOperations computeBackdropFilterOperations(const ComputedStyle&);
423 bool paintsWithFilters() const; 423 bool paintsWithFilters() const;
424 bool paintsWithBackdropFilters() const; 424 bool paintsWithBackdropFilters() const;
425 FilterEffectBuilder* filterEffectBuilder() const 425 FilterEffectBuilder* filterEffectBuilder() const;
426 {
427 PaintLayerFilterInfo* filterInfo = this->filterInfo();
428 return filterInfo ? filterInfo->builder() : 0;
429 }
430 426
431 PaintLayerFilterInfo* filterInfo() const { return hasFilterInfo() ? PaintLay erFilterInfo::filterInfoForLayer(this) : 0; } 427 PaintLayerFilterInfo* filterInfo() const { return hasFilterInfo() ? PaintLay erFilterInfo::filterInfoForLayer(this) : 0; }
432 PaintLayerFilterInfo* ensureFilterInfo() { return PaintLayerFilterInfo::crea teFilterInfoForLayerIfNeeded(this); } 428 PaintLayerFilterInfo* ensureFilterInfo() { return PaintLayerFilterInfo::crea teFilterInfoForLayerIfNeeded(this); }
433 void removeFilterInfoIfNeeded() 429 void removeFilterInfoIfNeeded()
434 { 430 {
435 if (hasFilterInfo()) 431 if (hasFilterInfo())
436 PaintLayerFilterInfo::removeFilterInfoForLayer(this); 432 PaintLayerFilterInfo::removeFilterInfoForLayer(this);
437 } 433 }
438 434
439 bool hasFilterInfo() const { return m_hasFilterInfo; } 435 bool hasFilterInfo() const { return m_hasFilterInfo; }
440 void setHasFilterInfo(bool hasFilterInfo) { m_hasFilterInfo = hasFilterInfo; } 436 void setHasFilterInfo(bool hasFilterInfo) { m_hasFilterInfo = hasFilterInfo; }
441 437
442 void updateFilters(const ComputedStyle* oldStyle, const ComputedStyle& newSt yle); 438 void updateFilters(const ComputedStyle* oldStyle, const ComputedStyle& newSt yle);
439 FilterOutsets filterOutsets() const;
443 440
444 Node* enclosingElement() const; 441 Node* enclosingElement() const;
445 442
446 bool isInTopLayer() const; 443 bool isInTopLayer() const;
447 444
448 bool scrollsWithViewport() const; 445 bool scrollsWithViewport() const;
449 bool scrollsWithRespectTo(const PaintLayer*) const; 446 bool scrollsWithRespectTo(const PaintLayer*) const;
450 447
451 void addLayerHitTestRects(LayerHitTestRects&) const; 448 void addLayerHitTestRects(LayerHitTestRects&) const;
452 449
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 807
811 } // namespace blink 808 } // namespace blink
812 809
813 #ifndef NDEBUG 810 #ifndef NDEBUG
814 // Outside the WebCore namespace for ease of invocation from gdb. 811 // Outside the WebCore namespace for ease of invocation from gdb.
815 void showLayerTree(const blink::PaintLayer*); 812 void showLayerTree(const blink::PaintLayer*);
816 void showLayerTree(const blink::LayoutObject*); 813 void showLayerTree(const blink::LayoutObject*);
817 #endif 814 #endif
818 815
819 #endif // Layer_h 816 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698