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

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

Issue 1911473002: Rename transformToRoot:ish names to screenScaleFactorChanged:ish ones (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@svg-hiddencontainer-layout-no-xfrmchg
Patch Set: Update comment in LayoutSVGText. 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) 2007 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class ComputedStyle; 43 class ComputedStyle;
44 class LayoutSVGRoot; 44 class LayoutSVGRoot;
45 class SVGLengthContext; 45 class SVGLengthContext;
46 class StrokeData; 46 class StrokeData;
47 class TransformState; 47 class TransformState;
48 48
49 class CORE_EXPORT SVGLayoutSupport { 49 class CORE_EXPORT SVGLayoutSupport {
50 STATIC_ONLY(SVGLayoutSupport); 50 STATIC_ONLY(SVGLayoutSupport);
51 public: 51 public:
52 // Shares child layouting code between LayoutSVGRoot/LayoutSVG(Hidden)Contai ner 52 // Shares child layouting code between LayoutSVGRoot/LayoutSVG(Hidden)Contai ner
53 static void layoutChildren(LayoutObject*, bool forceLayout, bool transformCh anged, bool layoutSizeChanged); 53 static void layoutChildren(LayoutObject*, bool forceLayout, bool screenScali ngFactorChanged, bool layoutSizeChanged);
54 54
55 // Layout resources used by this node. 55 // Layout resources used by this node.
56 static void layoutResourcesIfNeeded(const LayoutObject*); 56 static void layoutResourcesIfNeeded(const LayoutObject*);
57 57
58 // Helper function determining whether overflow is hidden. 58 // Helper function determining whether overflow is hidden.
59 static bool isOverflowHidden(const LayoutObject*); 59 static bool isOverflowHidden(const LayoutObject*);
60 60
61 // Calculates the paintInvalidationRect in combination with filter, clipper and masker in local coordinates. 61 // Calculates the paintInvalidationRect in combination with filter, clipper and masker in local coordinates.
62 static void intersectPaintInvalidationRectWithResources(const LayoutObject*, FloatRect&); 62 static void intersectPaintInvalidationRectWithResources(const LayoutObject*, FloatRect&);
63 63
(...skipping 17 matching lines...) Expand all
81 static bool mapToVisualRectInAncestorSpace(const LayoutObject&, const Layout BoxModelObject* ancestor, const FloatRect& localPaintInvalidationRect, LayoutRec t& resultRect, VisualRectFlags = DefaultVisualRectFlags); 81 static bool mapToVisualRectInAncestorSpace(const LayoutObject&, const Layout BoxModelObject* ancestor, const FloatRect& localPaintInvalidationRect, LayoutRec t& resultRect, VisualRectFlags = DefaultVisualRectFlags);
82 static void mapLocalToAncestor(const LayoutObject*, const LayoutBoxModelObje ct* ancestor, TransformState&); 82 static void mapLocalToAncestor(const LayoutObject*, const LayoutBoxModelObje ct* ancestor, TransformState&);
83 static void mapAncestorToLocal(const LayoutObject&, const LayoutBoxModelObje ct* ancestor, TransformState&); 83 static void mapAncestorToLocal(const LayoutObject&, const LayoutBoxModelObje ct* ancestor, TransformState&);
84 static const LayoutObject* pushMappingToContainer(const LayoutObject*, const LayoutBoxModelObject* ancestorToStopAt, LayoutGeometryMap&); 84 static const LayoutObject* pushMappingToContainer(const LayoutObject*, const LayoutBoxModelObject* ancestorToStopAt, LayoutGeometryMap&);
85 85
86 // Shared between SVG layoutObjects and resources. 86 // Shared between SVG layoutObjects and resources.
87 static void applyStrokeStyleToStrokeData(StrokeData&, const ComputedStyle&, const LayoutObject&, float dashScaleFactor); 87 static void applyStrokeStyleToStrokeData(StrokeData&, const ComputedStyle&, const LayoutObject&, float dashScaleFactor);
88 88
89 static DashArray resolveSVGDashArray(const SVGDashArray&, const ComputedStyl e&, const SVGLengthContext&); 89 static DashArray resolveSVGDashArray(const SVGDashArray&, const ComputedStyl e&, const SVGLengthContext&);
90 90
91 // Determines if any ancestor's transform has changed. 91 // Determines if any ancestor has adjusted the scale factor.
92 static bool transformToRootChanged(const LayoutObject*); 92 static bool screenScaleFactorChanged(const LayoutObject*);
93 93
94 // Determines if any ancestor's layout size has changed. 94 // Determines if any ancestor's layout size has changed.
95 static bool layoutSizeOfNearestViewportChanged(const LayoutObject*); 95 static bool layoutSizeOfNearestViewportChanged(const LayoutObject*);
96 96
97 // FIXME: These methods do not belong here. 97 // FIXME: These methods do not belong here.
98 static const LayoutSVGRoot* findTreeRootObject(const LayoutObject*); 98 static const LayoutSVGRoot* findTreeRootObject(const LayoutObject*);
99 99
100 // Helper method for determining if a LayoutObject marked as text (isText()= = true) 100 // Helper method for determining if a LayoutObject marked as text (isText()= = true)
101 // can/will be laid out as part of a <text>. 101 // can/will be laid out as part of a <text>.
102 static bool isLayoutableTextNode(const LayoutObject*); 102 static bool isLayoutableTextNode(const LayoutObject*);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return true; 138 return true;
139 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe scendantsForObject(child)) 139 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe scendantsForObject(child))
140 return true; 140 return true;
141 } 141 }
142 return false; 142 return false;
143 } 143 }
144 144
145 } // namespace blink 145 } // namespace blink
146 146
147 #endif // SVGLayoutSupport_h 147 #endif // SVGLayoutSupport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698