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

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

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 virtual void insertedIntoTree() override; 93 virtual void insertedIntoTree() override;
94 virtual void willBeRemovedFromTree() override; 94 virtual void willBeRemovedFromTree() override;
95 95
96 virtual const AffineTransform& localToParentTransform() const override; 96 virtual const AffineTransform& localToParentTransform() const override;
97 97
98 virtual FloatRect objectBoundingBox() const override { return m_objectBoundi ngBox; } 98 virtual FloatRect objectBoundingBox() const override { return m_objectBoundi ngBox; }
99 virtual FloatRect strokeBoundingBox() const override { return m_strokeBoundi ngBox; } 99 virtual FloatRect strokeBoundingBox() const override { return m_strokeBoundi ngBox; }
100 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override { return m_paintInvalidationBoundingBox; } 100 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override { return m_paintInvalidationBoundingBox; }
101 101
102 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) override; 102 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
103 103
104 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const override; 104 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const override;
105 105
106 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = 0, const PaintInvalidationState* = 0) const override; 106 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = 0, const PaintInvalidationState* = 0) const override;
107 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const override; 107 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const override;
108 108
109 virtual bool canBeSelectionLeaf() const override { return false; } 109 virtual bool canBeSelectionLeaf() const override { return false; }
110 virtual bool canHaveChildren() const override { return true; } 110 virtual bool canHaveChildren() const override { return true; }
111 111
112 virtual void descendantIsolationRequirementsChanged(DescendantIsolationState ) override final; 112 virtual void descendantIsolationRequirementsChanged(DescendantIsolationState ) override final;
(...skipping 14 matching lines...) Expand all
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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceClipper.cpp ('k') | Source/core/layout/svg/LayoutSVGRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698