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

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

Issue 2218763002: CL for perf tryjob on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after
1664 static bool isAllowedToModifyLayoutTreeStructure(Document&); 1664 static bool isAllowedToModifyLayoutTreeStructure(Document&);
1665 1665
1666 // Returns the parent for paint invalidation. 1666 // Returns the parent for paint invalidation.
1667 // - For LayoutView, returns the owner layout object in the containing frame if any or nullptr; 1667 // - For LayoutView, returns the owner layout object in the containing frame if any or nullptr;
1668 // - For multi-column spanner, returns the spanner placeholder; 1668 // - For multi-column spanner, returns the spanner placeholder;
1669 // - Otherwise returns parent(). 1669 // - Otherwise returns parent().
1670 LayoutObject* paintInvalidationParent() const; 1670 LayoutObject* paintInvalidationParent() const;
1671 1671
1672 static LayoutPoint uninitializedPaintOffset() { return LayoutPoint(LayoutUni t::max(), LayoutUnit::max()); } 1672 static LayoutPoint uninitializedPaintOffset() { return LayoutPoint(LayoutUni t::max(), LayoutUnit::max()); }
1673 1673
1674 // This stores the position in the paint invalidation backing's coordinate.
1675 // It is used to detect layoutObject shifts that forces a full invalidation.
1676 // This point does *not* account for composited scrolling. See adjustInvalid ationRectForCompositedScrolling().
1677 // For slimmingPaintInvalidation, this stores the previous paint offset.
1678 // TODO(wangxianzhu): Rename this to m_previousPaintOffset when we enable sl immingPaintInvalidation.
1679 LayoutPoint m_previousPositionFromPaintInvalidationBacking;
1680
1681 // This stores the paint invalidation rect from the previous frame. This rec t does *not* account for composited scrolling. See
1682 // adjustInvalidationRectForCompositedScrolling().
1683 LayoutRect m_previousPaintInvalidationRect;
1684
1685 RefPtr<ComputedStyle> m_style; 1674 RefPtr<ComputedStyle> m_style;
1686 1675
1687 // Oilpan: This untraced pointer to the owning Node is considered safe. 1676 // Oilpan: This untraced pointer to the owning Node is considered safe.
1688 UntracedMember<Node> m_node; 1677 UntracedMember<Node> m_node;
1689 1678
1690 LayoutObject* m_parent; 1679 LayoutObject* m_parent;
1691 LayoutObject* m_previous; 1680 LayoutObject* m_previous;
1692 LayoutObject* m_next; 1681 LayoutObject* m_next;
1693 1682
1694 #if ENABLE(ASSERT) 1683 #if ENABLE(ASSERT)
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1949 void setNormalChildNeedsLayout(bool b) { m_bitfields.setNormalChildNeedsLayo ut(b); } 1938 void setNormalChildNeedsLayout(bool b) { m_bitfields.setNormalChildNeedsLayo ut(b); }
1950 void setPosChildNeedsLayout(bool b) { m_bitfields.setPosChildNeedsLayout(b); } 1939 void setPosChildNeedsLayout(bool b) { m_bitfields.setPosChildNeedsLayout(b); }
1951 void setNeedsSimplifiedNormalFlowLayout(bool b) { m_bitfields.setNeedsSimpli fiedNormalFlowLayout(b); } 1940 void setNeedsSimplifiedNormalFlowLayout(bool b) { m_bitfields.setNeedsSimpli fiedNormalFlowLayout(b); }
1952 void setIsDragging(bool b) { m_bitfields.setIsDragging(b); } 1941 void setIsDragging(bool b) { m_bitfields.setIsDragging(b); }
1953 void setSelfNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setSelfNeeds OverflowRecalcAfterStyleChange(true); } 1942 void setSelfNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setSelfNeeds OverflowRecalcAfterStyleChange(true); }
1954 void setChildNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setChildNee dsOverflowRecalcAfterStyleChange(true); } 1943 void setChildNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setChildNee dsOverflowRecalcAfterStyleChange(true); }
1955 1944
1956 private: 1945 private:
1957 // Store state between styleWillChange and styleDidChange 1946 // Store state between styleWillChange and styleDidChange
1958 static bool s_affectsParentBlock; 1947 static bool s_affectsParentBlock;
1948
1949 // This stores the paint invalidation rect from the previous frame. This rec t does *not* account for composited scrolling. See
1950 // adjustInvalidationRectForCompositedScrolling().
1951 LayoutRect m_previousPaintInvalidationRect;
1952
1953 // This stores the position in the paint invalidation backing's coordinate.
1954 // It is used to detect layoutObject shifts that forces a full invalidation.
1955 // This point does *not* account for composited scrolling. See adjustInvalid ationRectForCompositedScrolling().
1956 // For slimmingPaintInvalidation, this stores the previous paint offset.
1957 // TODO(wangxianzhu): Rename this to m_previousPaintOffset when we enable sl immingPaintInvalidation.
1958 LayoutPoint m_previousPositionFromPaintInvalidationBacking;
1959 }; 1959 };
1960 1960
1961 // FIXME: remove this once the layout object lifecycle ASSERTS are no longer hit . 1961 // FIXME: remove this once the layout object lifecycle ASSERTS are no longer hit .
1962 class DeprecatedDisableModifyLayoutTreeStructureAsserts { 1962 class DeprecatedDisableModifyLayoutTreeStructureAsserts {
1963 STACK_ALLOCATED(); 1963 STACK_ALLOCATED();
1964 WTF_MAKE_NONCOPYABLE(DeprecatedDisableModifyLayoutTreeStructureAsserts); 1964 WTF_MAKE_NONCOPYABLE(DeprecatedDisableModifyLayoutTreeStructureAsserts);
1965 public: 1965 public:
1966 DeprecatedDisableModifyLayoutTreeStructureAsserts(); 1966 DeprecatedDisableModifyLayoutTreeStructureAsserts();
1967 1967
1968 static bool canModifyLayoutTreeStateInAnyState(); 1968 static bool canModifyLayoutTreeStateInAnyState();
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
2180 void showTree(const blink::LayoutObject*); 2180 void showTree(const blink::LayoutObject*);
2181 void showLineTree(const blink::LayoutObject*); 2181 void showLineTree(const blink::LayoutObject*);
2182 void showLayoutTree(const blink::LayoutObject* object1); 2182 void showLayoutTree(const blink::LayoutObject* object1);
2183 // We don't make object2 an optional parameter so that showLayoutTree 2183 // We don't make object2 an optional parameter so that showLayoutTree
2184 // can be called from gdb easily. 2184 // can be called from gdb easily.
2185 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2185 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2186 2186
2187 #endif 2187 #endif
2188 2188
2189 #endif // LayoutObject_h 2189 #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