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

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

Issue 1817693002: Support edge-inclusive intersections in mapToVisibleRectInAncestorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer-idle-callback
Patch Set: more tests Created 4 years, 9 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 20 matching lines...) Expand all
31 31
32 class LayoutSVGRoot final : public LayoutReplaced { 32 class LayoutSVGRoot final : public LayoutReplaced {
33 public: 33 public:
34 explicit LayoutSVGRoot(SVGElement*); 34 explicit LayoutSVGRoot(SVGElement*);
35 ~LayoutSVGRoot() override; 35 ~LayoutSVGRoot() override;
36 36
37 bool isEmbeddedThroughSVGImage() const; 37 bool isEmbeddedThroughSVGImage() const;
38 bool isEmbeddedThroughFrameContainingSVGDocument() const; 38 bool isEmbeddedThroughFrameContainingSVGDocument() const;
39 39
40 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override; 40 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override;
41 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*) const override; 41 bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*, VisibleRectFlags = DefaultVisibleRect Flags) const override;
42 42
43 // If you have a LayoutSVGRoot, use firstChild or lastChild instead. 43 // If you have a LayoutSVGRoot, use firstChild or lastChild instead.
44 void slowFirstChild() const = delete; 44 void slowFirstChild() const = delete;
45 void slowLastChild() const = delete; 45 void slowLastChild() const = delete;
46 46
47 LayoutObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } 47 LayoutObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
48 LayoutObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); } 48 LayoutObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); }
49 49
50 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } 50 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; }
51 void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransformUpdat e = true; } 51 void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransformUpdat e = true; }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 bool m_hasBoxDecorationBackground : 1; 129 bool m_hasBoxDecorationBackground : 1;
130 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 130 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
131 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 131 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
132 }; 132 };
133 133
134 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); 134 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot());
135 135
136 } // namespace blink 136 } // namespace blink
137 137
138 #endif // LayoutSVGRoot_h 138 #endif // LayoutSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698