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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.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) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 25 matching lines...) Expand all
36 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances torToStopAt, LayoutGeometryMap&) const final; 36 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances torToStopAt, LayoutGeometryMap&) const final;
37 37
38 AffineTransform localTransform() const final { return m_localTransform; } 38 AffineTransform localTransform() const final { return m_localTransform; }
39 39
40 PaintLayerType layerTypeRequired() const final { return NoPaintLayer; } 40 PaintLayerType layerTypeRequired() const final { return NoPaintLayer; }
41 41
42 void invalidateTreeIfNeeded(PaintInvalidationState&) override; 42 void invalidateTreeIfNeeded(PaintInvalidationState&) override;
43 43
44 protected: 44 protected:
45 void willBeDestroyed() override; 45 void willBeDestroyed() override;
46 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const final; 46 void mapToVisibleRectInContainerSpace(const LayoutBoxModelObject* paintInval idationContainer, LayoutRect&, const PaintInvalidationState*) const final;
47 47
48 AffineTransform m_localTransform; 48 AffineTransform m_localTransform;
49 49
50 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVG || LayoutBlockFlow::isOfType(type); } 50 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVG || LayoutBlockFlow::isOfType(type); }
51 private: 51 private:
52 void updateFromStyle() final; 52 void updateFromStyle() final;
53 53
54 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c onst final; 54 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c onst final;
55 55
56 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; 56 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final;
57 57
58 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; 58 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
59 }; 59 };
60 60
61 } 61 }
62 #endif // LayoutSVGBlock_h 62 #endif // LayoutSVGBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698