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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2851763004: Remove LayoutObject::LayerCreationAllowedForSubtree. (Closed)
Patch Set: Created 3 years, 8 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/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index c726bbd57bde6cceff589c250d78bf944f2a1b3f..4bb9fbdb1d379947fbe402f565196716af1a9962 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1995,8 +1995,6 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
};
virtual bool IsOfType(LayoutObjectType type) const { return false; }
- inline bool LayerCreationAllowedForSubtree() const;
-
// Overrides should call the superclass at the end. m_style will be 0 the
// first time this function will be called.
virtual void StyleWillChange(StyleDifference, const ComputedStyle& new_style);
@@ -2736,17 +2734,6 @@ inline bool LayoutObject::PreservesNewline() const {
return Style()->PreserveNewline();
}
-inline bool LayoutObject::LayerCreationAllowedForSubtree() const {
- LayoutObject* parent_layout_object = Parent();
- while (parent_layout_object) {
- if (parent_layout_object->IsSVGHiddenContainer())
- return false;
- parent_layout_object = parent_layout_object->Parent();
- }
-
- return true;
-}
-
inline void LayoutObject::SetSelectionStateIfNeeded(SelectionState state) {
if (GetSelectionState() == state)
return;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698