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

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

Issue 137123009: Add hittest mode for Touch-action which ignore inline elements and svg elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated review comments Created 6 years, 9 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } 51 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; }
52 virtual void setNeedsBoundariesUpdate() OVERRIDE { m_needsBoundariesOrTransf ormUpdate = true; } 52 virtual void setNeedsBoundariesUpdate() OVERRIDE { m_needsBoundariesOrTransf ormUpdate = true; }
53 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsBoundariesOrTransfo rmUpdate = true; } 53 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsBoundariesOrTransfo rmUpdate = true; }
54 54
55 IntSize containerSize() const { return m_containerSize; } 55 IntSize containerSize() const { return m_containerSize; }
56 void setContainerSize(const IntSize& containerSize) { m_containerSize = cont ainerSize; } 56 void setContainerSize(const IntSize& containerSize) { m_containerSize = cont ainerSize; }
57 57
58 virtual bool hasRelativeIntrinsicLogicalWidth() const OVERRIDE; 58 virtual bool hasRelativeIntrinsicLogicalWidth() const OVERRIDE;
59 virtual bool hasRelativeLogicalHeight() const OVERRIDE; 59 virtual bool hasRelativeLogicalHeight() const OVERRIDE;
60 virtual bool visibleToHitTestRequest(const HitTestRequest& request) const
61 {
62 if (request.touchAction())
63 return RenderObject::visibleToHitTestRequest(HitTestRequest(request. type() & ~HitTestRequest::TouchAction));
64 return RenderObject::visibleToHitTestRequest(request);
65 }
60 66
61 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS S box coordinates. 67 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS S box coordinates.
62 const AffineTransform& localToBorderBoxTransform() const { return m_localToB orderBoxTransform; } 68 const AffineTransform& localToBorderBoxTransform() const { return m_localToB orderBoxTransform; }
63 69
64 private: 70 private:
65 virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children( ); } 71 virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children( ); }
66 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { retu rn children(); } 72 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { retu rn children(); }
67 73
68 virtual const char* renderName() const OVERRIDE { return "RenderSVGRoot"; } 74 virtual const char* renderName() const OVERRIDE { return "RenderSVGRoot"; }
69 virtual bool isSVGRoot() const OVERRIDE { return true; } 75 virtual bool isSVGRoot() const OVERRIDE { return true; }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 AffineTransform m_localToBorderBoxTransform; 120 AffineTransform m_localToBorderBoxTransform;
115 bool m_isLayoutSizeChanged : 1; 121 bool m_isLayoutSizeChanged : 1;
116 bool m_needsBoundariesOrTransformUpdate : 1; 122 bool m_needsBoundariesOrTransformUpdate : 1;
117 }; 123 };
118 124
119 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot()); 125 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGRoot, isSVGRoot());
120 126
121 } // namespace WebCore 127 } // namespace WebCore
122 128
123 #endif // RenderSVGRoot_h 129 #endif // RenderSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698