summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/paint/paint_property_tree_builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/paint/paint_property_tree_builder.h')
-rw-r--r--chromium/third_party/blink/renderer/core/paint/paint_property_tree_builder.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/paint/paint_property_tree_builder.h b/chromium/third_party/blink/renderer/core/paint/paint_property_tree_builder.h
index 5ae019dbc8f..4248108a7c9 100644
--- a/chromium/third_party/blink/renderer/core/paint/paint_property_tree_builder.h
+++ b/chromium/third_party/blink/renderer/core/paint/paint_property_tree_builder.h
@@ -20,6 +20,7 @@ class LayoutObject;
class LayoutTableSection;
class LocalFrameView;
class PaintLayer;
+class VisualViewport;
// The context for PaintPropertyTreeBuilder.
// It's responsible for bookkeeping tree state in other order, for example, the
@@ -106,6 +107,8 @@ struct PaintPropertyTreeBuilderFragmentContext {
// The repeated paintings need to add an adjustment to the calculated paint
// offset to paint at the desired place.
LayoutSize repeating_paint_offset_adjustment;
+
+ LayoutPoint old_paint_offset;
};
struct PaintPropertyTreeBuilderContext {
@@ -160,6 +163,13 @@ struct PaintPropertyTreeBuilderContext {
bool supports_composited_raster_invalidation = true;
};
+class VisualViewportPaintPropertyTreeBuilder {
+ public:
+ // Update the paint properties for the visual viewport and ensure the context
+ // is up to date.
+ static void Update(VisualViewport&, PaintPropertyTreeBuilderContext&);
+};
+
// Creates paint property tree nodes for non-local effects in the layout tree.
// Non-local effects include but are not limited to: overflow clip, transform,
// fixed-pos, animation, mask, filters, etc. It expects to be invoked for each