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

Unified Diff: Source/core/paint/ViewDisplayList.cpp

Issue 744163002: Enable fast/images with slimming paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix VirtualTestSuites. Created 6 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 side-by-side diff with in-line comments
Download patch
« Source/core/paint/ViewDisplayList.h ('K') | « Source/core/paint/ViewDisplayList.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ViewDisplayList.cpp
diff --git a/Source/core/paint/ViewDisplayList.cpp b/Source/core/paint/ViewDisplayList.cpp
index 79de5be850f6466f2ca08201ac805baecd2dfc4d..a531565a5f2e227b364fba9d22a88d4064208c78 100644
--- a/Source/core/paint/ViewDisplayList.cpp
+++ b/Source/core/paint/ViewDisplayList.cpp
@@ -114,6 +114,44 @@ void ViewDisplayList::updatePaintList()
m_paintListRenderers.swap(updatedRenderers);
}
+DisplayItem::Type DisplayItem::paintPhaseToClipType(PaintPhase paintPhase)
chrishtr 2014/11/25 00:29:58 IT's weird that this is in ViewDisplayList.cpp.
+{
+ switch (paintPhase) {
+ case PaintPhaseChildBlockBackgrounds:
+ return DisplayItem::ClipBoxChildBlockBackgrounds;
+ break;
+ case PaintPhaseFloat:
+ return DisplayItem::ClipBoxFloat;
+ break;
+ case PaintPhaseForeground:
+ return DisplayItem::ClipBoxChildBlockBackgrounds;
+ break;
+ case PaintPhaseChildOutlines:
+ return DisplayItem::ClipBoxChildOutlines;
+ break;
+ case PaintPhaseSelection:
+ return DisplayItem::ClipBoxSelection;
+ break;
+ case PaintPhaseCollapsedTableBorders:
+ return DisplayItem::ClipBoxCollapsedTableBorders;
+ break;
+ case PaintPhaseTextClip:
+ return DisplayItem::ClipBoxTextClip;
+ break;
+ case PaintPhaseClippingMask:
+ return DisplayItem::ClipBoxClippingMask;
+ break;
+ case PaintPhaseChildBlockBackground:
+ case PaintPhaseOutline:
+ case PaintPhaseBlockBackground:
+ case PaintPhaseSelfOutline:
+ case PaintPhaseMask:
+ ASSERT_NOT_REACHED();
+ }
+ // This should never happen.
+ return ClipBoxForeground;
+}
+
#ifndef NDEBUG
WTF::String DisplayItem::typeAsDebugString(DisplayItem::Type type)
{
@@ -148,6 +186,7 @@ WTF::String DisplayItem::typeAsDebugString(DisplayItem::Type type)
case DisplayItem::EndClip: return "EndClip";
case DisplayItem::BeginFilter: return "BeginFilter";
case DisplayItem::EndFilter: return "EndFilter";
+ case DisplayItem::TransparencyClip: return "TransparencyClip";
case DisplayItem::BeginTransparency: return "BeginTransparency";
case DisplayItem::EndTransparency: return "EndTransparency";
case ClipBoxChildBlockBackgrounds: return "ClipBoxChildBlockBackgrounds";
« Source/core/paint/ViewDisplayList.h ('K') | « Source/core/paint/ViewDisplayList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698