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

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

Issue 1868013002: Percent height in auto height containers no longer computes as auto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@303728-6
Patch Set: Updated Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009 Google, Inc. All rights reserved. 4 * Copyright (C) 2009 Google, Inc. All rights reserved.
5 * Copyright (C) 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2009 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 private: 72 private:
73 const LayoutObjectChildList* children() const { return &m_children; } 73 const LayoutObjectChildList* children() const { return &m_children; }
74 LayoutObjectChildList* children() { return &m_children; } 74 LayoutObjectChildList* children() { return &m_children; }
75 75
76 LayoutObjectChildList* virtualChildren() override { return children(); } 76 LayoutObjectChildList* virtualChildren() override { return children(); }
77 const LayoutObjectChildList* virtualChildren() const override { return child ren(); } 77 const LayoutObjectChildList* virtualChildren() const override { return child ren(); }
78 78
79 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVG || type == LayoutObjectSVGRoot || LayoutReplaced::isOfType(type); } 79 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVG || type == LayoutObjectSVGRoot || LayoutReplaced::isOfType(type); }
80 80
81 LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = ComputeActu al) const override; 81 LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = ComputeActu al) const override;
82 LayoutUnit computeReplacedLogicalHeight() const override; 82 LayoutUnit computeReplacedLogicalHeight(LayoutUnit estimatedUsedWidth = Layo utUnit()) const override;
83 void layout() override; 83 void layout() override;
84 void paintReplaced(const PaintInfo&, const LayoutPoint&) const override; 84 void paintReplaced(const PaintInfo&, const LayoutPoint&) const override;
85 85
86 void willBeDestroyed() override; 86 void willBeDestroyed() override;
87 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 87 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
88 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; 88 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
89 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride; 89 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride;
90 void removeChild(LayoutObject*) override; 90 void removeChild(LayoutObject*) override;
91 91
92 void insertedIntoTree() override; 92 void insertedIntoTree() override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool m_hasBoxDecorationBackground : 1; 128 bool m_hasBoxDecorationBackground : 1;
129 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 129 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
130 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 130 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
131 }; 131 };
132 132
133 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); 133 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot());
134 134
135 } // namespace blink 135 } // namespace blink
136 136
137 #endif // LayoutSVGRoot_h 137 #endif // LayoutSVGRoot_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutVideo.cpp ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698