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

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

Issue 1516683002: Introducing LayoutObject::mapToVisibleRectInContainerSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix flipping logic Created 5 years 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 computeIntrinsicRatioInformation(FloatSize& intrinsicSize, double& intr insicRatio) const override; 40 void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, double& intr insicRatio) const override;
41 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const override; 41 void mapToVisibleRectInContainerSpace(const LayoutBoxModelObject* paintInval idationContainer, LayoutRect&, const PaintInvalidationState*) 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool m_hasBoxDecorationBackground : 1; 127 bool m_hasBoxDecorationBackground : 1;
128 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 128 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
129 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 129 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
130 }; 130 };
131 131
132 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); 132 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot());
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // LayoutSVGRoot_h 136 #endif // LayoutSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698