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

Side by Side Diff: Source/WebCore/rendering/svg/RenderSVGInlineText.h

Issue 7947002: Merge 95301 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 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 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2008 Rob Buis <buis@kde.org> 4 * Copyright (C) 2008 Rob Buis <buis@kde.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 float scalingFactor() const { return m_scalingFactor; } 43 float scalingFactor() const { return m_scalingFactor; }
44 const Font& scaledFont() const { return m_scaledFont; } 44 const Font& scaledFont() const { return m_scaledFont; }
45 void updateScaledFont(); 45 void updateScaledFont();
46 static void computeNewScaledFontForStyle(RenderObject*, const RenderStyle*, float& scalingFactor, Font& scaledFont); 46 static void computeNewScaledFontForStyle(RenderObject*, const RenderStyle*, float& scalingFactor, Font& scaledFont);
47 47
48 private: 48 private:
49 virtual const char* renderName() const { return "RenderSVGInlineText"; } 49 virtual const char* renderName() const { return "RenderSVGInlineText"; }
50 50
51 virtual void willBeDestroyed(); 51 virtual void willBeDestroyed();
52
53 virtual void setStyle(PassRefPtr<RenderStyle>);
52 virtual void styleDidChange(StyleDifference, const RenderStyle*); 54 virtual void styleDidChange(StyleDifference, const RenderStyle*);
53 55
54 // FIXME: We need objectBoundingBox for DRT results and filters at the momen t. 56 // FIXME: We need objectBoundingBox for DRT results and filters at the momen t.
55 // This should be fixed to give back the objectBoundingBox of the text root. 57 // This should be fixed to give back the objectBoundingBox of the text root.
56 virtual FloatRect objectBoundingBox() const { return FloatRect(); } 58 virtual FloatRect objectBoundingBox() const { return FloatRect(); }
57 59
58 virtual bool requiresLayer() const { return false; } 60 virtual bool requiresLayer() const { return false; }
59 virtual bool isSVGInlineText() const { return true; } 61 virtual bool isSVGInlineText() const { return true; }
60 62
61 virtual VisiblePosition positionForPoint(const LayoutPoint&); 63 virtual VisiblePosition positionForPoint(const LayoutPoint&);
(...skipping 18 matching lines...) Expand all
80 return static_cast<const RenderSVGInlineText*>(object); 82 return static_cast<const RenderSVGInlineText*>(object);
81 } 83 }
82 84
83 // This will catch anyone doing an unnecessary cast. 85 // This will catch anyone doing an unnecessary cast.
84 void toRenderSVGInlineText(const RenderSVGInlineText*); 86 void toRenderSVGInlineText(const RenderSVGInlineText*);
85 87
86 } 88 }
87 89
88 #endif // ENABLE(SVG) 90 #endif // ENABLE(SVG)
89 #endif // RenderSVGInlineText_h 91 #endif // RenderSVGInlineText_h
OLDNEW
« no previous file with comments | « LayoutTests/svg/text/text-style-recalc-crash-expected.txt ('k') | Source/WebCore/rendering/svg/RenderSVGInlineText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698