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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPainterBase.h

Issue 2842983002: [LayoutNG] Paint inlines from the fragment tree
Patch Set: Basic box painting support Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/BoxPainterBase.h
diff --git a/third_party/WebKit/Source/core/paint/BoxPainterBase.h b/third_party/WebKit/Source/core/paint/BoxPainterBase.h
index 0f500530bc7f7aec4bd069ccf73e27f62b13bbfc..22e49fc5b03c91664c0c73c952c7bc50bd10a3d5 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainterBase.h
+++ b/third_party/WebKit/Source/core/paint/BoxPainterBase.h
@@ -16,6 +16,7 @@ class Document;
class FloatRoundedRect;
class LayoutPoint;
class LayoutRect;
+class FillLayer;
struct PaintInfo;
// Base class for box painting. Has no dependencies on the layout tree and thus
@@ -56,6 +57,17 @@ class BoxPainterBase {
LayoutRect BoundsForDrawingRecorder(const PaintInfo&,
const LayoutPoint& adjusted_paint_offset);
+
+ typedef Vector<const FillLayer*, 8> FillLayerOcclusionOutputList;
+ // Returns true if the result fill layers have non-associative blending or
+ // compositing mode. (i.e. The rendering will be different without creating
+ // isolation group by context.saveLayer().) Note that the output list will be
+ // in top-bottom order.
+ bool CalculateFillLayerOcclusionCulling(
+ FillLayerOcclusionOutputList& reversed_paint_list,
+ const FillLayer&,
+ const Document&,
+ const ComputedStyle&);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698