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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.h

Issue 2230963002: SVG Image intrinsic size should be used if css style size is 'auto' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: applied intrinsic ratio Created 4 years, 3 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) 2006 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2007 Rob Buis <buis@kde.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 6 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 private: 55 private:
56 FloatRect strokeBoundingBox() const override { return m_objectBoundingBox; } 56 FloatRect strokeBoundingBox() const override { return m_objectBoundingBox; }
57 57
58 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse t, IncludeBlockVisualOverflowOrNot) const override; 58 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse t, IncludeBlockVisualOverflowOrNot) const override;
59 59
60 void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override; 60 void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override;
61 61
62 void layout() override; 62 void layout() override;
63 void paint(const PaintInfo&, const LayoutPoint&) const override; 63 void paint(const PaintInfo&, const LayoutPoint&) const override;
64 64
65 void updateBoundingBox(); 65 bool updateBoundingBox();
66 66
67 bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTe stAction) override; 67 bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTe stAction) override;
68 68
69 AffineTransform localSVGTransform() const override { return m_localTransform ; } 69 AffineTransform localSVGTransform() const override { return m_localTransform ; }
70 70
71 FloatSize calculateObjectSize();
fs 2016/09/14 11:31:52 const qualify?
Shanmuga Pandi 2016/09/14 13:15:36 Done.
72
71 bool m_needsBoundariesUpdate : 1; 73 bool m_needsBoundariesUpdate : 1;
72 bool m_needsTransformUpdate : 1; 74 bool m_needsTransformUpdate : 1;
73 AffineTransform m_localTransform; 75 AffineTransform m_localTransform;
74 FloatRect m_objectBoundingBox; 76 FloatRect m_objectBoundingBox;
75 Persistent<LayoutImageResource> m_imageResource; 77 Persistent<LayoutImageResource> m_imageResource;
76 }; 78 };
77 79
78 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGImage, isSVGImage()); 80 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGImage, isSVGImage());
79 81
80 } // namespace blink 82 } // namespace blink
81 83
82 #endif // LayoutSVGImage_h 84 #endif // LayoutSVGImage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698