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

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

Issue 1736893002: Update drag images to paint from the nearest self painting layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a performance note and prepare this ship for landing. Created 4 years, 9 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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 void setHasCompositingDescendant(bool); 603 void setHasCompositingDescendant(bool);
604 604
605 bool shouldIsolateCompositedDescendants() const { ASSERT(isAllowedToQueryCom positingState()); return m_shouldIsolateCompositedDescendants; } 605 bool shouldIsolateCompositedDescendants() const { ASSERT(isAllowedToQueryCom positingState()); return m_shouldIsolateCompositedDescendants; }
606 void setShouldIsolateCompositedDescendants(bool); 606 void setShouldIsolateCompositedDescendants(bool);
607 607
608 void updateDescendantDependentFlags(); 608 void updateDescendantDependentFlags();
609 609
610 void updateOrRemoveFilterEffectBuilder(); 610 void updateOrRemoveFilterEffectBuilder();
611 611
612 void updateSelfPaintingLayer(); 612 void updateSelfPaintingLayer();
613 // This is O(depth) so avoid calling this in loops. Instead use optimization s like
614 // those in PaintInvalidationState.
615 PaintLayer* enclosingSelfPaintingLayer();
613 616
614 PaintLayer* enclosingTransformedAncestor() const; 617 PaintLayer* enclosingTransformedAncestor() const;
615 LayoutPoint computeOffsetFromTransformedAncestor() const; 618 LayoutPoint computeOffsetFromTransformedAncestor() const;
616 619
617 void didUpdateNeedsCompositedScrolling(); 620 void didUpdateNeedsCompositedScrolling();
618 621
619 bool hasSelfPaintingLayerDescendant() const 622 bool hasSelfPaintingLayerDescendant() const
620 { 623 {
621 if (m_hasSelfPaintingLayerDescendantDirty) 624 if (m_hasSelfPaintingLayerDescendantDirty)
622 updateHasSelfPaintingLayerDescendant(); 625 updateHasSelfPaintingLayerDescendant();
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 874
872 } // namespace blink 875 } // namespace blink
873 876
874 #ifndef NDEBUG 877 #ifndef NDEBUG
875 // Outside the WebCore namespace for ease of invocation from gdb. 878 // Outside the WebCore namespace for ease of invocation from gdb.
876 void showLayerTree(const blink::PaintLayer*); 879 void showLayerTree(const blink::PaintLayer*);
877 void showLayerTree(const blink::LayoutObject*); 880 void showLayerTree(const blink::LayoutObject*);
878 #endif 881 #endif
879 882
880 #endif // Layer_h 883 #endif // Layer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.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