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

Unified Diff: Source/core/layout/LayoutView.h

Issue 1145993002: Refactor root element background painting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase, adding back TestExpectation Created 5 years, 6 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 | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutView.h
diff --git a/Source/core/layout/LayoutView.h b/Source/core/layout/LayoutView.h
index 45d9a416b822c5fba03b600a3f430fe290984a52..c4d6aeb2277a7f25503cbba87b2396ec5e127a5c 100644
--- a/Source/core/layout/LayoutView.h
+++ b/Source/core/layout/LayoutView.h
@@ -143,6 +143,8 @@ public:
DeprecatedPaintLayerCompositor* compositor();
bool usesCompositing() const;
+ // TODO(trchen): All pinch-zoom implementation should now use compositor raster scale based zooming,
+ // instead of LayoutView transform. Check whether we can now unify unscaledDocumentRect and documentRect.
IntRect unscaledDocumentRect() const;
LayoutRect backgroundRect(LayoutBox* backgroundLayoutObject) const;
@@ -173,6 +175,8 @@ public:
void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState->next(); }
virtual void invalidateTreeIfNeeded(PaintInvalidationState&) override final;
+ virtual LayoutRect visualOverflowRect() const override;
+
private:
virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const PaintInvalidationState* = nullptr) const override;
virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ancestorToStopAt, LayoutGeometryMap&) const override;
@@ -188,8 +192,6 @@ private:
bool shouldUsePrintingLayout() const;
- LayoutObject* backgroundLayoutObject() const;
-
int viewLogicalWidthForBoxSizing() const;
int viewLogicalHeightForBoxSizing() const;
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698