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

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: Rebase and address reviewer comments 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 PaintLayer* enclosingSelfPaintingLayer();
chrishtr 2016/02/26 19:36:27 Add a note that this is O(depth), so callers shoul
pdr. 2016/02/26 19:46:09 Done
613 614
614 PaintLayer* enclosingTransformedAncestor() const; 615 PaintLayer* enclosingTransformedAncestor() const;
615 LayoutPoint computeOffsetFromTransformedAncestor() const; 616 LayoutPoint computeOffsetFromTransformedAncestor() const;
616 617
617 void didUpdateNeedsCompositedScrolling(); 618 void didUpdateNeedsCompositedScrolling();
618 619
619 bool hasSelfPaintingLayerDescendant() const 620 bool hasSelfPaintingLayerDescendant() const
620 { 621 {
621 if (m_hasSelfPaintingLayerDescendantDirty) 622 if (m_hasSelfPaintingLayerDescendantDirty)
622 updateHasSelfPaintingLayerDescendant(); 623 updateHasSelfPaintingLayerDescendant();
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 872
872 } // namespace blink 873 } // namespace blink
873 874
874 #ifndef NDEBUG 875 #ifndef NDEBUG
875 // Outside the WebCore namespace for ease of invocation from gdb. 876 // Outside the WebCore namespace for ease of invocation from gdb.
876 void showLayerTree(const blink::PaintLayer*); 877 void showLayerTree(const blink::PaintLayer*);
877 void showLayerTree(const blink::LayoutObject*); 878 void showLayerTree(const blink::LayoutObject*);
878 #endif 879 #endif
879 880
880 #endif // Layer_h 881 #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