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

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

Issue 2615203002: Remove multicol special-cases from invalidation and the pre-paint tree walk (Closed)
Patch Set: Cleanup comment Created 3 years, 11 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
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. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 void removeCursorImageClient(const CursorList*); 2060 void removeCursorImageClient(const CursorList*);
2061 2061
2062 #if DCHECK_IS_ON() 2062 #if DCHECK_IS_ON()
2063 void checkBlockPositionedObjectsNeedLayout(); 2063 void checkBlockPositionedObjectsNeedLayout();
2064 #endif 2064 #endif
2065 2065
2066 bool isTextOrSVGChild() const { return isText() || isSVGChild(); } 2066 bool isTextOrSVGChild() const { return isText() || isSVGChild(); }
2067 2067
2068 static bool isAllowedToModifyLayoutTreeStructure(Document&); 2068 static bool isAllowedToModifyLayoutTreeStructure(Document&);
2069 2069
2070 // Returns the parent for paint invalidation. 2070 // Returns the parent for paint invalidation. For LayoutView, returns the
2071 // - For LayoutView, returns the owner layout object in the containing frame 2071 // owner layout object in the containing frame if any, or nullptr.
2072 // if any or nullptr;
2073 // - For multi-column spanner, returns the spanner placeholder;
2074 // - Otherwise returns parent().
2075 inline LayoutObject* paintInvalidationParent() const; 2072 inline LayoutObject* paintInvalidationParent() const;
2076 LayoutObject* slowPaintInvalidationParentForTesting() const; 2073 LayoutObject* slowPaintInvalidationParentForTesting() const;
2077 2074
2078 RefPtr<ComputedStyle> m_style; 2075 RefPtr<ComputedStyle> m_style;
2079 2076
2080 // Oilpan: This untraced pointer to the owning Node is considered safe. 2077 // Oilpan: This untraced pointer to the owning Node is considered safe.
2081 UntracedMember<Node> m_node; 2078 UntracedMember<Node> m_node;
2082 2079
2083 LayoutObject* m_parent; 2080 LayoutObject* m_parent;
2084 LayoutObject* m_previous; 2081 LayoutObject* m_previous;
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2676 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2680 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2677 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2681 // We don't make object2 an optional parameter so that showLayoutTree 2678 // We don't make object2 an optional parameter so that showLayoutTree
2682 // can be called from gdb easily. 2679 // can be called from gdb easily.
2683 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2680 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2684 const blink::LayoutObject* object2); 2681 const blink::LayoutObject* object2);
2685 2682
2686 #endif 2683 #endif
2687 2684
2688 #endif // LayoutObject_h 2685 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698