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

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

Issue 2605333002: [SPInvalidation] Fix fixed-position printing (Closed)
Patch Set: - Created 3 years, 12 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayerPainter.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.h b/third_party/WebKit/Source/core/paint/PaintLayerPainter.h
index 3e9f3494a226e09c42c396330d45fc9bcf672d08..2214bc5be536557651f1e18e8ff84932f1301141 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.h
@@ -56,7 +56,15 @@ class CORE_EXPORT PaintLayerPainter {
private:
enum ClipState { HasNotClipped, HasClipped };
- bool collectPaintFragmentsForPaginatedFixedPosition(
+ inline bool isFixedPositionObjectInPagedMedia();
+
+ // "For paged media, boxes with fixed positions are repeated on every page."
+ // https://www.w3.org/TR/2011/REC-CSS2-20110607/visuren.html#fixed-positioning
+ // Repeats singleFragmentIgnoredPagination of the fixed-position object in
+ // each page, with paginationOffset and layerBounds adjusted for each page.
+ // TODO(wangxianzhu): Fold this into PaintLayer::collectFragments().
+ void repeatFixedPositionObjectInPages(
+ const PaintLayerFragment& singleFragmentIgnoredPagination,
const PaintLayerPaintingInfo&,
PaintLayerFragments&);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698