Home
last modified time | relevance | path

Searched refs:lengthContext (Results 1 – 25 of 27) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DSVGPathData.cpp41 SVGLengthContext lengthContext(element); in updatePathFromCircleElement() local
42 float r = circle->rCurrentValue().value(lengthContext); in updatePathFromCircleElement()
44 …se(FloatRect(circle->cxCurrentValue().value(lengthContext) - r, circle->cyCurrentValue().value(len… in updatePathFromCircleElement()
51 SVGLengthContext lengthContext(element); in updatePathFromEllipseElement() local
52 float rx = ellipse->rxCurrentValue().value(lengthContext); in updatePathFromEllipseElement()
55 float ry = ellipse->ryCurrentValue().value(lengthContext); in updatePathFromEllipseElement()
58 …(FloatRect(ellipse->cxCurrentValue().value(lengthContext) - rx, ellipse->cyCurrentValue().value(le… in updatePathFromEllipseElement()
65 SVGLengthContext lengthContext(element); in updatePathFromLineElement() local
66 …moveTo(FloatPoint(line->x1CurrentValue().value(lengthContext), line->y1CurrentValue().value(length… in updatePathFromLineElement()
67 …LineTo(FloatPoint(line->x2CurrentValue().value(lengthContext), line->y2CurrentValue().value(length… in updatePathFromLineElement()
[all …]
DRenderSVGViewportContainer.cpp65 SVGLengthContext lengthContext(element); in calcViewport() local
66 …(lengthContext), svg->yCurrentValue().value(lengthContext), svg->widthCurrentValue().value(lengthC… in calcViewport()
98 SVGLengthContext lengthContext(element); in calcViewport() local
100 m_viewport.setWidth(useElement->widthCurrentValue().value(lengthContext)); in calcViewport()
103 m_viewport.setWidth(containerWidth.value(lengthContext)); in calcViewport()
107 m_viewport.setHeight(useElement->heightCurrentValue().value(lengthContext)); in calcViewport()
110 m_viewport.setHeight(containerHeight.value(lengthContext)); in calcViewport()
DRenderSVGEllipse.cpp82 SVGLengthContext lengthContext(circle); in calculateRadiiAndCenter() local
83 float radius = circle->rCurrentValue().value(lengthContext); in calculateRadiiAndCenter()
85 …r = FloatPoint(circle->cxCurrentValue().value(lengthContext), circle->cyCurrentValue().value(lengt… in calculateRadiiAndCenter()
91 SVGLengthContext lengthContext(ellipse); in calculateRadiiAndCenter() local
92 …i = FloatSize(ellipse->rxCurrentValue().value(lengthContext), ellipse->ryCurrentValue().value(leng… in calculateRadiiAndCenter()
93 … = FloatPoint(ellipse->cxCurrentValue().value(lengthContext), ellipse->cyCurrentValue().value(leng… in calculateRadiiAndCenter()
DRenderSVGRect.cpp56 SVGLengthContext lengthContext(rect); in updateShapeFromElement() local
58 …if (rect->rxCurrentValue().value(lengthContext) > 0 || rect->ryCurrentValue().value(lengthContext)… in updateShapeFromElement()
65 …ndingBoxSize(rect->widthCurrentValue().value(lengthContext), rect->heightCurrentValue().value(leng… in updateShapeFromElement()
69 …loatRect(FloatPoint(rect->xCurrentValue().value(lengthContext), rect->yCurrentValue().value(length… in updateShapeFromElement()
DSVGRenderTreeAsText.cpp269 SVGLengthContext lengthContext(shape.element()); in writeStyle() local
270 double dashOffset = svgStyle->strokeDashOffset().value(lengthContext); in writeStyle()
271 double strokeWidth = svgStyle->strokeWidth().value(lengthContext); in writeStyle()
277 dashArray.append((*it).value(lengthContext)); in writeStyle()
320 SVGLengthContext lengthContext(svgElement); in operator <<() local
324 writeNameValuePair(ts, "x", element->xCurrentValue().value(lengthContext)); in operator <<()
325 writeNameValuePair(ts, "y", element->yCurrentValue().value(lengthContext)); in operator <<()
326 writeNameValuePair(ts, "width", element->widthCurrentValue().value(lengthContext)); in operator <<()
327 writeNameValuePair(ts, "height", element->heightCurrentValue().value(lengthContext)); in operator <<()
330 writeNameValuePair(ts, "x1", element->x1CurrentValue().value(lengthContext)); in operator <<()
[all …]
DRenderSVGResourceMarker.cpp107 SVGLengthContext lengthContext(marker); in referencePoint() local
108 … FloatPoint(marker->refXCurrentValue().value(lengthContext), marker->refYCurrentValue().value(leng… in referencePoint()
183 SVGLengthContext lengthContext(marker); in calcViewport() local
184 float w = marker->markerWidthCurrentValue().value(lengthContext); in calcViewport()
185 float h = marker->markerHeightCurrentValue().value(lengthContext); in calcViewport()
DSVGTextLayoutAttributesBuilder.cpp163 … float& lastRotation, SVGCharacterData& data, const SVGLengthContext& lengthContext, const SVGLeng… in updateCharacterData() argument
166 data.x = xList->at(i).value(lengthContext); in updateCharacterData()
168 data.y = yList->at(i).value(lengthContext); in updateCharacterData()
170 data.dx = dxList->at(i).value(lengthContext); in updateCharacterData()
172 data.dy = dyList->at(i).value(lengthContext); in updateCharacterData()
196 SVGLengthContext lengthContext(position.element); in fillCharacterDataMap() local
209 …updateCharacterData(i, lastRotation, data, lengthContext, xListPtr, yListPtr, dxListPtr, dyListPtr… in fillCharacterDataMap()
214 …updateCharacterData(i, lastRotation, it->value, lengthContext, xListPtr, yListPtr, dxListPtr, dyLi… in fillCharacterDataMap()
DRenderSVGTransformableContainer.cpp57 SVGLengthContext lengthContext(useElement); in calculateLocalTransform() local
58 …ranslation(useElement->xCurrentValue().value(lengthContext), useElement->yCurrentValue().value(len… in calculateLocalTransform()
DRenderSVGForeignObject.cpp140 SVGLengthContext lengthContext(foreign); in layout() local
141 …ewportLocation(foreign->xCurrentValue().value(lengthContext), foreign->yCurrentValue().value(lengt… in layout()
142 …loatSize(foreign->widthCurrentValue().value(lengthContext), foreign->heightCurrentValue().value(le… in layout()
DRenderSVGImage.cpp66 SVGLengthContext lengthContext(image); in updateImageViewport() local
67lengthContext), image->yCurrentValue().value(lengthContext), image->widthCurrentValue().value(leng… in updateImageViewport()
DSVGRenderSupport.cpp359 SVGLengthContext lengthContext(toSVGElement(object->node())); in applyStrokeStyleToContext() local
360 context->setStrokeThickness(svgStyle->strokeWidth().value(lengthContext)); in applyStrokeStyleToContext()
372 dashArray.append((*it).value(lengthContext)); in applyStrokeStyleToContext()
374 context->setLineDash(dashArray, svgStyle->strokeDashOffset().value(lengthContext)); in applyStrokeStyleToContext()
388 SVGLengthContext lengthContext(toSVGElement(object->node())); in applyStrokeStyleToStrokeData() local
389 strokeData->setThickness(svgStyle->strokeWidth().value(lengthContext)); in applyStrokeStyleToStrokeData()
401 dashArray.append((*it).value(lengthContext)); in applyStrokeStyleToStrokeData()
403 strokeData->setLineDash(dashArray, svgStyle->strokeDashOffset().value(lengthContext)); in applyStrokeStyleToStrokeData()
DSVGTextLayoutEngine.cpp150 SVGLengthContext lengthContext(textContentElement); in parentDefinesTextLength() local
151 …() == SVGLengthAdjustSpacing && textContentElement->specifiedTextLength().value(lengthContext) > 0) in parentDefinesTextLength()
208 SVGLengthContext lengthContext(textContentElement); in beginTextPathLayout() local
210 desiredTextLength = textContentElement->specifiedTextLength().value(lengthContext); in beginTextPathLayout()
427 SVGElement* lengthContext = toSVGElement(text->parent()->node()); in layoutTextOnLineOrPath() local
450 float baselineShift = baselineLayout.calculateBaselineShift(svgStyle, lengthContext); in layoutTextOnLineOrPath()
509 …float spacing = spacingLayout.calculateCSSKerningAndSpacing(svgStyle, lengthContext, currentCharac… in layoutTextOnLineOrPath()
DSVGTextLayoutEngineSpacing.cpp89 SVGLengthContext lengthContext(contextElement); in calculateCSSKerningAndSpacing() local
90 kerning = kerningLength.value(lengthContext); in calculateCSSKerningAndSpacing()
DSVGTextLayoutEngineSpacing.h38 …float calculateCSSKerningAndSpacing(const SVGRenderStyle*, SVGElement* lengthContext, UChar curren…
DSVGTextLayoutEngineBaseline.cpp45 SVGLengthContext lengthContext(contextElement); in calculateBaselineShift() local
46 return baselineShiftValueLength.value(lengthContext); in calculateBaselineShift()
DSVGTextLayoutEngineBaseline.h40 float calculateBaselineShift(const SVGRenderStyle*, SVGElement* lengthContext) const;
DSVGTextChunkBuilder.cpp129 SVGLengthContext lengthContext(textContentElement); in addTextChunk() local
130 desiredTextLength = textContentElement->specifiedTextLength().value(lengthContext); in addTextChunk()
DRenderSVGShape.cpp427 SVGLengthContext lengthContext(element()); in strokeWidth() local
428 return style()->svgStyle()->strokeWidth().value(lengthContext); in strokeWidth()
/external/chromium_org/third_party/WebKit/Source/core/svg/
DSVGAnimatedLength.cpp77 SVGLengthContext lengthContext(m_contextElement); in addAnimatedTypes() local
81 …toLength.setValue(toLength.value(lengthContext) + fromLength.value(lengthContext), lengthContext, … in addAnimatedTypes()
103 SVGLengthContext lengthContext(m_contextElement); in calculateAnimatedValue() local
104 float animatedNumber = animatedSVGLength.value(lengthContext); in calculateAnimatedValue()
106 …tCount, fromSVGLength.value(lengthContext), toSVGLength.value(lengthContext), toAtEndOfDurationSVG… in calculateAnimatedValue()
108 …animatedSVGLength.setValue(lengthContext, animatedNumber, m_lengthMode, unitType, ASSERT_NO_EXCEPT… in calculateAnimatedValue()
118 SVGLengthContext lengthContext(m_contextElement); in calculateDistance() local
119 return fabsf(to.value(lengthContext) - from.value(lengthContext)); in calculateDistance()
DSVGLengthContext.cpp54 SVGLengthContext lengthContext(context); in resolveRectangle() local
55 …return FloatRect(x.value(lengthContext), y.value(lengthContext), width.value(lengthContext), heigh… in resolveRectangle()
58 SVGLengthContext lengthContext(context, viewport); in resolveRectangle() local
59 return FloatRect(x.value(lengthContext) + viewport.x(), in resolveRectangle()
60 y.value(lengthContext) + viewport.y(), in resolveRectangle()
61 width.value(lengthContext), in resolveRectangle()
62 height.value(lengthContext)); in resolveRectangle()
69 SVGLengthContext lengthContext(context); in resolvePoint() local
70 return FloatPoint(x.value(lengthContext), y.value(lengthContext)); in resolvePoint()
81 SVGLengthContext lengthContext(context); in resolveLength() local
[all …]
DSVGAnimatedLengthList.cpp79 SVGLengthContext lengthContext(m_contextElement); in addAnimatedTypes() local
81 …thList[i].setValue(toLengthList[i].value(lengthContext) + fromLengthList[i].value(lengthContext), in addAnimatedTypes()
112 SVGLengthContext lengthContext(m_contextElement); in calculateAnimatedValue() local
114 float animatedNumber = animatedLengthList[i].value(lengthContext); in calculateAnimatedValue()
120 effectiveFrom = fromLengthList[i].value(lengthContext); in calculateAnimatedValue()
122 …eToAtEnd = i < toAtEndOfDurationListSize ? toAtEndOfDurationLengthList[i].value(lengthContext) : 0; in calculateAnimatedValue()
124 …eNumber(percentage, repeatCount, effectiveFrom, toLengthList[i].value(lengthContext), effectiveToA… in calculateAnimatedValue()
125 …animatedLengthList[i].setValue(lengthContext, animatedNumber, m_lengthMode, unitType, ASSERT_NO_EX… in calculateAnimatedValue()
DSVGSVGElement.cpp430 SVGLengthContext lengthContext(this); in localCoordinateSpaceTransform() local
431 … transform.translate(xCurrentValue().value(lengthContext), yCurrentValue().value(lengthContext)); in localCoordinateSpaceTransform()
646 SVGLengthContext lengthContext(this); in intrinsicWidth() local
647 return Length(widthCurrentValue().value(lengthContext), Fixed); in intrinsicWidth()
660 SVGLengthContext lengthContext(this); in intrinsicHeight() local
661 return Length(heightCurrentValue().value(lengthContext), Fixed); in intrinsicHeight()
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/
DV8SVGLengthCustom.cpp48 SVGLengthContext lengthContext(wrapper->contextElement()); in valueAttributeGetterCustom() local
49 float value = imp.value(lengthContext, exceptionState); in valueAttributeGetterCustom()
70 SVGLengthContext lengthContext(wrapper->contextElement()); in valueAttributeSetterCustom() local
71 imp.setValue(static_cast<float>(value->NumberValue()), lengthContext, exceptionState); in valueAttributeSetterCustom()
95 SVGLengthContext lengthContext(wrapper->contextElement()); in convertToSpecifiedUnitsMethodCustom() local
96 imp.convertToSpecifiedUnits(unitType, lengthContext, exceptionState); in convertToSpecifiedUnitsMethodCustom()
/external/chromium_org/third_party/WebKit/Source/core/css/
DCSSCursorImageValue.cpp100 SVGLengthContext lengthContext(0); in updateIfSVGCursorIsUsed() local
102 float x = roundf(cursorElement->xCurrentValue().value(lengthContext)); in updateIfSVGCursorIsUsed()
105 float y = roundf(cursorElement->yCurrentValue().value(lengthContext)); in updateIfSVGCursorIsUsed()
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/filters/
DSVGFEImage.cpp122 SVGLengthContext lengthContext(contextNode); in applySoftware() local
127 if (lengthContext.determineViewport(viewportSize)) in applySoftware()

12