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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 1419823005: Invalidate background-attachment:fixed on scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: Created 5 years, 2 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/frame/FrameView.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index a7e11670445cc2f999893b79637bf65c2604e720..6f7520744b63b39fefbdd18ecda4837c6e5913ca 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -188,10 +188,6 @@ public:
WebDisplayMode displayMode() { return m_displayMode; }
void setDisplayMode(WebDisplayMode);
- void addSlowRepaintObject();
- void removeSlowRepaintObject();
- bool hasSlowRepaintObjects() const { return m_slowRepaintObjectCount; }
-
// Fixed-position objects.
typedef HashSet<LayoutObject*> ViewportConstrainedObjectSet;
void addViewportConstrainedObject(LayoutObject*);
@@ -199,6 +195,12 @@ public:
const ViewportConstrainedObjectSet* viewportConstrainedObjects() const { return m_viewportConstrainedObjects.get(); }
bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObjects && m_viewportConstrainedObjects->size() > 0; }
+ // Objects with background-attachment:fixed.
+ void addBackgroundAttachmentFixedObject(LayoutObject*);
+ void removeBackgroundAttachmentFixedObject(LayoutObject*);
+ bool hasBackgroundAttachmentFixedObjects() const { return m_backgroundAttachmentFixedObjects.size(); }
+ void invalidateBackgroundAttachmentFixedObjects();
+
void handleLoadCompleted();
void updateDocumentAnnotatedRegions() const;
@@ -739,7 +741,6 @@ private:
bool m_doFullPaintInvalidation;
bool m_canHaveScrollbars;
- unsigned m_slowRepaintObjectCount;
bool m_hasPendingLayout;
LayoutSubtreeRootList m_layoutSubtreeRootList;
@@ -783,6 +784,7 @@ private:
OwnPtrWillBeMember<ScrollableAreaSet> m_animatingScrollableAreas;
OwnPtr<ResizerAreaSet> m_resizerAreas;
OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects;
+ ViewportConstrainedObjectSet m_backgroundAttachmentFixedObjects;
OwnPtrWillBeMember<FrameViewAutoSizeInfo> m_autoSizeInfo;
IntSize m_inputEventsOffsetForEmulation;

Powered by Google App Engine
This is Rietveld 408576698