Purge PassRefPtr create() factory functions in WebCore/css
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Jun 2015 04:46:17 +0000 (04:46 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Jun 2015 04:46:17 +0000 (04:46 +0000)
commit078568c5436ac24445c04d5dfcee74dab4112454
treeec249f2ed805d2f6bc2480e4a8da451e0cf4ebc9
parentba73b416ac1d0c710402af820794060ac6407c56
Purge PassRefPtr create() factory functions in WebCore/css
https://bugs.webkit.org/show_bug.cgi?id=144905

Patch by Joonghun Park <jh718.park@samsung.com> on 2015-06-04
Reviewed by Darin Adler.

Return Ref instead of PassRefPtr in create() factory functions in css,
because the factory can't return null.

No new tests, no new behaviours.

* css/BasicShapeFunctions.cpp:
(WebCore::valueForCenterCoordinate):
(WebCore::basicShapeRadiusToCSSValue):
(WebCore::valueForBasicShape):
* css/BasicShapeFunctions.h:
* css/CSSBasicShapes.h:
* css/CSSCalculationValue.cpp:
(WebCore::createCSS):
(WebCore::CSSCalcValue::create):
* css/CSSCalculationValue.h:
* css/CSSCharsetRule.h:
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::valueForNinePieceImageSlice):
(WebCore::valueForNinePieceImageQuad):
(WebCore::zoomAdjustedPixelValue):
(WebCore::zoomAdjustedNumberValue):
(WebCore::zoomAdjustedPixelValueForLength):
(WebCore::valueForReflection):
(WebCore::createPositionListForLayer):
(WebCore::positionOffsetValue):
(WebCore::percentageOrZoomAdjustedValue):
(WebCore::autoOrZoomAdjustedValue):
(WebCore::getBorderRadiusCornerValues):
(WebCore::getBorderRadiusCornerValue):
(WebCore::getBorderRadiusShorthandValue):
(WebCore::matrixTransformValue):
(WebCore::computedTransform):
(WebCore::adjustLengthForZoom):
(WebCore::ComputedStyleExtractor::valueForShadow):
(WebCore::ComputedStyleExtractor::valueForFilter):
(WebCore::specifiedValueForGridTrackBreadth):
(WebCore::specifiedValueForGridTrackSize):
(WebCore::valueForGridTrackList):
(WebCore::scrollSnapDestination):
(WebCore::scrollSnapPoints):
(WebCore::scrollSnapCoordinates):
(WebCore::createAnimationTriggerValue):
(WebCore::getAnimationTriggerValue):
(WebCore::ComputedStyleExtractor::getFontSizeCSSValuePreferringKeyword):
(WebCore::fillSizeToCSSValue):
(WebCore::lineHeightFromStyle):
(WebCore::fontSizeFromStyle):
(WebCore::zoomAdjustedPaddingOrMarginPixelValue):
(WebCore::shapePropertyValue):
(WebCore::ComputedStyleExtractor::propertyValue):
* css/CSSComputedStyleDeclaration.h:
* css/CSSFontFace.h:
(WebCore::CSSFontFace::create):
* css/CSSFontFaceLoadEvent.h:
* css/CSSFontFaceRule.h:
* css/CSSGrammar.y.in:
* css/CSSGridLineNamesValue.cpp:
(WebCore::CSSGridLineNamesValue::cloneForCSSOM):
* css/CSSGridLineNamesValue.h:
(WebCore::CSSGridLineNamesValue::create):
* css/CSSImportRule.h:
* css/CSSKeyframeRule.h:
(WebCore::StyleKeyframe::create):
* css/CSSKeyframesRule.h:
* css/CSSMediaRule.h:
* css/CSSPageRule.h:
* css/CSSParser.cpp:
(WebCore::CSSParser::parseGridLineNames):
(WebCore::CSSParser::parseDashboardRegions):
(WebCore::CSSParser::parseClipShape):
(WebCore::CSSParser::parseBasicShape):
(WebCore::BorderImageSliceParseContext::commitBorderImageSlice):
(WebCore::BorderImageQuadParseContext::commitBorderImageQuad):
* css/CSSParser.h:
(WebCore::CSSParser::ValueWithCalculation::calculation):
* css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore::CSSPrimitiveValue::init):
(WebCore::CSSPrimitiveValue::cloneForCSSOM):
* css/CSSPrimitiveValue.h:
(WebCore::CSSPrimitiveValue::create):
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
* css/CSSPropertySourceData.h:
(WebCore::CSSStyleSourceData::create):
(WebCore::CSSRuleSourceData::create):
(WebCore::CSSRuleSourceData::createUnknown):
* css/CSSRuleList.h:
* css/CSSSegmentedFontFace.h:
(WebCore::CSSSegmentedFontFace::create):
* css/CSSSelector.cpp:
(WebCore::CSSSelector::createRareData):
* css/CSSSelector.h:
(WebCore::CSSSelector::RareData::create):
* css/CSSStyleRule.h:
* css/CSSSupportsRule.h:
* css/CSSValuePool.h:
(WebCore::CSSValuePool::createValue):
* css/FontLoader.cpp:
(WebCore::LoadFontCallback::create):
* css/LengthRepeat.h:
(WebCore::LengthRepeat::create):
(WebCore::LengthRepeat::cloneForCSSOM):
* css/MediaList.h:
(WebCore::MediaQuerySet::create):
(WebCore::MediaQuerySet::createAllowingDescriptionSyntax):
(WebCore::MediaList::create):
* css/MediaQueryList.cpp:
(WebCore::MediaQueryList::create):
* css/MediaQueryList.h:
* css/MediaQueryMatcher.h:
(WebCore::MediaQueryMatcher::create):
* css/Pair.h:
(WebCore::Pair::create):
* css/Rect.h:
(WebCore::Rect::create):
(WebCore::Rect::cloneForCSSOM):
(WebCore::Quad::create):
(WebCore::Quad::cloneForCSSOM):
* css/SVGCSSComputedStyleDeclaration.cpp:
(WebCore::paintOrder):
(WebCore::ComputedStyleExtractor::svgPropertyValue):
* css/StyleMedia.h:
(WebCore::StyleMedia::create):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::keyframeStylesForAnimation):
* css/StyleSheetList.h:
(WebCore::StyleSheetList::create):
* css/ViewportStyleResolver.h:
(WebCore::ViewportStyleResolver::create):
* css/WebKitCSSMatrix.h:
* css/WebKitCSSRegionRule.h:
* css/WebKitCSSViewportRule.h:
* page/animation/CSSPropertyAnimation.cpp:
(WebCore::blendFilter):
* rendering/style/RenderStyle.h:
(WebCore::adjustFloatForAbsoluteZoom):
* rendering/style/StyleInheritedData.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
51 files changed:
Source/WebCore/ChangeLog
Source/WebCore/css/BasicShapeFunctions.cpp
Source/WebCore/css/BasicShapeFunctions.h
Source/WebCore/css/CSSBasicShapes.h
Source/WebCore/css/CSSCalculationValue.cpp
Source/WebCore/css/CSSCalculationValue.h
Source/WebCore/css/CSSCharsetRule.h
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/CSSComputedStyleDeclaration.h
Source/WebCore/css/CSSFontFace.h
Source/WebCore/css/CSSFontFaceLoadEvent.h
Source/WebCore/css/CSSFontFaceRule.h
Source/WebCore/css/CSSGrammar.y.in
Source/WebCore/css/CSSGridLineNamesValue.cpp
Source/WebCore/css/CSSGridLineNamesValue.h
Source/WebCore/css/CSSImportRule.h
Source/WebCore/css/CSSKeyframeRule.h
Source/WebCore/css/CSSKeyframesRule.h
Source/WebCore/css/CSSMediaRule.h
Source/WebCore/css/CSSPageRule.h
Source/WebCore/css/CSSParser.cpp
Source/WebCore/css/CSSParser.h
Source/WebCore/css/CSSPrimitiveValue.cpp
Source/WebCore/css/CSSPrimitiveValue.h
Source/WebCore/css/CSSPropertySourceData.h
Source/WebCore/css/CSSRuleList.h
Source/WebCore/css/CSSSegmentedFontFace.h
Source/WebCore/css/CSSSelector.cpp
Source/WebCore/css/CSSSelector.h
Source/WebCore/css/CSSStyleRule.h
Source/WebCore/css/CSSSupportsRule.h
Source/WebCore/css/CSSValuePool.h
Source/WebCore/css/FontLoader.cpp
Source/WebCore/css/LengthRepeat.h
Source/WebCore/css/MediaList.h
Source/WebCore/css/MediaQueryList.cpp
Source/WebCore/css/MediaQueryList.h
Source/WebCore/css/MediaQueryMatcher.h
Source/WebCore/css/Pair.h
Source/WebCore/css/Rect.h
Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp
Source/WebCore/css/StyleMedia.h
Source/WebCore/css/StyleResolver.cpp
Source/WebCore/css/StyleSheetList.h
Source/WebCore/css/ViewportStyleResolver.h
Source/WebCore/css/WebKitCSSMatrix.h
Source/WebCore/css/WebKitCSSRegionRule.h
Source/WebCore/css/WebKitCSSViewportRule.h
Source/WebCore/page/animation/CSSPropertyAnimation.cpp
Source/WebCore/rendering/style/RenderStyle.h
Source/WebCore/rendering/style/StyleInheritedData.h