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

Unified Diff: Source/platform/graphics/paint/FixedPositionDisplayItem.h

Issue 1284203004: Generate scroll/clip display item hierarchy for SPv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix assertion failure Created 5 years, 3 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: Source/platform/graphics/paint/FixedPositionDisplayItem.h
diff --git a/Source/platform/graphics/paint/FixedPositionDisplayItem.h b/Source/platform/graphics/paint/FixedPositionDisplayItem.h
index ce2bf6dc063d297ff21b319eac09ef89a52ad5b8..278f57d588030919c7dc1139708f49752b0237f0 100644
--- a/Source/platform/graphics/paint/FixedPositionDisplayItem.h
+++ b/Source/platform/graphics/paint/FixedPositionDisplayItem.h
@@ -14,11 +14,24 @@ namespace blink {
class PLATFORM_EXPORT BeginFixedPositionDisplayItem final : public PairedBeginDisplayItem {
public:
- BeginFixedPositionDisplayItem(const DisplayItemClientWrapper& client)
- : PairedBeginDisplayItem(client, BeginFixedPosition, sizeof(*this)) { }
+ BeginFixedPositionDisplayItem(const DisplayItemClientWrapper& client, const DisplayItemClientWrapper& anchor)
+ : PairedBeginDisplayItem(client, BeginFixedPosition, sizeof(*this)), m_anchor(anchor.displayItemClient()) { }
void replay(GraphicsContext&) final { }
void appendToWebDisplayItemList(WebDisplayItemList*) const final;
+
+ DisplayItemClient anchor() const { return m_anchor; }
jbroman 2015/09/09 19:58:31 nit: Would you mind a comment (here or as a class
+
+ // Note: This is only temporarily workaround before we implement true
+ // transform-tree-based rasterization. Do not use.
+ void setCounterScroll(const FloatSize& counterScroll) const { m_counterScroll = counterScroll; }
+
+private:
+ // Note: This is only temporarily workaround before we implement true
+ // transform-tree-based rasterization. Do not use.
+ mutable FloatSize m_counterScroll;
+
+ DisplayItemClient m_anchor;
};
class PLATFORM_EXPORT EndFixedPositionDisplayItem final : public PairedEndDisplayItem {

Powered by Google App Engine
This is Rietveld 408576698