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

Side by Side Diff: Source/core/rendering/svg/RenderSVGInlineText.cpp

Issue 14488003: Absolutify paths to platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: scripts, iwyu Created 7 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
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 Apple Computer Inc. 3 * Copyright (C) 2006 Apple Computer Inc.
4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
5 * Copyright (C) 2008 Rob Buis <buis@kde.org> 5 * Copyright (C) 2008 Rob Buis <buis@kde.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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
11 * version 2 of the License, or (at your option) any later version. 11 * version 2 of the License, or (at your option) any later version.
12 * 12 *
13 * This library is distributed in the hope that it will be useful, 13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details. 16 * Library General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU Library General Public License 18 * You should have received a copy of the GNU Library General Public License
19 * along with this library; see the file COPYING.LIB. If not, write to 19 * along with this library; see the file COPYING.LIB. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA. 21 * Boston, MA 02110-1301, USA.
22 */ 22 */
23 23
24 #include "config.h" 24 #include "config.h"
25 25
26 #if ENABLE(SVG) 26 #if ENABLE(SVG)
27 #include "RenderSVGInlineText.h" 27 #include "RenderSVGInlineText.h"
28 28
29 #include "CSSFontSelector.h" 29 #include "CSSFontSelector.h"
30 #include "FloatConversion.h"
31 #include "RenderBlock.h" 30 #include "RenderBlock.h"
32 #include "RenderSVGRoot.h" 31 #include "RenderSVGRoot.h"
33 #include "RenderSVGText.h" 32 #include "RenderSVGText.h"
34 #include "SVGInlineTextBox.h" 33 #include "SVGInlineTextBox.h"
35 #include "SVGRenderingContext.h" 34 #include "SVGRenderingContext.h"
36 #include "SVGRootInlineBox.h" 35 #include "SVGRootInlineBox.h"
37 #include "Settings.h" 36 #include "Settings.h"
38 #include "StyleResolver.h" 37 #include "StyleResolver.h"
39 #include "VisiblePosition.h" 38 #include "VisiblePosition.h"
39 #include "core/platform/FloatConversion.h"
40 #include "core/platform/graphics/FloatQuad.h" 40 #include "core/platform/graphics/FloatQuad.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 static PassRefPtr<StringImpl> applySVGWhitespaceRules(PassRefPtr<StringImpl> str ing, bool preserveWhiteSpace) 44 static PassRefPtr<StringImpl> applySVGWhitespaceRules(PassRefPtr<StringImpl> str ing, bool preserveWhiteSpace)
45 { 45 {
46 if (preserveWhiteSpace) { 46 if (preserveWhiteSpace) {
47 // Spec: When xml:space="preserve", the SVG user agent will do the follo wing using a 47 // Spec: When xml:space="preserve", the SVG user agent will do the follo wing using a
48 // copy of the original character data content. It will convert all newl ine and tab 48 // copy of the original character data content. It will convert all newl ine and tab
49 // characters into space characters. Then, it will draw all space charac ters, including 49 // characters into space characters. Then, it will draw all space charac ters, including
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // FIXME: We need to better handle the case when we compute very small fonts below (below 1pt). 244 // FIXME: We need to better handle the case when we compute very small fonts below (below 1pt).
245 fontDescription.setComputedSize(StyleResolver::getComputedSizeFromSpecifiedS ize(document, scalingFactor, fontDescription.isAbsoluteSize(), fontDescription.c omputedSize(), DoNotUseSmartMinimumForFontSize)); 245 fontDescription.setComputedSize(StyleResolver::getComputedSizeFromSpecifiedS ize(document, scalingFactor, fontDescription.isAbsoluteSize(), fontDescription.c omputedSize(), DoNotUseSmartMinimumForFontSize));
246 246
247 scaledFont = Font(fontDescription, 0, 0); 247 scaledFont = Font(fontDescription, 0, 0);
248 scaledFont.update(styleResolver->fontSelector()); 248 scaledFont.update(styleResolver->fontSelector());
249 } 249 }
250 250
251 } 251 }
252 252
253 #endif // ENABLE(SVG) 253 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGImage.cpp ('k') | Source/core/rendering/svg/RenderSVGText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698