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

Side by Side Diff: Source/core/rendering/svg/RenderSVGRoot.h

Issue 220343002: Update touch-action hit-testing to match latest spec changes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move visibleForTouchAction() to cpp file Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/web/tests/data/touch-action-simple.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // SVGImage::draw() does a view layout prior to painting, 58 // SVGImage::draw() does a view layout prior to painting,
59 // and we need that layout to know of the new size otherwise 59 // and we need that layout to know of the new size otherwise
60 // the rendering may be incorrectly using the old size. 60 // the rendering may be incorrectly using the old size.
61 if (m_containerSize != containerSize) 61 if (m_containerSize != containerSize)
62 setNeedsLayout(); 62 setNeedsLayout();
63 m_containerSize = containerSize; 63 m_containerSize = containerSize;
64 } 64 }
65 65
66 virtual bool hasRelativeIntrinsicLogicalWidth() const OVERRIDE; 66 virtual bool hasRelativeIntrinsicLogicalWidth() const OVERRIDE;
67 virtual bool hasRelativeLogicalHeight() const OVERRIDE; 67 virtual bool hasRelativeLogicalHeight() const OVERRIDE;
68 virtual bool visibleForTouchAction() const OVERRIDE { return true; }
69 68
70 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS S box coordinates. 69 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS S box coordinates.
71 const AffineTransform& localToBorderBoxTransform() const { return m_localToB orderBoxTransform; } 70 const AffineTransform& localToBorderBoxTransform() const { return m_localToB orderBoxTransform; }
72 71
73 private: 72 private:
74 virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children( ); } 73 virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children( ); }
75 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { retu rn children(); } 74 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { retu rn children(); }
76 75
77 virtual const char* renderName() const OVERRIDE { return "RenderSVGRoot"; } 76 virtual const char* renderName() const OVERRIDE { return "RenderSVGRoot"; }
78 virtual bool isSVGRoot() const OVERRIDE { return true; } 77 virtual bool isSVGRoot() const OVERRIDE { return true; }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 AffineTransform m_localToBorderBoxTransform; 122 AffineTransform m_localToBorderBoxTransform;
124 bool m_isLayoutSizeChanged : 1; 123 bool m_isLayoutSizeChanged : 1;
125 bool m_needsBoundariesOrTransformUpdate : 1; 124 bool m_needsBoundariesOrTransformUpdate : 1;
126 }; 125 };
127 126
128 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); 127 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot());
129 128
130 } // namespace WebCore 129 } // namespace WebCore
131 130
132 #endif // RenderSVGRoot_h 131 #endif // RenderSVGRoot_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/web/tests/data/touch-action-simple.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698