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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 } 955 }
956 void setPreviousPaintPhaseDescendantBlockBackgroundsEmpty(bool isEmpty) { 956 void setPreviousPaintPhaseDescendantBlockBackgroundsEmpty(bool isEmpty) {
957 m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty = isEmpty; 957 m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty = isEmpty;
958 } 958 }
959 959
960 PaintTiming* paintTiming(); 960 PaintTiming* paintTiming();
961 961
962 ClipRectsCache* clipRectsCache() const { return m_clipRectsCache.get(); } 962 ClipRectsCache* clipRectsCache() const { return m_clipRectsCache.get(); }
963 ClipRectsCache& ensureClipRectsCache() const { 963 ClipRectsCache& ensureClipRectsCache() const {
964 if (!m_clipRectsCache) 964 if (!m_clipRectsCache)
965 m_clipRectsCache = wrapUnique(new ClipRectsCache); 965 m_clipRectsCache = WTF::wrapUnique(new ClipRectsCache);
966 return *m_clipRectsCache; 966 return *m_clipRectsCache;
967 } 967 }
968 void clearClipRectsCache() const { m_clipRectsCache.reset(); } 968 void clearClipRectsCache() const { m_clipRectsCache.reset(); }
969 969
970 void dirty3DTransformedDescendantStatus(); 970 void dirty3DTransformedDescendantStatus();
971 // Both updates the status, and returns true if descendants of this have 3d. 971 // Both updates the status, and returns true if descendants of this have 3d.
972 bool update3DTransformedDescendantStatus(); 972 bool update3DTransformedDescendantStatus();
973 bool has3DTransformedDescendant() const { 973 bool has3DTransformedDescendant() const {
974 DCHECK(!m_is3DTransformedDescendantDirty); 974 DCHECK(!m_is3DTransformedDescendantDirty);
975 return m_has3DTransformedDescendant; 975 return m_has3DTransformedDescendant;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 void removeAncestorOverflowLayer(const PaintLayer* removedLayer); 1084 void removeAncestorOverflowLayer(const PaintLayer* removedLayer);
1085 1085
1086 void updatePaginationRecursive(bool needsPaginationUpdate = false); 1086 void updatePaginationRecursive(bool needsPaginationUpdate = false);
1087 void clearPaginationRecursive(); 1087 void clearPaginationRecursive();
1088 1088
1089 void setNeedsRepaintInternal(); 1089 void setNeedsRepaintInternal();
1090 void markCompositingContainerChainForNeedsRepaint(); 1090 void markCompositingContainerChainForNeedsRepaint();
1091 1091
1092 PaintLayerRareData& ensureRareData() { 1092 PaintLayerRareData& ensureRareData() {
1093 if (!m_rareData) 1093 if (!m_rareData)
1094 m_rareData = wrapUnique(new PaintLayerRareData); 1094 m_rareData = WTF::wrapUnique(new PaintLayerRareData);
1095 return *m_rareData; 1095 return *m_rareData;
1096 } 1096 }
1097 1097
1098 void mergeNeedsPaintPhaseFlagsFrom(const PaintLayer& layer) { 1098 void mergeNeedsPaintPhaseFlagsFrom(const PaintLayer& layer) {
1099 m_needsPaintPhaseDescendantOutlines |= 1099 m_needsPaintPhaseDescendantOutlines |=
1100 layer.m_needsPaintPhaseDescendantOutlines; 1100 layer.m_needsPaintPhaseDescendantOutlines;
1101 m_needsPaintPhaseFloat |= layer.m_needsPaintPhaseFloat; 1101 m_needsPaintPhaseFloat |= layer.m_needsPaintPhaseFloat;
1102 m_needsPaintPhaseDescendantBlockBackgrounds |= 1102 m_needsPaintPhaseDescendantBlockBackgrounds |=
1103 layer.m_needsPaintPhaseDescendantBlockBackgrounds; 1103 layer.m_needsPaintPhaseDescendantBlockBackgrounds;
1104 } 1104 }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 1234
1235 } // namespace blink 1235 } // namespace blink
1236 1236
1237 #ifndef NDEBUG 1237 #ifndef NDEBUG
1238 // Outside the WebCore namespace for ease of invocation from gdb. 1238 // Outside the WebCore namespace for ease of invocation from gdb.
1239 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1239 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1240 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1240 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1241 #endif 1241 #endif
1242 1242
1243 #endif // Layer_h 1243 #endif // Layer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPaintProperties.h ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698