Skip to content
  • ch.dumez@sisa.samsung.com's avatar
    Get rid of SVGPoint special case from the bindings generator · 60686036
    ch.dumez@sisa.samsung.com authored
    https://bugs.webkit.org/show_bug.cgi?id=118783
    
    Reviewed by Kentaro Hara.
    
    Get rid of SVGPoint special case from the bindings generator by adding a
    new SVGPoint.h header that contains a typedef to FloatPoint.
    
    Also use SVGPoint type in the implementation API for consistency with
    the IDL.
    
    No new tests, no behavior change.
    
    * bindings/scripts/CodeGenerator.pm:
    (SkipIncludeHeader):
    * bindings/scripts/test/JS/JSTestObj.cpp:
    (WebCore::jsTestObjMutablePoint):
    (WebCore::jsTestObjImmutablePoint):
    (WebCore::setJSTestObjMutablePoint):
    (WebCore::setJSTestObjImmutablePoint):
    (WebCore::jsTestObjPrototypeFunctionMutablePointFunction):
    (WebCore::jsTestObjPrototypeFunctionImmutablePointFunction):
    * bindings/scripts/test/JS/JSTestTypedefs.cpp:
    (WebCore::jsTestTypedefsPrototypeFunctionImmutablePointFunction):
    * bindings/scripts/test/ObjC/DOMTestObj.mm:
    (-[DOMTestObj mutablePoint]):
    (-[DOMTestObj immutablePoint]):
    (-[DOMTestObj mutablePointFunction]):
    (-[DOMTestObj immutablePointFunction]):
    * bindings/scripts/test/ObjC/DOMTestTypedefs.mm:
    (-[DOMTestTypedefs immutablePointFunction]):
    * rendering/svg/RenderSVGRoot.cpp:
    (WebCore::RenderSVGRoot::buildLocalToBorderBoxTransform):
    * rendering/svg/SVGTextQuery.cpp:
    (WebCore::SVGTextQuery::startPositionOfCharacter):
    (WebCore::SVGTextQuery::endPositionOfCharacter):
    (WebCore::SVGTextQuery::characterNumberAtPosition):
    * rendering/svg/SVGTextQuery.h:
    * svg/SVGPathElement.cpp:
    (WebCore::SVGPathElement::getPointAtLength):
    * svg/SVGPathElement.h:
    * svg/SVGPathTraversalStateBuilder.cpp:
    (WebCore::SVGPathTraversalStateBuilder::currentPoint):
    * svg/SVGPathTraversalStateBuilder.h:
    * svg/SVGPathUtilities.cpp:
    (WebCore::getPointAtLengthOfSVGPathByteStream):
    * svg/SVGPathUtilities.h:
    * svg/SVGPoint.h: Added.
    * svg/SVGPointList.cpp:
    (WebCore::SVGPointList::valueAsString):
    * svg/SVGPointList.h:
    * svg/SVGSVGElement.cpp:
    (WebCore::SVGSVGElement::createSVGPoint):
    * svg/SVGSVGElement.h:
    * svg/SVGTextContentElement.cpp:
    (WebCore::SVGTextContentElement::getStartPositionOfChar):
    (WebCore::SVGTextContentElement::getEndPositionOfChar):
    (WebCore::SVGTextContentElement::getCharNumAtPosition):
    * svg/SVGTextContentElement.h:
    * svg/SVGZoomEvent.cpp:
    (WebCore::SVGZoomEvent::previousTranslate):
    (WebCore::SVGZoomEvent::newTranslate):
    * svg/SVGZoomEvent.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    60686036