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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2095013003: Changes in DisplayItemClient for spv2 paint invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 static bool isAllowedToModifyLayoutTreeStructure(Document&); 1660 static bool isAllowedToModifyLayoutTreeStructure(Document&);
1661 1661
1662 // Returns the parent for paint invalidation. 1662 // Returns the parent for paint invalidation.
1663 // - For LayoutView, returns the owner layout object in the containing frame if any or nullptr; 1663 // - For LayoutView, returns the owner layout object in the containing frame if any or nullptr;
1664 // - For multi-column spanner, returns the spanner placeholder; 1664 // - For multi-column spanner, returns the spanner placeholder;
1665 // - Otherwise returns parent(). 1665 // - Otherwise returns parent().
1666 LayoutObject* paintInvalidationParent() const; 1666 LayoutObject* paintInvalidationParent() const;
1667 1667
1668 static LayoutPoint uninitializedPaintOffset() { return LayoutPoint(LayoutUni t::max(), LayoutUnit::max()); } 1668 static LayoutPoint uninitializedPaintOffset() { return LayoutPoint(LayoutUni t::max(), LayoutUnit::max()); }
1669 1669
1670 // This stores the position in the paint invalidation backing's coordinate.
1671 // It is used to detect layoutObject shifts that forces a full invalidation.
1672 // This point does *not* account for composited scrolling. See adjustInvalid ationRectForCompositedScrolling().
1673 // For slimmingPaintInvalidation, this stores the previous paint offset.
1674 // TODO(wangxianzhu): Rename this to m_previousPaintOffset when we enable sl immingPaintInvalidation.
1675 LayoutPoint m_previousPositionFromPaintInvalidationBacking;
1676
1677 // This stores the paint invalidation rect from the previous frame. This rec t does *not* account for composited scrolling. See
1678 // adjustInvalidationRectForCompositedScrolling().
1679 LayoutRect m_previousPaintInvalidationRect;
1680
1670 RefPtr<ComputedStyle> m_style; 1681 RefPtr<ComputedStyle> m_style;
1671 1682
1672 // Oilpan: This untraced pointer to the owning Node is considered safe. 1683 // Oilpan: This untraced pointer to the owning Node is considered safe.
1673 UntracedMember<Node> m_node; 1684 UntracedMember<Node> m_node;
1674 1685
1675 LayoutObject* m_parent; 1686 LayoutObject* m_parent;
1676 LayoutObject* m_previous; 1687 LayoutObject* m_previous;
1677 LayoutObject* m_next; 1688 LayoutObject* m_next;
1678 1689
1679 #if ENABLE(ASSERT) 1690 #if ENABLE(ASSERT)
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 void setNormalChildNeedsLayout(bool b) { m_bitfields.setNormalChildNeedsLayo ut(b); } 1947 void setNormalChildNeedsLayout(bool b) { m_bitfields.setNormalChildNeedsLayo ut(b); }
1937 void setPosChildNeedsLayout(bool b) { m_bitfields.setPosChildNeedsLayout(b); } 1948 void setPosChildNeedsLayout(bool b) { m_bitfields.setPosChildNeedsLayout(b); }
1938 void setNeedsSimplifiedNormalFlowLayout(bool b) { m_bitfields.setNeedsSimpli fiedNormalFlowLayout(b); } 1949 void setNeedsSimplifiedNormalFlowLayout(bool b) { m_bitfields.setNeedsSimpli fiedNormalFlowLayout(b); }
1939 void setIsDragging(bool b) { m_bitfields.setIsDragging(b); } 1950 void setIsDragging(bool b) { m_bitfields.setIsDragging(b); }
1940 void setSelfNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setSelfNeeds OverflowRecalcAfterStyleChange(true); } 1951 void setSelfNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setSelfNeeds OverflowRecalcAfterStyleChange(true); }
1941 void setChildNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setChildNee dsOverflowRecalcAfterStyleChange(true); } 1952 void setChildNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setChildNee dsOverflowRecalcAfterStyleChange(true); }
1942 1953
1943 private: 1954 private:
1944 // Store state between styleWillChange and styleDidChange 1955 // Store state between styleWillChange and styleDidChange
1945 static bool s_affectsParentBlock; 1956 static bool s_affectsParentBlock;
1946
1947 // This stores the paint invalidation rect from the previous frame. This rec t does *not* account for composited scrolling. See
1948 // adjustInvalidationRectForCompositedScrolling().
1949 LayoutRect m_previousPaintInvalidationRect;
1950
1951 // This stores the position in the paint invalidation backing's coordinate.
1952 // It is used to detect layoutObject shifts that forces a full invalidation.
1953 // This point does *not* account for composited scrolling. See adjustInvalid ationRectForCompositedScrolling().
1954 // For slimmingPaintInvalidation, this stores the previous paint offset.
1955 // TODO(wangxianzhu): Rename this to m_previousPaintOffset when we enable sl immingPaintInvalidation.
1956 LayoutPoint m_previousPositionFromPaintInvalidationBacking;
1957
1958 DISPLAY_ITEM_CACHE_STATUS_IMPLEMENTATION
1959 }; 1957 };
1960 1958
1961 // FIXME: remove this once the layout object lifecycle ASSERTS are no longer hit . 1959 // FIXME: remove this once the layout object lifecycle ASSERTS are no longer hit .
1962 class DeprecatedDisableModifyLayoutTreeStructureAsserts { 1960 class DeprecatedDisableModifyLayoutTreeStructureAsserts {
1963 STACK_ALLOCATED(); 1961 STACK_ALLOCATED();
1964 WTF_MAKE_NONCOPYABLE(DeprecatedDisableModifyLayoutTreeStructureAsserts); 1962 WTF_MAKE_NONCOPYABLE(DeprecatedDisableModifyLayoutTreeStructureAsserts);
1965 public: 1963 public:
1966 DeprecatedDisableModifyLayoutTreeStructureAsserts(); 1964 DeprecatedDisableModifyLayoutTreeStructureAsserts();
1967 1965
1968 static bool canModifyLayoutTreeStateInAnyState(); 1966 static bool canModifyLayoutTreeStateInAnyState();
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
2181 void showTree(const blink::LayoutObject*); 2179 void showTree(const blink::LayoutObject*);
2182 void showLineTree(const blink::LayoutObject*); 2180 void showLineTree(const blink::LayoutObject*);
2183 void showLayoutTree(const blink::LayoutObject* object1); 2181 void showLayoutTree(const blink::LayoutObject* object1);
2184 // We don't make object2 an optional parameter so that showLayoutTree 2182 // We don't make object2 an optional parameter so that showLayoutTree
2185 // can be called from gdb easily. 2183 // can be called from gdb easily.
2186 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2184 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2187 2185
2188 #endif 2186 #endif
2189 2187
2190 #endif // LayoutObject_h 2188 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698