OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
nullptr, const PaintInvalidationState* = nullptr) const final; | 57 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
nullptr, const PaintInvalidationState* = nullptr) const final; |
58 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const final; | 58 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const final; |
59 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 59 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
60 | 60 |
61 void computeLayerHitTestRects(LayerHitTestRects&) const final; | 61 void computeLayerHitTestRects(LayerHitTestRects&) const final; |
62 | 62 |
63 SVGElement* element() const { return toSVGElement(LayoutObject::node()); } | 63 SVGElement* element() const { return toSVGElement(LayoutObject::node()); } |
64 | 64 |
65 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVG || LayoutObject::isOfType(type); } | 65 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVG || LayoutObject::isOfType(type); } |
66 | 66 |
| 67 // TODO(pdr): The outline extent should be included in paintInvalidationRect
InLocalCoordinates. |
| 68 // Returns the paint invalidation size inflated for the outline extent. |
| 69 LayoutRect outlineVisualOverflowRect() const; |
| 70 |
67 protected: | 71 protected: |
68 void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintLayer* cu
rrentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& containe
rRect) const final; | 72 void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintLayer* cu
rrentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& containe
rRect) const final; |
69 void willBeDestroyed() override; | 73 void willBeDestroyed() override; |
70 | 74 |
71 private: | 75 private: |
72 // LayoutSVGModelObject subclasses should use element() instead. | 76 // LayoutSVGModelObject subclasses should use element() instead. |
73 void node() const = delete; | 77 void node() const = delete; |
74 | 78 |
75 // This method should never be called, SVG uses a different nodeAtPoint meth
od | 79 // This method should never be called, SVG uses a different nodeAtPoint meth
od |
76 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) final; | 80 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) final; |
77 IntRect absoluteOutlineBoundingBoxRect() const final; | 81 IntRect absoluteOutlineBoundingBoxRect() const final; |
78 | 82 |
79 void invalidateTreeIfNeeded(PaintInvalidationState&) final; | 83 void invalidateTreeIfNeeded(PaintInvalidationState&) final; |
80 | 84 |
81 protected: | 85 protected: |
82 FloatRect m_paintInvalidationBoundingBox; | 86 FloatRect m_paintInvalidationBoundingBox; |
83 }; | 87 }; |
84 | 88 |
85 } | 89 } |
86 | 90 |
87 #endif | 91 #endif |
OLD | NEW |