Home
last modified time | relevance | path

Searched refs:scalingFactor (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DSVGInlineTextBox.cpp90 float scalingFactor = textRenderer->scalingFactor(); in offsetForPositionInFragment() local
91 ASSERT(scalingFactor); in offsetForPositionInFragment()
105 …() + textRenderer->scaledFont().offsetForPosition(textRun, position * scalingFactor, includePartia… in offsetForPositionInFragment()
125 float scalingFactor = textRenderer->scalingFactor(); in selectionRectForTextFragment() local
126 ASSERT(scalingFactor); in selectionRectForTextFragment()
131 if (scalingFactor != 1) in selectionRectForTextFragment()
132 textOrigin.scale(scalingFactor, scalingFactor); in selectionRectForTextFragment()
136 …Text(constructTextRun(style, fragment), textOrigin, fragment.height * scalingFactor, startPosition… in selectionRectForTextFragment()
137 if (scalingFactor == 1) in selectionRectForTextFragment()
140 selectionRect.scale(1 / scalingFactor); in selectionRectForTextFragment()
[all …]
DSVGTextMetrics.cpp47 float scalingFactor = textRenderer->scalingFactor(); in SVGTextMetrics() local
48 ASSERT(scalingFactor); in SVGTextMetrics()
54 m_width = scaledFont.width(run, length, m_glyph.name) / scalingFactor; in SVGTextMetrics()
55 m_height = scaledFont.fontMetrics().floatHeight() / scalingFactor; in SVGTextMetrics()
109 float scalingFactor = text->scalingFactor(); in SVGTextMetrics() local
110 ASSERT(scalingFactor); in SVGTextMetrics()
112 m_width = width / scalingFactor; in SVGTextMetrics()
113 m_height = text->scaledFont().fontMetrics().floatHeight() / scalingFactor; in SVGTextMetrics()
DRenderSVGInlineText.cpp216 …FontForStyle(RenderObject* renderer, const RenderStyle* style, float& scalingFactor, Font& scaledF… in computeNewScaledFontForStyle() argument
222 scalingFactor = SVGRenderingContext::calculateScreenFontSizeScalingFactor(renderer); in computeNewScaledFontForStyle()
223 if (scalingFactor == 1 || !scalingFactor) { in computeNewScaledFontForStyle()
224 scalingFactor = 1; in computeNewScaledFontForStyle()
230 scalingFactor = 1; in computeNewScaledFontForStyle()
236 …setComputedSize(FontSize::getComputedSizeFromSpecifiedSize(&document, scalingFactor, fontDescripti… in computeNewScaledFontForStyle()
DRenderSVGInlineText.h39 float scalingFactor() const { return m_scalingFactor; } in scalingFactor() function
42 …omputeNewScaledFontForStyle(RenderObject*, const RenderStyle*, float& scalingFactor, Font& scaledF…
DSVGInlineTextBox.h68 … bool acquirePaintingResource(GraphicsContext*&, float scalingFactor, RenderObject*, RenderStyle*);
71 …bool prepareGraphicsContextForTextPainting(GraphicsContext*&, float scalingFactor, TextRun&, Rende…
DRenderSVGResourceContainer.cpp247 float scalingFactor = SVGRenderingContext::calculateScreenFontSizeScalingFactor(object); in shouldTransformOnTextPainting() local
248 if (scalingFactor == 1) in shouldTransformOnTextPainting()
250 resourceTransform.scale(scalingFactor); in shouldTransformOnTextPainting()
DSVGTextQuery.cpp465 float scalingFactor = queryData->textRenderer->scalingFactor(); in calculateGlyphBoundaries() local
466 ASSERT(scalingFactor); in calculateGlyphBoundaries()
468 …, fragment.y - queryData->textRenderer->scaledFont().fontMetrics().floatAscent() / scalingFactor)); in calculateGlyphBoundaries()
DSVGTextRunRenderingContext.cpp160 …ontext->setStrokeThickness(strokeThickness * toRenderSVGInlineText(renderObject)->scalingFactor()); in drawSVGGlyphs()
/external/chromium_org/third_party/WebKit/Source/core/timing/
DMemoryInfo.cpp101 … const float scalingFactor = exp(log(largestBucketSize / sizeOfNextBucket) / numberOfBuckets); in quantizeMemorySize() local
110 sizeOfNextBucket *= scalingFactor; in quantizeMemorySize()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/
DSyncSampleIntersectFinderImpl.java276 final long scalingFactor = calculateTracktimesScalingFactor(m, track); in getTimes() local
280 syncSampleTimes[currentSyncSampleIndex++] = currentDuration * scalingFactor; in getTimes()