<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[188315] trunk/Source/WebCore</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/188315">188315</a></dd>
<dt>Author</dt> <dd>gyuyoung.kim@webkit.org</dd>
<dt>Date</dt> <dd>2015-08-11 18:12:58 -0700 (Tue, 11 Aug 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>Reduce use of PassRefPtr in WebCore/css
https://bugs.webkit.org/show_bug.cgi?id=147821
Reviewed by Daniel Bates.
Use RefPtr when returning nullptr or RefPtr, if not, use Ref.
* css/CSSBasicShapes.cpp:
(WebCore::buildSerializablePositionOffset):
(WebCore::CSSBasicShapeCircle::cssText):
(WebCore::CSSBasicShapeEllipse::cssText):
* css/CSSBasicShapes.h:
* css/CSSCalculationValue.cpp:
(WebCore::determineCategory):
(WebCore::CSSCalcExpressionNodeParser::parseCalc):
(WebCore::createBlendHalf):
(WebCore::createCSS):
* css/CSSCanvasValue.cpp:
(WebCore::CSSCanvasValue::image):
* css/CSSCanvasValue.h:
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::positionOffsetValue):
(WebCore::ComputedStyleExtractor::currentColorOrValidColor):
(WebCore::ComputedStyleExtractor::getFontSizeCSSValuePreferringKeyword):
(WebCore::counterToCSSValue):
(WebCore::zoomAdjustedPaddingOrMarginPixelValue):
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
(WebCore::computeRenderStyleForProperty):
(WebCore::valueForItemPositionWithOverflowAlignment):
(WebCore::valueForContentPositionAndDistributionWithOverflowAlignment):
(WebCore::ComputedStyleExtractor::propertyValue):
(WebCore::ComputedStyleExtractor::getCSSPropertyValuesForShorthandProperties):
(WebCore::ComputedStyleExtractor::getCSSPropertyValuesForSidesShorthand):
(WebCore::ComputedStyleExtractor::getCSSPropertyValuesForGridShorthand):
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValueInternal):
(WebCore::ComputedStyleExtractor::getBackgroundShorthandValue):
* css/CSSComputedStyleDeclaration.h:
* css/CSSCrossfadeValue.cpp:
(WebCore::CSSCrossfadeValue::image):
(WebCore::CSSCrossfadeValue::blend):
* css/CSSCrossfadeValue.h:
* css/CSSFilterImageValue.cpp:
(WebCore::CSSFilterImageValue::image):
* css/CSSFilterImageValue.h:
* css/CSSGradientValue.cpp:
(WebCore::CSSGradientValue::image):
(WebCore::CSSGradientValue::gradientWithStylesResolved):
(WebCore::CSSLinearGradientValue::createGradient):
(WebCore::CSSRadialGradientValue::createGradient):
* css/CSSGradientValue.h:
* css/CSSImageSetValue.cpp:
(WebCore::CSSImageSetValue::cloneForCSSOM):
* css/CSSImageSetValue.h:
* css/CSSImageValue.cpp:
(WebCore::CSSImageValue::cloneForCSSOM):
* css/CSSImageValue.h:
* css/CSSParser.cpp:
(WebCore::CSSParser::parseRule):
(WebCore::CSSParser::parseKeyframeRule):
(WebCore::CSSParser::parseFontFaceValue):
(WebCore::CSSParser::parseValidPrimitive):
(WebCore::CSSParser::parseContentDistributionOverflowPosition):
(WebCore::CSSParser::parseAttr):
(WebCore::CSSParser::parseBackgroundColor):
(WebCore::CSSParser::parsePositionX):
(WebCore::CSSParser::parsePositionY):
(WebCore::CSSParser::parseFillPositionComponent):
(WebCore::CSSParser::parseFillSize):
(WebCore::CSSParser::parseAnimationDelay):
(WebCore::CSSParser::parseAnimationDirection):
(WebCore::CSSParser::parseAnimationDuration):
(WebCore::CSSParser::parseAnimationFillMode):
(WebCore::CSSParser::parseAnimationIterationCount):
(WebCore::CSSParser::parseAnimationName):
(WebCore::CSSParser::parseAnimationPlayState):
(WebCore::CSSParser::parseAnimationTrigger):
(WebCore::CSSParser::parseAnimationProperty):
(WebCore::CSSParser::parseAnimationTimingFunction):
(WebCore::CSSParser::parseGridPosition):
(WebCore::gridMissingGridPositionValue):
(WebCore::CSSParser::parseGridTrackList):
(WebCore::CSSParser::parseGridTrackSize):
(WebCore::CSSParser::parseGridBreadth):
(WebCore::CSSParser::parseGridAutoFlow):
(WebCore::CSSParser::parseGridTemplateAreas):
(WebCore::CSSParser::parseCounterContent):
(WebCore::CSSParser::parseInsetRoundedCorners):
(WebCore::CSSParser::parseBasicShapeInset):
(WebCore::CSSParser::parseShapeRadius):
(WebCore::CSSParser::parseBasicShapeCircle):
(WebCore::CSSParser::parseBasicShapeEllipse):
(WebCore::CSSParser::parseBasicShapePolygon):
(WebCore::CSSParser::parseBasicShapeAndOrBox):
(WebCore::CSSParser::parseShapeProperty):
(WebCore::CSSParser::parseClipPath):
(WebCore::CSSParser::parseBasicShape):
(WebCore::CSSParser::parseFontFamily):
(WebCore::CSSParser::parseColor):
(WebCore::CSSParser::parseShadow):
(WebCore::CSSParser::parseImageResolution):
(WebCore::CSSParser::parseImageSet):
(WebCore::CSSParser::parseTransform):
(WebCore::CSSParser::parseTransformValue):
(WebCore::CSSParser::parseBuiltinFilterArguments):
(WebCore::CSSParser::parseTextIndent):
(WebCore::CSSParser::createImportRule):
(WebCore::CSSParser::createMediaRule):
(WebCore::CSSParser::createEmptyMediaRule):
(WebCore::CSSParser::createSupportsRule):
(WebCore::CSSParser::popSupportsRuleData):
(WebCore::CSSParser::createKeyframesRule):
(WebCore::CSSParser::createStyleRule):
(WebCore::CSSParser::createFontFaceRule):
(WebCore::CSSParser::createPageRule):
(WebCore::CSSParser::createRegionRule):
(WebCore::CSSParser::createKeyframe):
* css/CSSParser.h:
* css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::cloneForCSSOM):
* css/CSSPrimitiveValue.h:
* css/CSSStyleDeclaration.h:
* css/CSSStyleSheet.cpp:
(WebCore::CSSStyleSheet::rules):
(WebCore::CSSStyleSheet::cssRules):
* css/CSSStyleSheet.h:
* css/CSSToStyleMap.cpp:
(WebCore::CSSToStyleMap::styleImage):
* css/CSSToStyleMap.h:
* css/CSSValue.cpp:
(WebCore::CSSValue::cloneForCSSOM):
* css/CSSValue.h:
* css/CSSValueList.cpp:
(WebCore::CSSValueList::cloneForCSSOM):
* css/CSSValueList.h:
* css/MediaList.h:
(WebCore::MediaQuerySet::copy):
* css/MediaQueryMatcher.cpp:
(WebCore::MediaQueryMatcher::matchMedia):
* css/MediaQueryMatcher.h:
* css/PropertySetCSSStyleDeclaration.cpp:
(WebCore::PropertySetCSSStyleDeclaration::getPropertyCSSValue):
(WebCore::PropertySetCSSStyleDeclaration::getPropertyCSSValueInternal):
* css/PropertySetCSSStyleDeclaration.h:
* css/RGBColor.cpp:
(WebCore::RGBColor::red):
(WebCore::RGBColor::green):
(WebCore::RGBColor::blue):
(WebCore::RGBColor::alpha):
* css/RGBColor.h:
* css/SVGCSSComputedStyleDeclaration.cpp:
(WebCore::glyphOrientationToCSSPrimitiveValue):
(WebCore::strokeDashArrayToCSSValueList):
(WebCore::ComputedStyleExtractor::adjustSVGPaintForCurrentColor):
(WebCore::ComputedStyleExtractor::svgPropertyValue):
* css/SVGCSSParser.cpp:
(WebCore::CSSParser::parseSVGStrokeDasharray):
(WebCore::CSSParser::parseSVGPaint):
(WebCore::CSSParser::parseSVGColor):
(WebCore::CSSParser::parsePaintOrder):
* css/WebKitCSSFilterValue.cpp:
(WebCore::WebKitCSSFilterValue::cloneForCSSOM):
* css/WebKitCSSFilterValue.h:
* css/WebKitCSSMatrix.cpp:
(WebCore::WebKitCSSMatrix::multiply):
(WebCore::WebKitCSSMatrix::inverse):
(WebCore::WebKitCSSMatrix::translate):
(WebCore::WebKitCSSMatrix::scale):
(WebCore::WebKitCSSMatrix::rotate):
(WebCore::WebKitCSSMatrix::rotateAxisAngle):
(WebCore::WebKitCSSMatrix::skewX):
(WebCore::WebKitCSSMatrix::skewY):
* css/WebKitCSSMatrix.h:
* css/WebKitCSSTransformValue.cpp:
(WebCore::WebKitCSSTransformValue::cloneForCSSOM):
* css/WebKitCSSTransformValue.h:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssCSSBasicShapescpp">trunk/Source/WebCore/css/CSSBasicShapes.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSBasicShapesh">trunk/Source/WebCore/css/CSSBasicShapes.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSCalculationValuecpp">trunk/Source/WebCore/css/CSSCalculationValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSCanvasValuecpp">trunk/Source/WebCore/css/CSSCanvasValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSCanvasValueh">trunk/Source/WebCore/css/CSSCanvasValue.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSComputedStyleDeclarationcpp">trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSComputedStyleDeclarationh">trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSCrossfadeValuecpp">trunk/Source/WebCore/css/CSSCrossfadeValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSCrossfadeValueh">trunk/Source/WebCore/css/CSSCrossfadeValue.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSFilterImageValuecpp">trunk/Source/WebCore/css/CSSFilterImageValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSFilterImageValueh">trunk/Source/WebCore/css/CSSFilterImageValue.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSGradientValuecpp">trunk/Source/WebCore/css/CSSGradientValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSGradientValueh">trunk/Source/WebCore/css/CSSGradientValue.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSImageSetValuecpp">trunk/Source/WebCore/css/CSSImageSetValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSImageSetValueh">trunk/Source/WebCore/css/CSSImageSetValue.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSImageValuecpp">trunk/Source/WebCore/css/CSSImageValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSImageValueh">trunk/Source/WebCore/css/CSSImageValue.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSParsercpp">trunk/Source/WebCore/css/CSSParser.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSParserh">trunk/Source/WebCore/css/CSSParser.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSPrimitiveValuecpp">trunk/Source/WebCore/css/CSSPrimitiveValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSPrimitiveValueh">trunk/Source/WebCore/css/CSSPrimitiveValue.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSStyleDeclarationh">trunk/Source/WebCore/css/CSSStyleDeclaration.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSStyleSheetcpp">trunk/Source/WebCore/css/CSSStyleSheet.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSStyleSheeth">trunk/Source/WebCore/css/CSSStyleSheet.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSToStyleMapcpp">trunk/Source/WebCore/css/CSSToStyleMap.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSToStyleMaph">trunk/Source/WebCore/css/CSSToStyleMap.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSValuecpp">trunk/Source/WebCore/css/CSSValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSValueh">trunk/Source/WebCore/css/CSSValue.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSValueListcpp">trunk/Source/WebCore/css/CSSValueList.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSValueListh">trunk/Source/WebCore/css/CSSValueList.h</a></li>
<li><a href="#trunkSourceWebCorecssMediaListh">trunk/Source/WebCore/css/MediaList.h</a></li>
<li><a href="#trunkSourceWebCorecssMediaQueryMatchercpp">trunk/Source/WebCore/css/MediaQueryMatcher.cpp</a></li>
<li><a href="#trunkSourceWebCorecssMediaQueryMatcherh">trunk/Source/WebCore/css/MediaQueryMatcher.h</a></li>
<li><a href="#trunkSourceWebCorecssPropertySetCSSStyleDeclarationcpp">trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp</a></li>
<li><a href="#trunkSourceWebCorecssPropertySetCSSStyleDeclarationh">trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.h</a></li>
<li><a href="#trunkSourceWebCorecssRGBColorcpp">trunk/Source/WebCore/css/RGBColor.cpp</a></li>
<li><a href="#trunkSourceWebCorecssRGBColorh">trunk/Source/WebCore/css/RGBColor.h</a></li>
<li><a href="#trunkSourceWebCorecssSVGCSSComputedStyleDeclarationcpp">trunk/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp</a></li>
<li><a href="#trunkSourceWebCorecssSVGCSSParsercpp">trunk/Source/WebCore/css/SVGCSSParser.cpp</a></li>
<li><a href="#trunkSourceWebCorecssWebKitCSSFilterValuecpp">trunk/Source/WebCore/css/WebKitCSSFilterValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssWebKitCSSFilterValueh">trunk/Source/WebCore/css/WebKitCSSFilterValue.h</a></li>
<li><a href="#trunkSourceWebCorecssWebKitCSSMatrixcpp">trunk/Source/WebCore/css/WebKitCSSMatrix.cpp</a></li>
<li><a href="#trunkSourceWebCorecssWebKitCSSMatrixh">trunk/Source/WebCore/css/WebKitCSSMatrix.h</a></li>
<li><a href="#trunkSourceWebCorecssWebKitCSSTransformValuecpp">trunk/Source/WebCore/css/WebKitCSSTransformValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssWebKitCSSTransformValueh">trunk/Source/WebCore/css/WebKitCSSTransformValue.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/ChangeLog        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -1,3 +1,181 @@
</span><ins>+2015-08-11 Gyuyoung Kim <gyuyoung.kim@webkit.org>
+
+ Reduce use of PassRefPtr in WebCore/css
+ https://bugs.webkit.org/show_bug.cgi?id=147821
+
+ Reviewed by Daniel Bates.
+
+ Use RefPtr when returning nullptr or RefPtr, if not, use Ref.
+
+ * css/CSSBasicShapes.cpp:
+ (WebCore::buildSerializablePositionOffset):
+ (WebCore::CSSBasicShapeCircle::cssText):
+ (WebCore::CSSBasicShapeEllipse::cssText):
+ * css/CSSBasicShapes.h:
+ * css/CSSCalculationValue.cpp:
+ (WebCore::determineCategory):
+ (WebCore::CSSCalcExpressionNodeParser::parseCalc):
+ (WebCore::createBlendHalf):
+ (WebCore::createCSS):
+ * css/CSSCanvasValue.cpp:
+ (WebCore::CSSCanvasValue::image):
+ * css/CSSCanvasValue.h:
+ * css/CSSComputedStyleDeclaration.cpp:
+ (WebCore::positionOffsetValue):
+ (WebCore::ComputedStyleExtractor::currentColorOrValidColor):
+ (WebCore::ComputedStyleExtractor::getFontSizeCSSValuePreferringKeyword):
+ (WebCore::counterToCSSValue):
+ (WebCore::zoomAdjustedPaddingOrMarginPixelValue):
+ (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
+ (WebCore::computeRenderStyleForProperty):
+ (WebCore::valueForItemPositionWithOverflowAlignment):
+ (WebCore::valueForContentPositionAndDistributionWithOverflowAlignment):
+ (WebCore::ComputedStyleExtractor::propertyValue):
+ (WebCore::ComputedStyleExtractor::getCSSPropertyValuesForShorthandProperties):
+ (WebCore::ComputedStyleExtractor::getCSSPropertyValuesForSidesShorthand):
+ (WebCore::ComputedStyleExtractor::getCSSPropertyValuesForGridShorthand):
+ (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValueInternal):
+ (WebCore::ComputedStyleExtractor::getBackgroundShorthandValue):
+ * css/CSSComputedStyleDeclaration.h:
+ * css/CSSCrossfadeValue.cpp:
+ (WebCore::CSSCrossfadeValue::image):
+ (WebCore::CSSCrossfadeValue::blend):
+ * css/CSSCrossfadeValue.h:
+ * css/CSSFilterImageValue.cpp:
+ (WebCore::CSSFilterImageValue::image):
+ * css/CSSFilterImageValue.h:
+ * css/CSSGradientValue.cpp:
+ (WebCore::CSSGradientValue::image):
+ (WebCore::CSSGradientValue::gradientWithStylesResolved):
+ (WebCore::CSSLinearGradientValue::createGradient):
+ (WebCore::CSSRadialGradientValue::createGradient):
+ * css/CSSGradientValue.h:
+ * css/CSSImageSetValue.cpp:
+ (WebCore::CSSImageSetValue::cloneForCSSOM):
+ * css/CSSImageSetValue.h:
+ * css/CSSImageValue.cpp:
+ (WebCore::CSSImageValue::cloneForCSSOM):
+ * css/CSSImageValue.h:
+ * css/CSSParser.cpp:
+ (WebCore::CSSParser::parseRule):
+ (WebCore::CSSParser::parseKeyframeRule):
+ (WebCore::CSSParser::parseFontFaceValue):
+ (WebCore::CSSParser::parseValidPrimitive):
+ (WebCore::CSSParser::parseContentDistributionOverflowPosition):
+ (WebCore::CSSParser::parseAttr):
+ (WebCore::CSSParser::parseBackgroundColor):
+ (WebCore::CSSParser::parsePositionX):
+ (WebCore::CSSParser::parsePositionY):
+ (WebCore::CSSParser::parseFillPositionComponent):
+ (WebCore::CSSParser::parseFillSize):
+ (WebCore::CSSParser::parseAnimationDelay):
+ (WebCore::CSSParser::parseAnimationDirection):
+ (WebCore::CSSParser::parseAnimationDuration):
+ (WebCore::CSSParser::parseAnimationFillMode):
+ (WebCore::CSSParser::parseAnimationIterationCount):
+ (WebCore::CSSParser::parseAnimationName):
+ (WebCore::CSSParser::parseAnimationPlayState):
+ (WebCore::CSSParser::parseAnimationTrigger):
+ (WebCore::CSSParser::parseAnimationProperty):
+ (WebCore::CSSParser::parseAnimationTimingFunction):
+ (WebCore::CSSParser::parseGridPosition):
+ (WebCore::gridMissingGridPositionValue):
+ (WebCore::CSSParser::parseGridTrackList):
+ (WebCore::CSSParser::parseGridTrackSize):
+ (WebCore::CSSParser::parseGridBreadth):
+ (WebCore::CSSParser::parseGridAutoFlow):
+ (WebCore::CSSParser::parseGridTemplateAreas):
+ (WebCore::CSSParser::parseCounterContent):
+ (WebCore::CSSParser::parseInsetRoundedCorners):
+ (WebCore::CSSParser::parseBasicShapeInset):
+ (WebCore::CSSParser::parseShapeRadius):
+ (WebCore::CSSParser::parseBasicShapeCircle):
+ (WebCore::CSSParser::parseBasicShapeEllipse):
+ (WebCore::CSSParser::parseBasicShapePolygon):
+ (WebCore::CSSParser::parseBasicShapeAndOrBox):
+ (WebCore::CSSParser::parseShapeProperty):
+ (WebCore::CSSParser::parseClipPath):
+ (WebCore::CSSParser::parseBasicShape):
+ (WebCore::CSSParser::parseFontFamily):
+ (WebCore::CSSParser::parseColor):
+ (WebCore::CSSParser::parseShadow):
+ (WebCore::CSSParser::parseImageResolution):
+ (WebCore::CSSParser::parseImageSet):
+ (WebCore::CSSParser::parseTransform):
+ (WebCore::CSSParser::parseTransformValue):
+ (WebCore::CSSParser::parseBuiltinFilterArguments):
+ (WebCore::CSSParser::parseTextIndent):
+ (WebCore::CSSParser::createImportRule):
+ (WebCore::CSSParser::createMediaRule):
+ (WebCore::CSSParser::createEmptyMediaRule):
+ (WebCore::CSSParser::createSupportsRule):
+ (WebCore::CSSParser::popSupportsRuleData):
+ (WebCore::CSSParser::createKeyframesRule):
+ (WebCore::CSSParser::createStyleRule):
+ (WebCore::CSSParser::createFontFaceRule):
+ (WebCore::CSSParser::createPageRule):
+ (WebCore::CSSParser::createRegionRule):
+ (WebCore::CSSParser::createKeyframe):
+ * css/CSSParser.h:
+ * css/CSSPrimitiveValue.cpp:
+ (WebCore::CSSPrimitiveValue::cloneForCSSOM):
+ * css/CSSPrimitiveValue.h:
+ * css/CSSStyleDeclaration.h:
+ * css/CSSStyleSheet.cpp:
+ (WebCore::CSSStyleSheet::rules):
+ (WebCore::CSSStyleSheet::cssRules):
+ * css/CSSStyleSheet.h:
+ * css/CSSToStyleMap.cpp:
+ (WebCore::CSSToStyleMap::styleImage):
+ * css/CSSToStyleMap.h:
+ * css/CSSValue.cpp:
+ (WebCore::CSSValue::cloneForCSSOM):
+ * css/CSSValue.h:
+ * css/CSSValueList.cpp:
+ (WebCore::CSSValueList::cloneForCSSOM):
+ * css/CSSValueList.h:
+ * css/MediaList.h:
+ (WebCore::MediaQuerySet::copy):
+ * css/MediaQueryMatcher.cpp:
+ (WebCore::MediaQueryMatcher::matchMedia):
+ * css/MediaQueryMatcher.h:
+ * css/PropertySetCSSStyleDeclaration.cpp:
+ (WebCore::PropertySetCSSStyleDeclaration::getPropertyCSSValue):
+ (WebCore::PropertySetCSSStyleDeclaration::getPropertyCSSValueInternal):
+ * css/PropertySetCSSStyleDeclaration.h:
+ * css/RGBColor.cpp:
+ (WebCore::RGBColor::red):
+ (WebCore::RGBColor::green):
+ (WebCore::RGBColor::blue):
+ (WebCore::RGBColor::alpha):
+ * css/RGBColor.h:
+ * css/SVGCSSComputedStyleDeclaration.cpp:
+ (WebCore::glyphOrientationToCSSPrimitiveValue):
+ (WebCore::strokeDashArrayToCSSValueList):
+ (WebCore::ComputedStyleExtractor::adjustSVGPaintForCurrentColor):
+ (WebCore::ComputedStyleExtractor::svgPropertyValue):
+ * css/SVGCSSParser.cpp:
+ (WebCore::CSSParser::parseSVGStrokeDasharray):
+ (WebCore::CSSParser::parseSVGPaint):
+ (WebCore::CSSParser::parseSVGColor):
+ (WebCore::CSSParser::parsePaintOrder):
+ * css/WebKitCSSFilterValue.cpp:
+ (WebCore::WebKitCSSFilterValue::cloneForCSSOM):
+ * css/WebKitCSSFilterValue.h:
+ * css/WebKitCSSMatrix.cpp:
+ (WebCore::WebKitCSSMatrix::multiply):
+ (WebCore::WebKitCSSMatrix::inverse):
+ (WebCore::WebKitCSSMatrix::translate):
+ (WebCore::WebKitCSSMatrix::scale):
+ (WebCore::WebKitCSSMatrix::rotate):
+ (WebCore::WebKitCSSMatrix::rotateAxisAngle):
+ (WebCore::WebKitCSSMatrix::skewX):
+ (WebCore::WebKitCSSMatrix::skewY):
+ * css/WebKitCSSMatrix.h:
+ * css/WebKitCSSTransformValue.cpp:
+ (WebCore::WebKitCSSTransformValue::cloneForCSSOM):
+ * css/WebKitCSSTransformValue.h:
+
</ins><span class="cx"> 2015-08-11 Sam Weinig <sam@webkit.org>
</span><span class="cx">
</span><span class="cx"> Move CountQueuingStrategy and related to files to their correct place in the Xcode project
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSBasicShapescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSBasicShapes.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSBasicShapes.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSBasicShapes.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx"> return offset.cssText();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<CSSPrimitiveValue> buildSerializablePositionOffset(PassRefPtr<CSSPrimitiveValue> offset, CSSValueID defaultSide)
</del><ins>+static Ref<CSSPrimitiveValue> buildSerializablePositionOffset(PassRefPtr<CSSPrimitiveValue> offset, CSSValueID defaultSide)
</ins><span class="cx"> {
</span><span class="cx"> CSSValueID side = defaultSide;
</span><span class="cx"> RefPtr<CSSPrimitiveValue> amount;
</span><span class="lines">@@ -110,8 +110,8 @@
</span><span class="cx">
</span><span class="cx"> String CSSBasicShapeCircle::cssText() const
</span><span class="cx"> {
</span><del>- RefPtr<CSSPrimitiveValue> normalizedCX = buildSerializablePositionOffset(m_centerX, CSSValueLeft);
- RefPtr<CSSPrimitiveValue> normalizedCY = buildSerializablePositionOffset(m_centerY, CSSValueTop);
</del><ins>+ Ref<CSSPrimitiveValue> normalizedCX = buildSerializablePositionOffset(m_centerX, CSSValueLeft);
+ Ref<CSSPrimitiveValue> normalizedCY = buildSerializablePositionOffset(m_centerY, CSSValueTop);
</ins><span class="cx">
</span><span class="cx"> String radius;
</span><span class="cx"> if (m_radius && m_radius->getValueID() != CSSValueClosestSide)
</span><span class="lines">@@ -173,8 +173,8 @@
</span><span class="cx">
</span><span class="cx"> String CSSBasicShapeEllipse::cssText() const
</span><span class="cx"> {
</span><del>- RefPtr<CSSPrimitiveValue> normalizedCX = buildSerializablePositionOffset(m_centerX, CSSValueLeft);
- RefPtr<CSSPrimitiveValue> normalizedCY = buildSerializablePositionOffset(m_centerY, CSSValueTop);
</del><ins>+ Ref<CSSPrimitiveValue> normalizedCX = buildSerializablePositionOffset(m_centerX, CSSValueLeft);
+ Ref<CSSPrimitiveValue> normalizedCY = buildSerializablePositionOffset(m_centerY, CSSValueTop);
</ins><span class="cx">
</span><span class="cx"> String radiusX;
</span><span class="cx"> String radiusY;
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSBasicShapesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSBasicShapes.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSBasicShapes.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSBasicShapes.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -192,8 +192,8 @@
</span><span class="cx"> m_values.append(y);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- PassRefPtr<CSSPrimitiveValue> getXAt(unsigned i) const { return m_values.at(i * 2); }
- PassRefPtr<CSSPrimitiveValue> getYAt(unsigned i) const { return m_values.at(i * 2 + 1); }
</del><ins>+ RefPtr<CSSPrimitiveValue> getXAt(unsigned i) const { return m_values.at(i * 2); }
+ RefPtr<CSSPrimitiveValue> getYAt(unsigned i) const { return m_values.at(i * 2 + 1); }
</ins><span class="cx"> const Vector<RefPtr<CSSPrimitiveValue>>& values() const { return m_values; }
</span><span class="cx">
</span><span class="cx"> void setWindRule(WindRule w) { m_windRule = w; }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSCalculationValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSCalculationValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSCalculationValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSCalculationValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -47,8 +47,8 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-static PassRefPtr<CSSCalcExpressionNode> createCSS(const CalcExpressionNode&, const RenderStyle&);
-static PassRefPtr<CSSCalcExpressionNode> createCSS(const Length&, const RenderStyle&);
</del><ins>+static RefPtr<CSSCalcExpressionNode> createCSS(const CalcExpressionNode&, const RenderStyle&);
+static RefPtr<CSSCalcExpressionNode> createCSS(const Length&, const RenderStyle&);
</ins><span class="cx">
</span><span class="cx"> static CalculationCategory unitCategory(CSSPrimitiveValue::UnitTypes type)
</span><span class="cx"> {
</span><span class="lines">@@ -203,7 +203,7 @@
</span><span class="cx"> return adoptRef(*new CSSCalcPrimitiveValue(value, isInteger));
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static PassRefPtr<CSSCalcPrimitiveValue> create(double value, CSSPrimitiveValue::UnitTypes type, bool isInteger)
</del><ins>+ static RefPtr<CSSCalcPrimitiveValue> create(double value, CSSPrimitiveValue::UnitTypes type, bool isInteger)
</ins><span class="cx"> {
</span><span class="cx"> if (std::isnan(value) || std::isinf(value))
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -348,7 +348,7 @@
</span><span class="cx"> class CSSCalcBinaryOperation final : public CSSCalcExpressionNode {
</span><span class="cx"> WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>- static PassRefPtr<CSSCalcBinaryOperation> create(CalcOperator op, PassRefPtr<CSSCalcExpressionNode> leftSide, PassRefPtr<CSSCalcExpressionNode> rightSide)
</del><ins>+ static RefPtr<CSSCalcBinaryOperation> create(CalcOperator op, PassRefPtr<CSSCalcExpressionNode> leftSide, PassRefPtr<CSSCalcExpressionNode> rightSide)
</ins><span class="cx"> {
</span><span class="cx"> ASSERT(leftSide->category() < CalcOther);
</span><span class="cx"> ASSERT(rightSide->category() < CalcOther);
</span><span class="lines">@@ -361,7 +361,7 @@
</span><span class="cx"> return adoptRef(new CSSCalcBinaryOperation(newCategory, op, leftSide, rightSide));
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static PassRefPtr<CSSCalcExpressionNode> createSimplified(CalcOperator op, PassRefPtr<CSSCalcExpressionNode> leftSide, PassRefPtr<CSSCalcExpressionNode> rightSide)
</del><ins>+ static RefPtr<CSSCalcExpressionNode> createSimplified(CalcOperator op, PassRefPtr<CSSCalcExpressionNode> leftSide, PassRefPtr<CSSCalcExpressionNode> rightSide)
</ins><span class="cx"> {
</span><span class="cx"> CalculationCategory leftCategory = leftSide->category();
</span><span class="cx"> CalculationCategory rightCategory = rightSide->category();
</span><span class="lines">@@ -571,7 +571,7 @@
</span><span class="cx">
</span><span class="cx"> class CSSCalcExpressionNodeParser {
</span><span class="cx"> public:
</span><del>- PassRefPtr<CSSCalcExpressionNode> parseCalc(CSSParserValueList* tokens)
</del><ins>+ RefPtr<CSSCalcExpressionNode> parseCalc(CSSParserValueList* tokens)
</ins><span class="cx"> {
</span><span class="cx"> unsigned index = 0;
</span><span class="cx"> Value result;
</span><span class="lines">@@ -694,13 +694,13 @@
</span><span class="cx"> }
</span><span class="cx"> };
</span><span class="cx">
</span><del>-static inline PassRefPtr<CSSCalcBinaryOperation> createBlendHalf(const Length& length, const RenderStyle& style, float progress)
</del><ins>+static inline RefPtr<CSSCalcBinaryOperation> createBlendHalf(const Length& length, const RenderStyle& style, float progress)
</ins><span class="cx"> {
</span><span class="cx"> return CSSCalcBinaryOperation::create(CalcMultiply, createCSS(length, style),
</span><span class="cx"> CSSCalcPrimitiveValue::create(CSSPrimitiveValue::create(progress, CSSPrimitiveValue::CSS_NUMBER), !progress || progress == 1));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<CSSCalcExpressionNode> createCSS(const CalcExpressionNode& node, const RenderStyle& style)
</del><ins>+static RefPtr<CSSCalcExpressionNode> createCSS(const CalcExpressionNode& node, const RenderStyle& style)
</ins><span class="cx"> {
</span><span class="cx"> switch (node.type()) {
</span><span class="cx"> case CalcExpressionNodeNumber: {
</span><span class="lines">@@ -727,7 +727,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<CSSCalcExpressionNode> createCSS(const Length& length, const RenderStyle& style)
</del><ins>+static RefPtr<CSSCalcExpressionNode> createCSS(const Length& length, const RenderStyle& style)
</ins><span class="cx"> {
</span><span class="cx"> switch (length.type()) {
</span><span class="cx"> case Percent:
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSCanvasValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSCanvasValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSCanvasValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSCanvasValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -79,12 +79,12 @@
</span><span class="cx"> return m_element;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<Image> CSSCanvasValue::image(RenderElement* renderer, const FloatSize& /*size*/)
</del><ins>+RefPtr<Image> CSSCanvasValue::image(RenderElement* renderer, const FloatSize& /*size*/)
</ins><span class="cx"> {
</span><span class="cx"> ASSERT(clients().contains(renderer));
</span><span class="cx"> HTMLCanvasElement* element = this->element(renderer->document());
</span><span class="cx"> if (!element || !element->buffer())
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> return element->copiedImage();
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSCanvasValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSCanvasValue.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSCanvasValue.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSCanvasValue.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx">
</span><span class="cx"> String customCSSText() const;
</span><span class="cx">
</span><del>- PassRefPtr<Image> image(RenderElement*, const FloatSize&);
</del><ins>+ RefPtr<Image> image(RenderElement*, const FloatSize&);
</ins><span class="cx"> bool isFixedSize() const { return true; }
</span><span class="cx"> FloatSize fixedSize(const RenderElement*);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -689,7 +689,7 @@
</span><span class="cx"> return positionList;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<CSSValue> positionOffsetValue(RenderStyle& style, CSSPropertyID propertyID)
</del><ins>+static RefPtr<CSSValue> positionOffsetValue(RenderStyle& style, CSSPropertyID propertyID)
</ins><span class="cx"> {
</span><span class="cx"> Length length;
</span><span class="cx"> switch (propertyID) {
</span><span class="lines">@@ -726,7 +726,7 @@
</span><span class="cx"> return cssValuePool().createIdentifierValue(CSSValueAuto);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> ComputedStyleExtractor::currentColorOrValidColor(RenderStyle* style, const Color& color) const
</del><ins>+RefPtr<CSSPrimitiveValue> ComputedStyleExtractor::currentColorOrValidColor(RenderStyle* style, const Color& color) const
</ins><span class="cx"> {
</span><span class="cx"> // This function does NOT look at visited information, so that computed style doesn't expose that.
</span><span class="cx"> if (!color.isValid())
</span><span class="lines">@@ -1327,7 +1327,7 @@
</span><span class="cx"> ec = NO_MODIFICATION_ALLOWED_ERR;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> ComputedStyleExtractor::getFontSizeCSSValuePreferringKeyword() const
</del><ins>+RefPtr<CSSPrimitiveValue> ComputedStyleExtractor::getFontSizeCSSValuePreferringKeyword() const
</ins><span class="cx"> {
</span><span class="cx"> if (!m_node)
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -1522,7 +1522,7 @@
</span><span class="cx"> return list;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<CSSValue> counterToCSSValue(const RenderStyle* style, CSSPropertyID propertyID)
</del><ins>+static RefPtr<CSSValue> counterToCSSValue(const RenderStyle* style, CSSPropertyID propertyID)
</ins><span class="cx"> {
</span><span class="cx"> const CounterDirectiveMap* map = style->counterDirectives();
</span><span class="cx"> if (!map)
</span><span class="lines">@@ -1631,7 +1631,7 @@
</span><span class="cx"> typedef LayoutUnit (RenderBoxModelObject::*RenderBoxComputedCSSValueGetter)() const;
</span><span class="cx">
</span><span class="cx"> template<RenderStyleLengthGetter lengthGetter, RenderBoxComputedCSSValueGetter computedCSSValueGetter>
</span><del>-inline PassRefPtr<CSSValue> zoomAdjustedPaddingOrMarginPixelValue(RenderStyle& style, RenderObject* renderer)
</del><ins>+inline RefPtr<CSSValue> zoomAdjustedPaddingOrMarginPixelValue(RenderStyle& style, RenderObject* renderer)
</ins><span class="cx"> {
</span><span class="cx"> Length unzoomzedLength = (style.*lengthGetter)();
</span><span class="cx"> if (!is<RenderBox>(renderer) || unzoomzedLength.isFixed())
</span><span class="lines">@@ -1749,7 +1749,7 @@
</span><span class="cx"> position = ContentPositionStart;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropertyID propertyID, EUpdateLayout updateLayout) const
</del><ins>+RefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropertyID propertyID, EUpdateLayout updateLayout) const
</ins><span class="cx"> {
</span><span class="cx"> return ComputedStyleExtractor(m_node, m_allowVisitedStyle, m_pseudoElementSpecifier).propertyValue(propertyID, updateLayout);
</span><span class="cx"> }
</span><span class="lines">@@ -1788,7 +1788,7 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static inline PassRefPtr<RenderStyle> computeRenderStyleForProperty(Node* styledNode, PseudoId pseudoElementSpecifier, CSSPropertyID propertyID)
</del><ins>+static inline RefPtr<RenderStyle> computeRenderStyleForProperty(Node* styledNode, PseudoId pseudoElementSpecifier, CSSPropertyID propertyID)
</ins><span class="cx"> {
</span><span class="cx"> RenderObject* renderer = styledNode->renderer();
</span><span class="cx">
</span><span class="lines">@@ -1798,7 +1798,7 @@
</span><span class="cx"> // FIXME: This cached pseudo style will only exist if the animation has been run at least once.
</span><span class="cx"> return style->getCachedPseudoStyle(pseudoElementSpecifier);
</span><span class="cx"> }
</span><del>- return style.release();
</del><ins>+ return style;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> return styledNode->computedStyle(styledNode->isPseudoElement() ? NOPSEUDO : pseudoElementSpecifier);
</span><span class="lines">@@ -1829,7 +1829,7 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-static PassRefPtr<CSSValueList> valueForItemPositionWithOverflowAlignment(ItemPosition itemPosition, OverflowAlignment overflowAlignment, ItemPositionType positionType)
</del><ins>+static RefPtr<CSSValueList> valueForItemPositionWithOverflowAlignment(ItemPosition itemPosition, OverflowAlignment overflowAlignment, ItemPositionType positionType)
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<CSSValueList> result = CSSValueList::createSpaceSeparated();
</span><span class="cx"> if (positionType == LegacyPosition)
</span><span class="lines">@@ -1838,10 +1838,10 @@
</span><span class="cx"> if (overflowAlignment != OverflowAlignmentDefault)
</span><span class="cx"> result->append(cssValuePool().createValue(overflowAlignment));
</span><span class="cx"> ASSERT(result->length() <= 2);
</span><del>- return result.release();
</del><ins>+ return result;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<CSSValueList> valueForContentPositionAndDistributionWithOverflowAlignment(ContentPosition position, ContentDistributionType distribution, OverflowAlignment overflowAlignment)
</del><ins>+static RefPtr<CSSValueList> valueForContentPositionAndDistributionWithOverflowAlignment(ContentPosition position, ContentDistributionType distribution, OverflowAlignment overflowAlignment)
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<CSSValueList> result = CSSValueList::createSpaceSeparated();
</span><span class="cx"> if (distribution != ContentDistributionDefault)
</span><span class="lines">@@ -1852,10 +1852,10 @@
</span><span class="cx"> result->append(CSSPrimitiveValue::create(overflowAlignment));
</span><span class="cx"> ASSERT(result->length() > 0);
</span><span class="cx"> ASSERT(result->length() <= 3);
</span><del>- return result.release();
</del><ins>+ return result;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> ComputedStyleExtractor::propertyValue(CSSPropertyID propertyID, EUpdateLayout updateLayout) const
</del><ins>+RefPtr<CSSValue> ComputedStyleExtractor::propertyValue(CSSPropertyID propertyID, EUpdateLayout updateLayout) const
</ins><span class="cx"> {
</span><span class="cx"> Node* styledNode = this->styledNode();
</span><span class="cx"> if (!styledNode)
</span><span class="lines">@@ -1927,7 +1927,7 @@
</span><span class="cx"> else
</span><span class="cx"> list->append(cssValuePool().createIdentifierValue(CSSValueNone));
</span><span class="cx"> }
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyBackgroundSize:
</span><span class="cx"> case CSSPropertyWebkitBackgroundSize:
</span><span class="lines">@@ -1940,7 +1940,7 @@
</span><span class="cx"> for (const FillLayer* currLayer = layers; currLayer; currLayer = currLayer->next())
</span><span class="cx"> list->append(fillSizeToCSSValue(currLayer->size(), *style));
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyBackgroundRepeat:
</span><span class="cx"> case CSSPropertyWebkitMaskRepeat: {
</span><span class="lines">@@ -1952,7 +1952,7 @@
</span><span class="cx"> for (const FillLayer* currLayer = layers; currLayer; currLayer = currLayer->next())
</span><span class="cx"> list->append(fillRepeatToCSSValue(currLayer->repeatX(), currLayer->repeatY()));
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyWebkitMaskSourceType: {
</span><span class="cx"> const FillLayer* layers = style->maskLayers();
</span><span class="lines">@@ -1967,7 +1967,7 @@
</span><span class="cx"> for (const FillLayer* currLayer = layers; currLayer; currLayer = currLayer->next())
</span><span class="cx"> list->append(fillSourceTypeToCSSValue(currLayer->maskSourceType()));
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyWebkitBackgroundComposite:
</span><span class="cx"> case CSSPropertyWebkitMaskComposite: {
</span><span class="lines">@@ -1979,7 +1979,7 @@
</span><span class="cx"> for (const FillLayer* currLayer = layers; currLayer; currLayer = currLayer->next())
</span><span class="cx"> list->append(cssValuePool().createValue(currLayer->composite()));
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyBackgroundAttachment: {
</span><span class="cx"> const FillLayer* layers = style->backgroundLayers();
</span><span class="lines">@@ -1990,7 +1990,7 @@
</span><span class="cx"> for (const FillLayer* currLayer = layers; currLayer; currLayer = currLayer->next())
</span><span class="cx"> list->append(cssValuePool().createValue(currLayer->attachment()));
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyBackgroundClip:
</span><span class="cx"> case CSSPropertyBackgroundOrigin:
</span><span class="lines">@@ -2011,7 +2011,7 @@
</span><span class="cx"> list->append(cssValuePool().createValue(box));
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyBackgroundPosition:
</span><span class="cx"> case CSSPropertyWebkitMaskPosition: {
</span><span class="lines">@@ -2022,7 +2022,7 @@
</span><span class="cx"> RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
</span><span class="cx"> for (const FillLayer* currLayer = layers; currLayer; currLayer = currLayer->next())
</span><span class="cx"> list->append(createPositionListForLayer(propertyID, currLayer, *style));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyBackgroundPositionX:
</span><span class="cx"> case CSSPropertyWebkitMaskPositionX: {
</span><span class="lines">@@ -2034,7 +2034,7 @@
</span><span class="cx"> for (const FillLayer* currLayer = layers; currLayer; currLayer = currLayer->next())
</span><span class="cx"> list->append(cssValuePool().createValue(currLayer->xPosition()));
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyBackgroundPositionY:
</span><span class="cx"> case CSSPropertyWebkitMaskPositionY: {
</span><span class="lines">@@ -2046,7 +2046,7 @@
</span><span class="cx"> for (const FillLayer* currLayer = layers; currLayer; currLayer = currLayer->next())
</span><span class="cx"> list->append(cssValuePool().createValue(currLayer->yPosition()));
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyBorderCollapse:
</span><span class="cx"> if (style->borderCollapse())
</span><span class="lines">@@ -2056,7 +2056,7 @@
</span><span class="cx"> RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
</span><span class="cx"> list->append(zoomAdjustedPixelValue(style->horizontalBorderSpacing(), *style));
</span><span class="cx"> list->append(zoomAdjustedPixelValue(style->verticalBorderSpacing(), *style));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyWebkitBorderHorizontalSpacing:
</span><span class="cx"> return zoomAdjustedPixelValue(style->horizontalBorderSpacing(), *style);
</span><span class="lines">@@ -2181,7 +2181,7 @@
</span><span class="cx"> auto value = cssValuePool().createValue(style->cursor());
</span><span class="cx"> if (list) {
</span><span class="cx"> list->append(WTF::move(value));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> return WTF::move(value);
</span><span class="cx"> }
</span><span class="lines">@@ -2249,7 +2249,7 @@
</span><span class="cx"> computedFont->size = fontSizeFromStyle(*style);
</span><span class="cx"> computedFont->lineHeight = lineHeightFromStyle(*style);
</span><span class="cx"> computedFont->family = fontFamilyFromStyle(style.get());
</span><del>- return computedFont.release();
</del><ins>+ return computedFont;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyFontFamily: {
</span><span class="cx"> RefPtr<CSSValueList> fontFamilyList = fontFamilyFromStyle(style.get());
</span><span class="lines">@@ -2257,7 +2257,7 @@
</span><span class="cx"> // NOTE: Gecko always returns this as a comma-separated CSSPrimitiveValue string.
</span><span class="cx"> if (fontFamilyList->length() == 1)
</span><span class="cx"> return fontFamilyList->item(0);
</span><del>- return fontFamilyList.release();
</del><ins>+ return fontFamilyList;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyFontSize:
</span><span class="cx"> return fontSizeFromStyle(*style);
</span><span class="lines">@@ -2278,7 +2278,7 @@
</span><span class="cx"> const FontFeature& feature = featureSettings->at(i);
</span><span class="cx"> list->append(CSSFontFeatureValue::create(feature.tag(), feature.value()));
</span><span class="cx"> }
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> #if ENABLE(CSS_GRID_LAYOUT)
</span><span class="cx"> case CSSPropertyWebkitGridAutoFlow: {
</span><span class="lines">@@ -2292,7 +2292,7 @@
</span><span class="cx"> if (style->isGridAutoFlowAlgorithmDense())
</span><span class="cx"> list->append(cssValuePool().createIdentifierValue(CSSValueDense));
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Specs mention that getComputedStyle() should return the used value of the property instead of the computed
</span><span class="lines">@@ -2558,7 +2558,7 @@
</span><span class="cx"> RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
</span><span class="cx"> list->append(cssValuePool().createValue(style->textEmphasisFill()));
</span><span class="cx"> list->append(cssValuePool().createValue(style->textEmphasisMark()));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> case CSSPropertyTextIndent: {
</span><span class="lines">@@ -2575,10 +2575,10 @@
</span><span class="cx"> list->append(cssValuePool().createIdentifierValue(CSSValueWebkitEachLine));
</span><span class="cx"> if (style->textIndentType() == TextIndentHanging)
</span><span class="cx"> list->append(cssValuePool().createIdentifierValue(CSSValueWebkitHanging));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><del>- return textIndent.release();
</del><ins>+ return textIndent;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyTextShadow:
</span><span class="cx"> return valueForShadow(style->textShadow(), propertyID, *style);
</span><span class="lines">@@ -2751,7 +2751,7 @@
</span><span class="cx"> }
</span><span class="cx"> } else
</span><span class="cx"> list->append(cssValuePool().createIdentifierValue(CSSValueNormal));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyAnimationDuration:
</span><span class="cx"> case CSSPropertyWebkitAnimationDuration:
</span><span class="lines">@@ -2779,7 +2779,7 @@
</span><span class="cx"> }
</span><span class="cx"> } else
</span><span class="cx"> list->append(cssValuePool().createIdentifierValue(CSSValueNone));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyAnimationIterationCount:
</span><span class="cx"> case CSSPropertyWebkitAnimationIterationCount: {
</span><span class="lines">@@ -2795,7 +2795,7 @@
</span><span class="cx"> }
</span><span class="cx"> } else
</span><span class="cx"> list->append(cssValuePool().createValue(Animation::initialIterationCount(), CSSPrimitiveValue::CSS_NUMBER));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyAnimationName:
</span><span class="cx"> case CSSPropertyWebkitAnimationName: {
</span><span class="lines">@@ -2806,7 +2806,7 @@
</span><span class="cx"> list->append(cssValuePool().createValue(t->animation(i).name(), CSSPrimitiveValue::CSS_STRING));
</span><span class="cx"> } else
</span><span class="cx"> list->append(cssValuePool().createIdentifierValue(CSSValueNone));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyAnimationPlayState:
</span><span class="cx"> case CSSPropertyWebkitAnimationPlayState: {
</span><span class="lines">@@ -2822,7 +2822,7 @@
</span><span class="cx"> }
</span><span class="cx"> } else
</span><span class="cx"> list->append(cssValuePool().createIdentifierValue(CSSValueRunning));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyAnimationTimingFunction:
</span><span class="cx"> case CSSPropertyWebkitAnimationTimingFunction:
</span><span class="lines">@@ -2906,7 +2906,7 @@
</span><span class="cx"> list->append(zoomAdjustedPixelValueForLength(style->perspectiveOriginY(), *style));
</span><span class="cx">
</span><span class="cx"> }
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyWebkitRtlOrdering:
</span><span class="cx"> return cssValuePool().createIdentifierValue(style->rtlOrdering() ? CSSValueVisual : CSSValueLogical);
</span><span class="lines">@@ -2961,7 +2961,7 @@
</span><span class="cx"> if (style->transformOriginZ() != 0)
</span><span class="cx"> list->append(zoomAdjustedPixelValue(style->transformOriginZ(), *style));
</span><span class="cx"> }
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyTransformStyle:
</span><span class="cx"> case CSSPropertyWebkitTransformStyle:
</span><span class="lines">@@ -2992,7 +2992,7 @@
</span><span class="cx"> list->append(cssValuePool().createValue(animation.delay(), CSSPrimitiveValue::CSS_S));
</span><span class="cx"> transitionsList->append(list.releaseNonNull());
</span><span class="cx"> }
</span><del>- return transitionsList.release();
</del><ins>+ return transitionsList;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
</span><span class="lines">@@ -3001,7 +3001,7 @@
</span><span class="cx"> list->append(cssValuePool().createValue(Animation::initialDuration(), CSSPrimitiveValue::CSS_S));
</span><span class="cx"> list->append(createTimingFunctionValue(Animation::initialTimingFunction().get()));
</span><span class="cx"> list->append(cssValuePool().createValue(Animation::initialDelay(), CSSPrimitiveValue::CSS_S));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyPointerEvents:
</span><span class="cx"> return cssValuePool().createValue(style->pointerEvents());
</span><span class="lines">@@ -3048,7 +3048,7 @@
</span><span class="cx"> const auto& boxOperation = downcast<BoxClipPathOperation>(*operation);
</span><span class="cx"> list->append(cssValuePool().createValue(boxOperation.referenceBox()));
</span><span class="cx"> }
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> #if ENABLE(CSS_REGIONS)
</span><span class="cx"> case CSSPropertyWebkitFlowInto:
</span><span class="lines">@@ -3102,7 +3102,7 @@
</span><span class="cx"> if (!compareCSSValuePtr<CSSValue>(value, propertyValue(property, DoNotUpdateLayout)))
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><del>- return value.release();
</del><ins>+ return value;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyBorderBottom:
</span><span class="cx"> return getCSSPropertyValuesForShorthandProperties(borderBottomShorthand());
</span><span class="lines">@@ -3369,17 +3369,17 @@
</span><span class="cx"> return copyPropertiesInSet(computedProperties, numComputedProperties);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValueList> ComputedStyleExtractor::getCSSPropertyValuesForShorthandProperties(const StylePropertyShorthand& shorthand) const
</del><ins>+RefPtr<CSSValueList> ComputedStyleExtractor::getCSSPropertyValuesForShorthandProperties(const StylePropertyShorthand& shorthand) const
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
</span><span class="cx"> for (size_t i = 0; i < shorthand.length(); ++i) {
</span><span class="cx"> RefPtr<CSSValue> value = propertyValue(shorthand.properties()[i], DoNotUpdateLayout);
</span><span class="cx"> list->append(value.releaseNonNull());
</span><span class="cx"> }
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValueList> ComputedStyleExtractor::getCSSPropertyValuesForSidesShorthand(const StylePropertyShorthand& shorthand) const
</del><ins>+RefPtr<CSSValueList> ComputedStyleExtractor::getCSSPropertyValuesForSidesShorthand(const StylePropertyShorthand& shorthand) const
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
</span><span class="cx"> // Assume the properties are in the usual order top, right, bottom, left.
</span><span class="lines">@@ -3404,17 +3404,17 @@
</span><span class="cx"> if (showLeft)
</span><span class="cx"> list->append(leftValue.releaseNonNull());
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValueList> ComputedStyleExtractor::getCSSPropertyValuesForGridShorthand(const StylePropertyShorthand& shorthand) const
</del><ins>+RefPtr<CSSValueList> ComputedStyleExtractor::getCSSPropertyValuesForGridShorthand(const StylePropertyShorthand& shorthand) const
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated();
</span><span class="cx"> for (size_t i = 0; i < shorthand.length(); ++i) {
</span><span class="cx"> RefPtr<CSSValue> value = propertyValue(shorthand.properties()[i], DoNotUpdateLayout);
</span><span class="cx"> list->append(value.releaseNonNull());
</span><span class="cx"> }
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> Ref<MutableStyleProperties> ComputedStyleExtractor::copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const
</span><span class="lines">@@ -3434,7 +3434,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(const String& propertyName)
</del><ins>+RefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(const String& propertyName)
</ins><span class="cx"> {
</span><span class="cx"> CSSPropertyID propertyID = cssPropertyID(propertyName);
</span><span class="cx"> if (!propertyID)
</span><span class="lines">@@ -3478,7 +3478,7 @@
</span><span class="cx"> return String();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValueInternal(CSSPropertyID propertyID)
</del><ins>+RefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValueInternal(CSSPropertyID propertyID)
</ins><span class="cx"> {
</span><span class="cx"> return getPropertyCSSValue(propertyID);
</span><span class="cx"> }
</span><span class="lines">@@ -3494,7 +3494,7 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValueList> ComputedStyleExtractor::getBackgroundShorthandValue() const
</del><ins>+RefPtr<CSSValueList> ComputedStyleExtractor::getBackgroundShorthandValue() const
</ins><span class="cx"> {
</span><span class="cx"> static const CSSPropertyID propertiesBeforeSlashSeperator[5] = { CSSPropertyBackgroundColor, CSSPropertyBackgroundImage,
</span><span class="cx"> CSSPropertyBackgroundRepeat, CSSPropertyBackgroundAttachment,
</span><span class="lines">@@ -3505,7 +3505,7 @@
</span><span class="cx"> RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated();
</span><span class="cx"> list->append(*getCSSPropertyValuesForShorthandProperties(StylePropertyShorthand(CSSPropertyBackground, propertiesBeforeSlashSeperator)));
</span><span class="cx"> list->append(*getCSSPropertyValuesForShorthandProperties(StylePropertyShorthand(CSSPropertyBackground, propertiesAfterSlashSeperator)));
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -49,12 +49,12 @@
</span><span class="cx"> public:
</span><span class="cx"> ComputedStyleExtractor(PassRefPtr<Node>, bool allowVisitedStyle = false, PseudoId = NOPSEUDO);
</span><span class="cx">
</span><del>- PassRefPtr<CSSValue> propertyValue(CSSPropertyID, EUpdateLayout = UpdateLayout) const;
</del><ins>+ RefPtr<CSSValue> propertyValue(CSSPropertyID, EUpdateLayout = UpdateLayout) const;
</ins><span class="cx">
</span><span class="cx"> // Helper methods for HTML editing.
</span><span class="cx"> Ref<MutableStyleProperties> copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const;
</span><span class="cx"> Ref<MutableStyleProperties> copyProperties() const;
</span><del>- PassRefPtr<CSSPrimitiveValue> getFontSizeCSSValuePreferringKeyword() const;
</del><ins>+ RefPtr<CSSPrimitiveValue> getFontSizeCSSValuePreferringKeyword() const;
</ins><span class="cx"> bool useFixedFontDefaultSize() const;
</span><span class="cx"> bool propertyMatches(CSSPropertyID, const CSSValue*) const;
</span><span class="cx">
</span><span class="lines">@@ -67,16 +67,16 @@
</span><span class="cx"> // on Elements, but right now editing creates these for text nodes. We should fix that.
</span><span class="cx"> Node* styledNode() const;
</span><span class="cx">
</span><del>- PassRefPtr<CSSValue> svgPropertyValue(CSSPropertyID, EUpdateLayout) const;
- PassRefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, RenderStyle*) const;
</del><ins>+ RefPtr<CSSValue> svgPropertyValue(CSSPropertyID, EUpdateLayout) const;
+ RefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, RenderStyle*) const;
</ins><span class="cx">
</span><span class="cx"> static Ref<CSSValue> valueForShadow(const ShadowData*, CSSPropertyID, const RenderStyle&, AdjustPixelValuesForComputedStyle = AdjustPixelValues);
</span><del>- PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(RenderStyle*, const Color&) const;
</del><ins>+ RefPtr<CSSPrimitiveValue> currentColorOrValidColor(RenderStyle*, const Color&) const;
</ins><span class="cx">
</span><del>- PassRefPtr<CSSValueList> getCSSPropertyValuesForShorthandProperties(const StylePropertyShorthand&) const;
- PassRefPtr<CSSValueList> getCSSPropertyValuesForSidesShorthand(const StylePropertyShorthand&) const;
- PassRefPtr<CSSValueList> getBackgroundShorthandValue() const;
- PassRefPtr<CSSValueList> getCSSPropertyValuesForGridShorthand(const StylePropertyShorthand&) const;
</del><ins>+ RefPtr<CSSValueList> getCSSPropertyValuesForShorthandProperties(const StylePropertyShorthand&) const;
+ RefPtr<CSSValueList> getCSSPropertyValuesForSidesShorthand(const StylePropertyShorthand&) const;
+ RefPtr<CSSValueList> getBackgroundShorthandValue() const;
+ RefPtr<CSSValueList> getCSSPropertyValuesForGridShorthand(const StylePropertyShorthand&) const;
</ins><span class="cx">
</span><span class="cx"> RefPtr<Node> m_node;
</span><span class="cx"> PseudoId m_pseudoElementSpecifier;
</span><span class="lines">@@ -103,7 +103,7 @@
</span><span class="cx"> virtual CSSRule* parentRule() const override;
</span><span class="cx"> virtual unsigned length() const override;
</span><span class="cx"> virtual String item(unsigned index) const override;
</span><del>- virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) override;
</del><ins>+ virtual RefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) override;
</ins><span class="cx"> virtual String getPropertyValue(const String& propertyName) override;
</span><span class="cx"> virtual String getPropertyPriority(const String& propertyName) override;
</span><span class="cx"> virtual String getPropertyShorthand(const String& propertyName) override;
</span><span class="lines">@@ -112,12 +112,12 @@
</span><span class="cx"> virtual String removeProperty(const String& propertyName, ExceptionCode&) override;
</span><span class="cx"> virtual String cssText() const override;
</span><span class="cx"> virtual void setCssText(const String&, ExceptionCode&) override;
</span><del>- virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) override;
</del><ins>+ virtual RefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) override;
</ins><span class="cx"> virtual String getPropertyValueInternal(CSSPropertyID) override;
</span><span class="cx"> virtual bool setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) override;
</span><span class="cx"> virtual Ref<MutableStyleProperties> copyProperties() const override;
</span><span class="cx">
</span><del>- PassRefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateLayout = UpdateLayout) const;
</del><ins>+ RefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateLayout = UpdateLayout) const;
</ins><span class="cx">
</span><span class="cx"> RefPtr<Node> m_node;
</span><span class="cx"> PseudoId m_pseudoElementSpecifier;
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSCrossfadeValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSCrossfadeValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSCrossfadeValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSCrossfadeValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -143,7 +143,7 @@
</span><span class="cx"> m_crossfadeSubimageObserver.setReady(true);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<Image> CSSCrossfadeValue::image(RenderElement* renderer, const FloatSize& size)
</del><ins>+RefPtr<Image> CSSCrossfadeValue::image(RenderElement* renderer, const FloatSize& size)
</ins><span class="cx"> {
</span><span class="cx"> if (size.isEmpty())
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -167,7 +167,7 @@
</span><span class="cx">
</span><span class="cx"> m_generatedImage = CrossfadeGeneratedImage::create(fromImage, toImage, m_percentageValue->getFloatValue(), fixedSize(renderer), size);
</span><span class="cx">
</span><del>- return m_generatedImage.release();
</del><ins>+ return m_generatedImage;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CSSCrossfadeValue::crossfadeChanged(const IntRect&)
</span><span class="lines">@@ -191,7 +191,7 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSCrossfadeValue> CSSCrossfadeValue::blend(const CSSCrossfadeValue& from, double progress) const
</del><ins>+RefPtr<CSSCrossfadeValue> CSSCrossfadeValue::blend(const CSSCrossfadeValue& from, double progress) const
</ins><span class="cx"> {
</span><span class="cx"> ASSERT(equalInputImages(from));
</span><span class="cx"> RefPtr<StyleCachedImage> toStyledImage = StyleCachedImage::create(m_cachedToImage.get());
</span><span class="lines">@@ -209,7 +209,7 @@
</span><span class="cx"> if (m_percentageValue->isPercentage())
</span><span class="cx"> toPercentage /= 100.0;
</span><span class="cx"> crossfadeValue->setPercentage(CSSPrimitiveValue::create(blendFunc(fromPercentage, toPercentage, progress), CSSPrimitiveValue::CSS_NUMBER));
</span><del>- return crossfadeValue.release();
</del><ins>+ return crossfadeValue;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool CSSCrossfadeValue::equals(const CSSCrossfadeValue& other) const
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSCrossfadeValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSCrossfadeValue.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSCrossfadeValue.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSCrossfadeValue.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -52,7 +52,7 @@
</span><span class="cx">
</span><span class="cx"> String customCSSText() const;
</span><span class="cx">
</span><del>- PassRefPtr<Image> image(RenderElement*, const FloatSize&);
</del><ins>+ RefPtr<Image> image(RenderElement*, const FloatSize&);
</ins><span class="cx"> bool isFixedSize() const { return true; }
</span><span class="cx"> FloatSize fixedSize(const RenderElement*);
</span><span class="cx">
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx">
</span><span class="cx"> bool traverseSubresources(const std::function<bool (const CachedResource&)>& handler) const;
</span><span class="cx">
</span><del>- PassRefPtr<CSSCrossfadeValue> blend(const CSSCrossfadeValue&, double) const;
</del><ins>+ RefPtr<CSSCrossfadeValue> blend(const CSSCrossfadeValue&, double) const;
</ins><span class="cx">
</span><span class="cx"> bool equals(const CSSCrossfadeValue&) const;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSFilterImageValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSFilterImageValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSFilterImageValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSFilterImageValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -99,7 +99,7 @@
</span><span class="cx"> m_filterSubimageObserver.setReady(true);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<Image> CSSFilterImageValue::image(RenderElement* renderer, const FloatSize& size)
</del><ins>+RefPtr<Image> CSSFilterImageValue::image(RenderElement* renderer, const FloatSize& size)
</ins><span class="cx"> {
</span><span class="cx"> if (size.isEmpty())
</span><span class="cx"> return nullptr;
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSFilterImageValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSFilterImageValue.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSFilterImageValue.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSFilterImageValue.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx">
</span><span class="cx"> String customCSSText() const;
</span><span class="cx">
</span><del>- PassRefPtr<Image> image(RenderElement*, const FloatSize&);
</del><ins>+ RefPtr<Image> image(RenderElement*, const FloatSize&);
</ins><span class="cx"> bool isFixedSize() const { return true; }
</span><span class="cx"> FloatSize fixedSize(const RenderElement*);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSGradientValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSGradientValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSGradientValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSGradientValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-PassRefPtr<Image> CSSGradientValue::image(RenderElement* renderer, const FloatSize& size)
</del><ins>+RefPtr<Image> CSSGradientValue::image(RenderElement* renderer, const FloatSize& size)
</ins><span class="cx"> {
</span><span class="cx"> if (size.isEmpty())
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx"> if (cacheable)
</span><span class="cx"> saveCachedImageForSize(size, newImage);
</span><span class="cx">
</span><del>- return newImage.release();
</del><ins>+ return newImage;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Should only ever be called for deprecated gradients.
</span><span class="lines">@@ -104,7 +104,7 @@
</span><span class="cx"> { }
</span><span class="cx"> };
</span><span class="cx">
</span><del>-PassRefPtr<CSSGradientValue> CSSGradientValue::gradientWithStylesResolved(StyleResolver* styleResolver)
</del><ins>+RefPtr<CSSGradientValue> CSSGradientValue::gradientWithStylesResolved(StyleResolver* styleResolver)
</ins><span class="cx"> {
</span><span class="cx"> bool derived = false;
</span><span class="cx"> for (auto& stop : m_stops) {
</span><span class="lines">@@ -132,7 +132,7 @@
</span><span class="cx"> stop.m_resolvedColor = styleResolver->colorFromPrimitiveValue(*stop.m_color);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return result.release();
</del><ins>+ return result;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static inline int interpolate(int min, int max, float position)
</span><span class="lines">@@ -745,7 +745,7 @@
</span><span class="cx"> firstPoint.set(halfWidth - endX, halfHeight + endY);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<Gradient> CSSLinearGradientValue::createGradient(RenderElement& renderer, const FloatSize& size)
</del><ins>+Ref<Gradient> CSSLinearGradientValue::createGradient(RenderElement& renderer, const FloatSize& size)
</ins><span class="cx"> {
</span><span class="cx"> ASSERT(!size.isEmpty());
</span><span class="cx">
</span><span class="lines">@@ -803,12 +803,12 @@
</span><span class="cx">
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<Gradient> gradient = Gradient::create(firstPoint, secondPoint);
</del><ins>+ Ref<Gradient> gradient = Gradient::create(firstPoint, secondPoint);
</ins><span class="cx">
</span><span class="cx"> // Now add the stops.
</span><del>- addStops(*gradient, conversionData, 1);
</del><ins>+ addStops(gradient, conversionData, 1);
</ins><span class="cx">
</span><del>- return gradient.release();
</del><ins>+ return gradient;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool CSSLinearGradientValue::equals(const CSSLinearGradientValue& other) const
</span><span class="lines">@@ -1085,7 +1085,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // FIXME: share code with the linear version
</span><del>-PassRefPtr<Gradient> CSSRadialGradientValue::createGradient(RenderElement& renderer, const FloatSize& size)
</del><ins>+Ref<Gradient> CSSRadialGradientValue::createGradient(RenderElement& renderer, const FloatSize& size)
</ins><span class="cx"> {
</span><span class="cx"> ASSERT(!size.isEmpty());
</span><span class="cx">
</span><span class="lines">@@ -1212,7 +1212,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<Gradient> gradient = Gradient::create(firstPoint, firstRadius, secondPoint, secondRadius, aspectRatio);
</del><ins>+ Ref<Gradient> gradient = Gradient::create(firstPoint, firstRadius, secondPoint, secondRadius, aspectRatio);
</ins><span class="cx">
</span><span class="cx"> // addStops() only uses maxExtent for repeating gradients.
</span><span class="cx"> float maxExtent = 0;
</span><span class="lines">@@ -1222,9 +1222,9 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Now add the stops.
</span><del>- addStops(*gradient, conversionData, maxExtent);
</del><ins>+ addStops(gradient, conversionData, maxExtent);
</ins><span class="cx">
</span><del>- return gradient.release();
</del><ins>+ return gradient;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool CSSRadialGradientValue::equals(const CSSRadialGradientValue& other) const
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSGradientValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSGradientValue.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSGradientValue.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSGradientValue.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx">
</span><span class="cx"> class CSSGradientValue : public CSSImageGeneratorValue {
</span><span class="cx"> public:
</span><del>- PassRefPtr<Image> image(RenderElement*, const FloatSize&);
</del><ins>+ RefPtr<Image> image(RenderElement*, const FloatSize&);
</ins><span class="cx">
</span><span class="cx"> void setFirstX(PassRefPtr<CSSPrimitiveValue> val) { m_firstX = val; }
</span><span class="cx"> void setFirstY(PassRefPtr<CSSPrimitiveValue> val) { m_firstY = val; }
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> bool knownToBeOpaque(const RenderElement*) const;
</span><span class="cx">
</span><span class="cx"> void loadSubimages(CachedResourceLoader&, const ResourceLoaderOptions&) { }
</span><del>- PassRefPtr<CSSGradientValue> gradientWithStylesResolved(StyleResolver*);
</del><ins>+ RefPtr<CSSGradientValue> gradientWithStylesResolved(StyleResolver*);
</ins><span class="cx">
</span><span class="cx"> protected:
</span><span class="cx"> CSSGradientValue(ClassType classType, CSSGradientRepeat repeat, CSSGradientType gradientType)
</span><span class="lines">@@ -144,7 +144,7 @@
</span><span class="cx"> String customCSSText() const;
</span><span class="cx">
</span><span class="cx"> // Create the gradient for a given size.
</span><del>- PassRefPtr<Gradient> createGradient(RenderElement&, const FloatSize&);
</del><ins>+ Ref<Gradient> createGradient(RenderElement&, const FloatSize&);
</ins><span class="cx">
</span><span class="cx"> Ref<CSSLinearGradientValue> clone() const
</span><span class="cx"> {
</span><span class="lines">@@ -192,7 +192,7 @@
</span><span class="cx"> void setEndVerticalSize(PassRefPtr<CSSPrimitiveValue> val) { m_endVerticalSize = val; }
</span><span class="cx">
</span><span class="cx"> // Create the gradient for a given size.
</span><del>- PassRefPtr<Gradient> createGradient(RenderElement&, const FloatSize&);
</del><ins>+ Ref<Gradient> createGradient(RenderElement&, const FloatSize&);
</ins><span class="cx">
</span><span class="cx"> bool equals(const CSSRadialGradientValue&) const;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSImageSetValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSImageSetValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSImageSetValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSImageSetValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -196,9 +196,9 @@
</span><span class="cx"> // Non-CSSValueList data is not accessible through CSS OM, no need to clone.
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSImageSetValue> CSSImageSetValue::cloneForCSSOM() const
</del><ins>+Ref<CSSImageSetValue> CSSImageSetValue::cloneForCSSOM() const
</ins><span class="cx"> {
</span><del>- return adoptRef(new CSSImageSetValue(*this));
</del><ins>+ return adoptRef(*new CSSImageSetValue(*this));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSImageSetValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSImageSetValue.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSImageSetValue.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSImageSetValue.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx">
</span><span class="cx"> bool traverseSubresources(const std::function<bool (const CachedResource&)>& handler) const;
</span><span class="cx">
</span><del>- PassRefPtr<CSSImageSetValue> cloneForCSSOM() const;
</del><ins>+ Ref<CSSImageSetValue> cloneForCSSOM() const;
</ins><span class="cx">
</span><span class="cx"> protected:
</span><span class="cx"> ImageWithScale bestImageForScaleFactor();
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSImageValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSImageValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSImageValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSImageValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -113,12 +113,12 @@
</span><span class="cx"> return "url(" + quoteCSSURLIfNeeded(m_url) + ')';
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSImageValue::cloneForCSSOM() const
</del><ins>+Ref<CSSValue> CSSImageValue::cloneForCSSOM() const
</ins><span class="cx"> {
</span><span class="cx"> // NOTE: We expose CSSImageValues as URI primitive values in CSSOM to maintain old behavior.
</span><del>- RefPtr<CSSPrimitiveValue> uriValue = CSSPrimitiveValue::create(m_url, CSSPrimitiveValue::CSS_URI);
</del><ins>+ Ref<CSSPrimitiveValue> uriValue = CSSPrimitiveValue::create(m_url, CSSPrimitiveValue::CSS_URI);
</ins><span class="cx"> uriValue->setCSSOMSafe();
</span><del>- return uriValue.release();
</del><ins>+ return WTF::move(uriValue);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool CSSImageValue::knownToBeOpaque(const RenderElement* renderer) const
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSImageValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSImageValue.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSImageValue.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSImageValue.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx">
</span><span class="cx"> String customCSSText() const;
</span><span class="cx">
</span><del>- PassRefPtr<CSSValue> cloneForCSSOM() const;
</del><ins>+ Ref<CSSValue> cloneForCSSOM() const;
</ins><span class="cx">
</span><span class="cx"> bool traverseSubresources(const std::function<bool (const CachedResource&)>& handler) const;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSParser.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSParser.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSParser.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -461,21 +461,21 @@
</span><span class="cx"> m_logErrors = false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleRuleBase> CSSParser::parseRule(StyleSheetContents* sheet, const String& string)
</del><ins>+RefPtr<StyleRuleBase> CSSParser::parseRule(StyleSheetContents* sheet, const String& string)
</ins><span class="cx"> {
</span><span class="cx"> setStyleSheet(sheet);
</span><span class="cx"> m_allowNamespaceDeclarations = false;
</span><span class="cx"> setupParser("@-webkit-rule{", string, "} ");
</span><span class="cx"> cssyyparse(this);
</span><del>- return m_rule.release();
</del><ins>+ return m_rule;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleKeyframe> CSSParser::parseKeyframeRule(StyleSheetContents* sheet, const String& string)
</del><ins>+RefPtr<StyleKeyframe> CSSParser::parseKeyframeRule(StyleSheetContents* sheet, const String& string)
</ins><span class="cx"> {
</span><span class="cx"> setStyleSheet(sheet);
</span><span class="cx"> setupParser("@-webkit-keyframe-rule{ ", string, "} ");
</span><span class="cx"> cssyyparse(this);
</span><del>- return m_keyframe.release();
</del><ins>+ return m_keyframe;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool CSSParser::parseSupportsCondition(const String& string)
</span><span class="lines">@@ -1274,7 +1274,7 @@
</span><span class="cx"> return properties->addParsedProperty(CSSProperty(CSSPropertyTransform, result.release(), important)) ? CSSParser::ParseResult::Changed : CSSParser::ParseResult::Unchanged;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValueList> CSSParser::parseFontFaceValue(const AtomicString& string)
</del><ins>+RefPtr<CSSValueList> CSSParser::parseFontFaceValue(const AtomicString& string)
</ins><span class="cx"> {
</span><span class="cx"> if (string.isEmpty())
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -1818,7 +1818,7 @@
</span><span class="cx"> return !id && validateUnit(valueWithCalculation, FLength | FPercent | FNonNeg);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-inline PassRefPtr<CSSPrimitiveValue> CSSParser::parseValidPrimitive(CSSValueID identifier, ValueWithCalculation& valueWithCalculation)
</del><ins>+inline RefPtr<CSSPrimitiveValue> CSSParser::parseValidPrimitive(CSSValueID identifier, ValueWithCalculation& valueWithCalculation)
</ins><span class="cx"> {
</span><span class="cx"> if (identifier)
</span><span class="cx"> return cssValuePool().createIdentifierValue(identifier);
</span><span class="lines">@@ -3268,7 +3268,7 @@
</span><span class="cx"> return !m_valueList->next();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseContentDistributionOverflowPosition()
</del><ins>+RefPtr<CSSValue> CSSParser::parseContentDistributionOverflowPosition()
</ins><span class="cx"> {
</span><span class="cx"> // auto | <baseline-position> | <content-distribution> || [ <overflow-position>? && <content-position> ]
</span><span class="cx"> // <baseline-position> = baseline | last-baseline;
</span><span class="lines">@@ -4159,7 +4159,7 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAttr(CSSParserValueList& args)
</del><ins>+RefPtr<CSSValue> CSSParser::parseAttr(CSSParserValueList& args)
</ins><span class="cx"> {
</span><span class="cx"> if (args.size() != 1)
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -4182,7 +4182,7 @@
</span><span class="cx"> return cssValuePool().createValue(attrName, CSSPrimitiveValue::CSS_ATTR);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseBackgroundColor()
</del><ins>+RefPtr<CSSValue> CSSParser::parseBackgroundColor()
</ins><span class="cx"> {
</span><span class="cx"> CSSValueID id = m_valueList->current()->id;
</span><span class="cx"> if (id == CSSValueWebkitText || isValidSystemColorValue(id) || id == CSSValueMenu || id == CSSValueCurrentcolor
</span><span class="lines">@@ -4216,7 +4216,7 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parsePositionX(CSSParserValueList& valueList)
</del><ins>+RefPtr<CSSValue> CSSParser::parsePositionX(CSSParserValueList& valueList)
</ins><span class="cx"> {
</span><span class="cx"> int id = valueList.current()->id;
</span><span class="cx"> if (id == CSSValueLeft || id == CSSValueRight || id == CSSValueCenter) {
</span><span class="lines">@@ -4233,7 +4233,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parsePositionY(CSSParserValueList& valueList)
</del><ins>+RefPtr<CSSValue> CSSParser::parsePositionY(CSSParserValueList& valueList)
</ins><span class="cx"> {
</span><span class="cx"> int id = valueList.current()->id;
</span><span class="cx"> if (id == CSSValueTop || id == CSSValueBottom || id == CSSValueCenter) {
</span><span class="lines">@@ -4250,7 +4250,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> CSSParser::parseFillPositionComponent(CSSParserValueList& valueList, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillPositionParsingMode parsingMode)
</del><ins>+RefPtr<CSSPrimitiveValue> CSSParser::parseFillPositionComponent(CSSParserValueList& valueList, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillPositionParsingMode parsingMode)
</ins><span class="cx"> {
</span><span class="cx"> CSSValueID id = valueList.current()->id;
</span><span class="cx"> if (id == CSSValueLeft || id == CSSValueTop || id == CSSValueRight || id == CSSValueBottom || id == CSSValueCenter) {
</span><span class="lines">@@ -4608,7 +4608,7 @@
</span><span class="cx"> value2 = cssValuePool().createIdentifierValue(downcast<CSSPrimitiveValue>(*value1).getValueID());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseFillSize(CSSPropertyID propId, bool& allowComma)
</del><ins>+RefPtr<CSSValue> CSSParser::parseFillSize(CSSPropertyID propId, bool& allowComma)
</ins><span class="cx"> {
</span><span class="cx"> allowComma = true;
</span><span class="cx"> CSSParserValue* value = m_valueList->current();
</span><span class="lines">@@ -4838,7 +4838,7 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAnimationDelay()
</del><ins>+RefPtr<CSSValue> CSSParser::parseAnimationDelay()
</ins><span class="cx"> {
</span><span class="cx"> ValueWithCalculation valueWithCalculation(*m_valueList->current());
</span><span class="cx"> if (validateUnit(valueWithCalculation, FTime))
</span><span class="lines">@@ -4846,7 +4846,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAnimationDirection()
</del><ins>+RefPtr<CSSValue> CSSParser::parseAnimationDirection()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue* value = m_valueList->current();
</span><span class="cx"> if (value->id == CSSValueNormal || value->id == CSSValueAlternate || value->id == CSSValueReverse || value->id == CSSValueAlternateReverse)
</span><span class="lines">@@ -4854,7 +4854,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAnimationDuration()
</del><ins>+RefPtr<CSSValue> CSSParser::parseAnimationDuration()
</ins><span class="cx"> {
</span><span class="cx"> ValueWithCalculation valueWithCalculation(*m_valueList->current());
</span><span class="cx"> if (validateUnit(valueWithCalculation, FTime | FNonNeg))
</span><span class="lines">@@ -4862,7 +4862,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAnimationFillMode()
</del><ins>+RefPtr<CSSValue> CSSParser::parseAnimationFillMode()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue* value = m_valueList->current();
</span><span class="cx"> if (value->id == CSSValueNone || value->id == CSSValueForwards || value->id == CSSValueBackwards || value->id == CSSValueBoth)
</span><span class="lines">@@ -4870,7 +4870,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAnimationIterationCount()
</del><ins>+RefPtr<CSSValue> CSSParser::parseAnimationIterationCount()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue& value = *m_valueList->current();
</span><span class="cx"> if (value.id == CSSValueInfinite)
</span><span class="lines">@@ -4881,7 +4881,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAnimationName()
</del><ins>+RefPtr<CSSValue> CSSParser::parseAnimationName()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue& value = *m_valueList->current();
</span><span class="cx"> if (value.unit == CSSPrimitiveValue::CSS_STRING || value.unit == CSSPrimitiveValue::CSS_IDENT) {
</span><span class="lines">@@ -4893,7 +4893,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAnimationPlayState()
</del><ins>+RefPtr<CSSValue> CSSParser::parseAnimationPlayState()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue& value = *m_valueList->current();
</span><span class="cx"> if (value.id == CSSValueRunning || value.id == CSSValuePaused)
</span><span class="lines">@@ -4902,7 +4902,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(CSS_ANIMATIONS_LEVEL_2)
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAnimationTrigger()
</del><ins>+RefPtr<CSSValue> CSSParser::parseAnimationTrigger()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue* value = m_valueList->current();
</span><span class="cx"> if (value->id == CSSValueAuto)
</span><span class="lines">@@ -4942,11 +4942,11 @@
</span><span class="cx"> return CSSAnimationTriggerScrollValue::create(startValue.release(), endValue.release());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAnimationProperty(AnimationParseContext& context)
</del><ins>+RefPtr<CSSValue> CSSParser::parseAnimationProperty(AnimationParseContext& context)
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue& value = *m_valueList->current();
</span><span class="cx"> if (value.unit != CSSPrimitiveValue::CSS_IDENT)
</span><span class="lines">@@ -5031,7 +5031,7 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseAnimationTimingFunction()
</del><ins>+RefPtr<CSSValue> CSSParser::parseAnimationTimingFunction()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue& value = *m_valueList->current();
</span><span class="cx"> if (value.id == CSSValueEase || value.id == CSSValueLinear || value.id == CSSValueEaseIn || value.id == CSSValueEaseOut
</span><span class="lines">@@ -5263,7 +5263,7 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseGridPosition()
</del><ins>+RefPtr<CSSValue> CSSParser::parseGridPosition()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue* value = m_valueList->current();
</span><span class="cx"> if (value->id == CSSValueAuto) {
</span><span class="lines">@@ -5279,7 +5279,7 @@
</span><span class="cx"> hasSeenSpanKeyword = true;
</span><span class="cx"> if (auto* nextValue = m_valueList->next()) {
</span><span class="cx"> if (!isForwardSlashOperator(*nextValue) && !parseIntegerOrCustomIdentFromGridPosition(numericValue, gridLineName))
</span><del>- return nullptr;
</del><ins>+ return nullptr;
</ins><span class="cx"> }
</span><span class="cx"> } else if (parseIntegerOrCustomIdentFromGridPosition(numericValue, gridLineName)) {
</span><span class="cx"> value = m_valueList->current();
</span><span class="lines">@@ -5314,10 +5314,10 @@
</span><span class="cx"> if (gridLineName)
</span><span class="cx"> values->append(gridLineName.releaseNonNull());
</span><span class="cx"> ASSERT(values->length());
</span><del>- return values.release();
</del><ins>+ return values;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<CSSValue> gridMissingGridPositionValue(CSSValue& value)
</del><ins>+static RefPtr<CSSValue> gridMissingGridPositionValue(CSSValue& value)
</ins><span class="cx"> {
</span><span class="cx"> if (is<CSSPrimitiveValue>(value) && downcast<CSSPrimitiveValue>(value).isString())
</span><span class="cx"> return &value;
</span><span class="lines">@@ -5598,7 +5598,7 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseGridTrackList()
</del><ins>+RefPtr<CSSValue> CSSParser::parseGridTrackList()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue* value = m_valueList->current();
</span><span class="cx"> if (value->id == CSSValueNone) {
</span><span class="lines">@@ -5636,7 +5636,7 @@
</span><span class="cx"> if (!seenTrackSizeOrRepeatFunction)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- return values.release();
</del><ins>+ return values;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool CSSParser::parseGridTrackRepeatFunction(CSSValueList& list)
</span><span class="lines">@@ -5694,7 +5694,7 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseGridTrackSize(CSSParserValueList& inputList)
</del><ins>+RefPtr<CSSValue> CSSParser::parseGridTrackSize(CSSParserValueList& inputList)
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue& currentValue = *inputList.current();
</span><span class="cx"> inputList.next();
</span><span class="lines">@@ -5725,7 +5725,7 @@
</span><span class="cx"> return parseGridBreadth(currentValue);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> CSSParser::parseGridBreadth(CSSParserValue& value)
</del><ins>+RefPtr<CSSPrimitiveValue> CSSParser::parseGridBreadth(CSSParserValue& value)
</ins><span class="cx"> {
</span><span class="cx"> if (value.id == CSSValueWebkitMinContent || value.id == CSSValueWebkitMaxContent)
</span><span class="cx"> return cssValuePool().createIdentifierValue(value.id);
</span><span class="lines">@@ -5752,7 +5752,7 @@
</span><span class="cx"> return (id == CSSValueRow || id == CSSValueColumn || id == CSSValueDense);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseGridAutoFlow(CSSParserValueList& inputList)
</del><ins>+RefPtr<CSSValue> CSSParser::parseGridAutoFlow(CSSParserValueList& inputList)
</ins><span class="cx"> {
</span><span class="cx"> // [ row | column ] || dense
</span><span class="cx"> CSSParserValue* value = inputList.current();
</span><span class="lines">@@ -6033,7 +6033,7 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseGridTemplateAreas()
</del><ins>+RefPtr<CSSValue> CSSParser::parseGridTemplateAreas()
</ins><span class="cx"> {
</span><span class="cx"> if (m_valueList->current() && m_valueList->current()->id == CSSValueNone) {
</span><span class="cx"> m_valueList->next();
</span><span class="lines">@@ -6057,7 +6057,7 @@
</span><span class="cx"> }
</span><span class="cx"> #endif /* ENABLE(CSS_GRID_LAYOUT) */
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseCounterContent(CSSParserValueList& args, bool counters)
</del><ins>+RefPtr<CSSValue> CSSParser::parseCounterContent(CSSParserValueList& args, bool counters)
</ins><span class="cx"> {
</span><span class="cx"> unsigned numArgs = args.size();
</span><span class="cx"> if (counters && numArgs != 3 && numArgs != 5)
</span><span class="lines">@@ -6171,7 +6171,7 @@
</span><span class="cx">
</span><span class="cx"> // FIXME: This should be refactored with CSSParser::parseBorderRadius.
</span><span class="cx"> // CSSParser::parseBorderRadius contains support for some legacy radius construction.
</span><del>-PassRefPtr<CSSBasicShape> CSSParser::parseInsetRoundedCorners(PassRefPtr<CSSBasicShapeInset> shape, CSSParserValueList& args)
</del><ins>+RefPtr<CSSBasicShape> CSSParser::parseInsetRoundedCorners(PassRefPtr<CSSBasicShapeInset> shape, CSSParserValueList& args)
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue* argument = args.next();
</span><span class="cx">
</span><span class="lines">@@ -6235,7 +6235,7 @@
</span><span class="cx"> return shape;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSBasicShape> CSSParser::parseBasicShapeInset(CSSParserValueList& args)
</del><ins>+RefPtr<CSSBasicShape> CSSParser::parseBasicShapeInset(CSSParserValueList& args)
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<CSSBasicShapeInset> shape = CSSBasicShapeInset::create();
</span><span class="cx">
</span><span class="lines">@@ -6283,7 +6283,7 @@
</span><span class="cx"> return shape;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> CSSParser::parseShapeRadius(CSSParserValue& value)
</del><ins>+RefPtr<CSSPrimitiveValue> CSSParser::parseShapeRadius(CSSParserValue& value)
</ins><span class="cx"> {
</span><span class="cx"> if (value.id == CSSValueClosestSide || value.id == CSSValueFarthestSide)
</span><span class="cx"> return cssValuePool().createIdentifierValue(value.id);
</span><span class="lines">@@ -6295,7 +6295,7 @@
</span><span class="cx"> return createPrimitiveNumericValue(valueWithCalculation);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSBasicShape> CSSParser::parseBasicShapeCircle(CSSParserValueList& args)
</del><ins>+RefPtr<CSSBasicShape> CSSParser::parseBasicShapeCircle(CSSParserValueList& args)
</ins><span class="cx"> {
</span><span class="cx"> // circle(radius)
</span><span class="cx"> // circle(radius at <position>)
</span><span class="lines">@@ -6335,7 +6335,7 @@
</span><span class="cx"> return shape;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSBasicShape> CSSParser::parseBasicShapeEllipse(CSSParserValueList& args)
</del><ins>+RefPtr<CSSBasicShape> CSSParser::parseBasicShapeEllipse(CSSParserValueList& args)
</ins><span class="cx"> {
</span><span class="cx"> // ellipse(radiusX)
</span><span class="cx"> // ellipse(radiusX at <position>)
</span><span class="lines">@@ -6380,7 +6380,7 @@
</span><span class="cx"> return shape;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSBasicShape> CSSParser::parseBasicShapePolygon(CSSParserValueList& args)
</del><ins>+RefPtr<CSSBasicShape> CSSParser::parseBasicShapePolygon(CSSParserValueList& args)
</ins><span class="cx"> {
</span><span class="cx"> unsigned size = args.size();
</span><span class="cx"> if (!size)
</span><span class="lines">@@ -6451,7 +6451,7 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseBasicShapeAndOrBox(CSSPropertyID propId)
</del><ins>+RefPtr<CSSValue> CSSParser::parseBasicShapeAndOrBox(CSSPropertyID propId)
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue* value = m_valueList->current();
</span><span class="cx">
</span><span class="lines">@@ -6483,11 +6483,11 @@
</span><span class="cx">
</span><span class="cx"> if (m_valueList->current())
</span><span class="cx"> return nullptr;
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(CSS_SHAPES)
</span><del>-PassRefPtr<CSSValue> CSSParser::parseShapeProperty(CSSPropertyID propId)
</del><ins>+RefPtr<CSSValue> CSSParser::parseShapeProperty(CSSPropertyID propId)
</ins><span class="cx"> {
</span><span class="cx"> if (!RuntimeEnabledFeatures::sharedFeatures().cssShapesEnabled())
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -6503,14 +6503,14 @@
</span><span class="cx"> RefPtr<CSSValue> imageValue;
</span><span class="cx"> if (valueId != CSSValueNone && parseFillImage(*m_valueList, imageValue)) {
</span><span class="cx"> m_valueList->next();
</span><del>- return imageValue.release();
</del><ins>+ return imageValue;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> return parseBasicShapeAndOrBox(propId);
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseClipPath()
</del><ins>+RefPtr<CSSValue> CSSParser::parseClipPath()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue& value = *m_valueList->current();
</span><span class="cx"> CSSValueID valueId = value.id;
</span><span class="lines">@@ -6527,7 +6527,7 @@
</span><span class="cx"> return parseBasicShapeAndOrBox(CSSPropertyWebkitClipPath);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> CSSParser::parseBasicShape()
</del><ins>+RefPtr<CSSPrimitiveValue> CSSParser::parseBasicShape()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue& value = *m_valueList->current();
</span><span class="cx"> ASSERT(value.unit == CSSParserValue::Function);
</span><span class="lines">@@ -6685,7 +6685,7 @@
</span><span class="cx"> CSSValueList& m_list;
</span><span class="cx"> };
</span><span class="cx">
</span><del>-PassRefPtr<CSSValueList> CSSParser::parseFontFamily()
</del><ins>+RefPtr<CSSValueList> CSSParser::parseFontFamily()
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
</span><span class="cx"> CSSParserValue* value = m_valueList->current();
</span><span class="lines">@@ -6756,7 +6756,7 @@
</span><span class="cx">
</span><span class="cx"> if (!list->length())
</span><span class="cx"> list = nullptr;
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool CSSParser::parseLineHeight(bool important)
</span><span class="lines">@@ -7494,7 +7494,7 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> CSSParser::parseColor(CSSParserValue* value)
</del><ins>+RefPtr<CSSPrimitiveValue> CSSParser::parseColor(CSSParserValue* value)
</ins><span class="cx"> {
</span><span class="cx"> RGBA32 c = Color::transparent;
</span><span class="cx"> if (!parseColorFromValue(value ? *value : *m_valueList->current(), c))
</span><span class="lines">@@ -7676,7 +7676,7 @@
</span><span class="cx"> bool allowBreak;
</span><span class="cx"> };
</span><span class="cx">
</span><del>-PassRefPtr<CSSValueList> CSSParser::parseShadow(CSSParserValueList& valueList, CSSPropertyID propId)
</del><ins>+RefPtr<CSSValueList> CSSParser::parseShadow(CSSParserValueList& valueList, CSSPropertyID propId)
</ins><span class="cx"> {
</span><span class="cx"> ShadowParseContext context(propId, *this);
</span><span class="cx"> CSSParserValue* value;
</span><span class="lines">@@ -9311,7 +9311,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(CSS_IMAGE_RESOLUTION)
</span><del>-PassRefPtr<CSSValue> CSSParser::parseImageResolution()
</del><ins>+RefPtr<CSSValue> CSSParser::parseImageResolution()
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
</span><span class="cx"> bool haveResolution = false;
</span><span class="lines">@@ -9338,12 +9338,12 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> if (!haveFromImage && !haveResolution)
</span><span class="cx"> return nullptr;
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(CSS_IMAGE_SET)
</span><del>-PassRefPtr<CSSValue> CSSParser::parseImageSet()
</del><ins>+RefPtr<CSSValue> CSSParser::parseImageSet()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue& value = *m_valueList->current();
</span><span class="cx"> ASSERT(value.unit == CSSParserValue::Function);
</span><span class="lines">@@ -9392,7 +9392,7 @@
</span><span class="cx"> arg = functionArgs->next();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return imageSet.release();
</del><ins>+ return imageSet;
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="lines">@@ -9655,7 +9655,7 @@
</span><span class="cx"> CSSParser::Units m_unit;
</span><span class="cx"> };
</span><span class="cx">
</span><del>-PassRefPtr<CSSValueList> CSSParser::parseTransform()
</del><ins>+RefPtr<CSSValueList> CSSParser::parseTransform()
</ins><span class="cx"> {
</span><span class="cx"> if (!m_valueList)
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -9669,10 +9669,10 @@
</span><span class="cx"> list->append(parsedTransformValue.releaseNonNull());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseTransformValue(CSSParserValue& value)
</del><ins>+RefPtr<CSSValue> CSSParser::parseTransformValue(CSSParserValue& value)
</ins><span class="cx"> {
</span><span class="cx"> if (value.unit != CSSParserValue::Function || !value.function)
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -9777,7 +9777,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebKitCSSFilterValue> CSSParser::parseBuiltinFilterArguments(CSSParserValueList& args, WebKitCSSFilterValue::FilterOperationType filterType)
</del><ins>+RefPtr<WebKitCSSFilterValue> CSSParser::parseBuiltinFilterArguments(CSSParserValueList& args, WebKitCSSFilterValue::FilterOperationType filterType)
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<WebKitCSSFilterValue> filterValue = WebKitCSSFilterValue::create(filterType);
</span><span class="cx">
</span><span class="lines">@@ -10271,7 +10271,7 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseTextIndent()
</del><ins>+RefPtr<CSSValue> CSSParser::parseTextIndent()
</ins><span class="cx"> {
</span><span class="cx"> // <length> | <percentage> | inherit when CSS3_TEXT is disabled.
</span><span class="cx"> // [ <length> | <percentage> ] && [ -webkit-hanging || -webkit-each-line ]? | inherit when CSS3_TEXT is enabled.
</span><span class="lines">@@ -12045,7 +12045,7 @@
</span><span class="cx"> return token();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleRuleBase> CSSParser::createImportRule(const CSSParserString& url, PassRefPtr<MediaQuerySet> media)
</del><ins>+RefPtr<StyleRuleBase> CSSParser::createImportRule(const CSSParserString& url, PassRefPtr<MediaQuerySet> media)
</ins><span class="cx"> {
</span><span class="cx"> if (!media || !m_allowImportRules) {
</span><span class="cx"> popRuleData();
</span><span class="lines">@@ -12053,10 +12053,10 @@
</span><span class="cx"> }
</span><span class="cx"> RefPtr<StyleRuleImport> rule = StyleRuleImport::create(url, media);
</span><span class="cx"> processAndAddNewRuleToSourceTreeIfNeeded();
</span><del>- return rule.release();
</del><ins>+ return rule;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleRuleBase> CSSParser::createMediaRule(PassRefPtr<MediaQuerySet> media, RuleList* rules)
</del><ins>+RefPtr<StyleRuleBase> CSSParser::createMediaRule(PassRefPtr<MediaQuerySet> media, RuleList* rules)
</ins><span class="cx"> {
</span><span class="cx"> m_allowImportRules = m_allowNamespaceDeclarations = false;
</span><span class="cx"> RefPtr<StyleRuleMedia> rule;
</span><span class="lines">@@ -12068,15 +12068,15 @@
</span><span class="cx"> } else
</span><span class="cx"> rule = StyleRuleMedia::create(media, rules ? *rules : emptyRules);
</span><span class="cx"> processAndAddNewRuleToSourceTreeIfNeeded();
</span><del>- return rule.release();
</del><ins>+ return rule;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleRuleBase> CSSParser::createEmptyMediaRule(RuleList* rules)
</del><ins>+RefPtr<StyleRuleBase> CSSParser::createEmptyMediaRule(RuleList* rules)
</ins><span class="cx"> {
</span><span class="cx"> return createMediaRule(MediaQuerySet::create(), rules);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleRuleBase> CSSParser::createSupportsRule(bool conditionIsSupported, RuleList* rules)
</del><ins>+RefPtr<StyleRuleBase> CSSParser::createSupportsRule(bool conditionIsSupported, RuleList* rules)
</ins><span class="cx"> {
</span><span class="cx"> m_allowImportRules = m_allowNamespaceDeclarations = false;
</span><span class="cx">
</span><span class="lines">@@ -12100,7 +12100,7 @@
</span><span class="cx">
</span><span class="cx"> processAndAddNewRuleToSourceTreeIfNeeded();
</span><span class="cx">
</span><del>- return rule.release();
</del><ins>+ return rule;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CSSParser::markSupportsRuleHeaderStart()
</span><span class="lines">@@ -12123,12 +12123,12 @@
</span><span class="cx"> m_supportsRuleDataStack->last()->ruleHeaderRange.end = tokenStart<UChar>() - m_dataStart16.get();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSRuleSourceData> CSSParser::popSupportsRuleData()
</del><ins>+RefPtr<CSSRuleSourceData> CSSParser::popSupportsRuleData()
</ins><span class="cx"> {
</span><span class="cx"> ASSERT(m_supportsRuleDataStack && !m_supportsRuleDataStack->isEmpty());
</span><span class="cx"> RefPtr<CSSRuleSourceData> data = m_supportsRuleDataStack->last();
</span><span class="cx"> m_supportsRuleDataStack->removeLast();
</span><del>- return data.release();
</del><ins>+ return data;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CSSParser::processAndAddNewRuleToSourceTreeIfNeeded()
</span><span class="lines">@@ -12200,7 +12200,7 @@
</span><span class="cx"> console.addMessage(MessageSource::CSS, MessageLevel::Warning, message, m_styleSheet->baseURL().string(), lineNumber + 1, columnNumber + 1);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleRuleKeyframes> CSSParser::createKeyframesRule(const String& name, std::unique_ptr<Vector<RefPtr<StyleKeyframe>>> popKeyframes)
</del><ins>+RefPtr<StyleRuleKeyframes> CSSParser::createKeyframesRule(const String& name, std::unique_ptr<Vector<RefPtr<StyleKeyframe>>> popKeyframes)
</ins><span class="cx"> {
</span><span class="cx"> std::unique_ptr<Vector<RefPtr<StyleKeyframe>>> keyframes = WTF::move(popKeyframes);
</span><span class="cx"> m_allowImportRules = m_allowNamespaceDeclarations = false;
</span><span class="lines">@@ -12209,10 +12209,10 @@
</span><span class="cx"> rule->parserAppendKeyframe(keyframes->at(i));
</span><span class="cx"> rule->setName(name);
</span><span class="cx"> processAndAddNewRuleToSourceTreeIfNeeded();
</span><del>- return rule.release();
</del><ins>+ return rule;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleRuleBase> CSSParser::createStyleRule(Vector<std::unique_ptr<CSSParserSelector>>* selectors)
</del><ins>+RefPtr<StyleRuleBase> CSSParser::createStyleRule(Vector<std::unique_ptr<CSSParserSelector>>* selectors)
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<StyleRule> rule;
</span><span class="cx"> if (selectors) {
</span><span class="lines">@@ -12226,10 +12226,10 @@
</span><span class="cx"> } else
</span><span class="cx"> popRuleData();
</span><span class="cx"> clearProperties();
</span><del>- return rule.release();
</del><ins>+ return rule;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleRuleBase> CSSParser::createFontFaceRule()
</del><ins>+RefPtr<StyleRuleBase> CSSParser::createFontFaceRule()
</ins><span class="cx"> {
</span><span class="cx"> m_allowImportRules = m_allowNamespaceDeclarations = false;
</span><span class="cx"> for (unsigned i = 0; i < m_parsedProperties.size(); ++i) {
</span><span class="lines">@@ -12249,7 +12249,7 @@
</span><span class="cx"> RefPtr<StyleRuleFontFace> rule = StyleRuleFontFace::create(createStyleProperties());
</span><span class="cx"> clearProperties();
</span><span class="cx"> processAndAddNewRuleToSourceTreeIfNeeded();
</span><del>- return rule.release();
</del><ins>+ return rule;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CSSParser::addNamespace(const AtomicString& prefix, const AtomicString& uri)
</span><span class="lines">@@ -12324,7 +12324,7 @@
</span><span class="cx"> return specifiers;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleRuleBase> CSSParser::createPageRule(std::unique_ptr<CSSParserSelector> pageSelector)
</del><ins>+RefPtr<StyleRuleBase> CSSParser::createPageRule(std::unique_ptr<CSSParserSelector> pageSelector)
</ins><span class="cx"> {
</span><span class="cx"> // FIXME: Margin at-rules are ignored.
</span><span class="cx"> m_allowImportRules = m_allowNamespaceDeclarations = false;
</span><span class="lines">@@ -12338,7 +12338,7 @@
</span><span class="cx"> } else
</span><span class="cx"> popRuleData();
</span><span class="cx"> clearProperties();
</span><del>- return rule.release();
</del><ins>+ return rule;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> std::unique_ptr<Vector<std::unique_ptr<CSSParserSelector>>> CSSParser::createSelectorVector()
</span><span class="lines">@@ -12356,7 +12356,7 @@
</span><span class="cx"> m_recycledSelectorVector = WTF::move(vector);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleRuleBase> CSSParser::createRegionRule(Vector<std::unique_ptr<CSSParserSelector>>* regionSelector, RuleList* rules)
</del><ins>+RefPtr<StyleRuleBase> CSSParser::createRegionRule(Vector<std::unique_ptr<CSSParserSelector>>* regionSelector, RuleList* rules)
</ins><span class="cx"> {
</span><span class="cx"> if (!cssRegionsEnabled() || !regionSelector || !rules) {
</span><span class="cx"> popRuleData();
</span><span class="lines">@@ -12370,7 +12370,7 @@
</span><span class="cx"> if (isExtractingSourceData())
</span><span class="cx"> addNewRuleToSourceTree(CSSRuleSourceData::createUnknown());
</span><span class="cx">
</span><del>- return regionRule.release();
</del><ins>+ return regionRule;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CSSParser::createMarginAtRule(CSSSelector::MarginBoxType /* marginBox */)
</span><span class="lines">@@ -12402,7 +12402,7 @@
</span><span class="cx"> });
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleKeyframe> CSSParser::createKeyframe(CSSParserValueList& keys)
</del><ins>+RefPtr<StyleKeyframe> CSSParser::createKeyframe(CSSParserValueList& keys)
</ins><span class="cx"> {
</span><span class="cx"> // Create a key string from the passed keys
</span><span class="cx"> StringBuilder keyString;
</span><span class="lines">@@ -12435,7 +12435,7 @@
</span><span class="cx">
</span><span class="cx"> clearProperties();
</span><span class="cx">
</span><del>- return keyframe.release();
</del><ins>+ return keyframe;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CSSParser::invalidBlockHit()
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSParserh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSParser.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSParser.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSParser.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -114,8 +114,8 @@
</span><span class="cx"> WEBCORE_EXPORT ~CSSParser();
</span><span class="cx">
</span><span class="cx"> void parseSheet(StyleSheetContents*, const String&, const TextPosition&, RuleSourceDataList*, bool logErrors);
</span><del>- PassRefPtr<StyleRuleBase> parseRule(StyleSheetContents*, const String&);
- PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const String&);
</del><ins>+ RefPtr<StyleRuleBase> parseRule(StyleSheetContents*, const String&);
+ RefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const String&);
</ins><span class="cx"> bool parseSupportsCondition(const String&);
</span><span class="cx">
</span><span class="cx"> static ParseResult parseValue(MutableStyleProperties*, CSSPropertyID, const String&, bool important, CSSParserMode, StyleSheetContents*);
</span><span class="lines">@@ -123,8 +123,8 @@
</span><span class="cx"> static bool parseColor(RGBA32& color, const String&, bool strict = false);
</span><span class="cx"> static bool isValidSystemColorValue(CSSValueID);
</span><span class="cx"> static bool parseSystemColor(RGBA32& color, const String&, Document*);
</span><del>- static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&);
- PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ident, ValueWithCalculation&);
</del><ins>+ static RefPtr<CSSValueList> parseFontFaceValue(const AtomicString&);
+ RefPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ident, ValueWithCalculation&);
</ins><span class="cx">
</span><span class="cx"> WEBCORE_EXPORT bool parseDeclaration(MutableStyleProperties*, const String&, PassRefPtr<CSSRuleSourceData>, StyleSheetContents* contextStyleSheet);
</span><span class="cx"> static Ref<ImmutableStyleProperties> parseInlineStyleDeclaration(const String&, Element*);
</span><span class="lines">@@ -143,9 +143,9 @@
</span><span class="cx"> bool parseQuotes(CSSPropertyID, bool important);
</span><span class="cx"> bool parseAlt(CSSPropertyID, bool important);
</span><span class="cx">
</span><del>- PassRefPtr<CSSValue> parseAttr(CSSParserValueList& args);
</del><ins>+ RefPtr<CSSValue> parseAttr(CSSParserValueList& args);
</ins><span class="cx">
</span><del>- PassRefPtr<CSSValue> parseBackgroundColor();
</del><ins>+ RefPtr<CSSValue> parseBackgroundColor();
</ins><span class="cx">
</span><span class="cx"> struct SourceSize {
</span><span class="cx"> std::unique_ptr<MediaQueryExp> expression;
</span><span class="lines">@@ -161,9 +161,9 @@
</span><span class="cx">
</span><span class="cx"> enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1, XFillPosition = 2, YFillPosition = 4 };
</span><span class="cx"> enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKeyword = 1 };
</span><del>- PassRefPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSParserValueList&, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillPositionParsingMode = ResolveValuesAsPercent);
- PassRefPtr<CSSValue> parsePositionX(CSSParserValueList&);
- PassRefPtr<CSSValue> parsePositionY(CSSParserValueList&);
</del><ins>+ RefPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSParserValueList&, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillPositionParsingMode = ResolveValuesAsPercent);
+ RefPtr<CSSValue> parsePositionX(CSSParserValueList&);
+ RefPtr<CSSValue> parsePositionY(CSSParserValueList&);
</ins><span class="cx"> void parse2ValuesFillPosition(CSSParserValueList&, RefPtr<CSSValue>&, RefPtr<CSSValue>&);
</span><span class="cx"> bool isPotentialPositionValue(CSSParserValue&);
</span><span class="cx"> void parseFillPosition(CSSParserValueList&, RefPtr<CSSValue>&, RefPtr<CSSValue>&);
</span><span class="lines">@@ -171,7 +171,7 @@
</span><span class="cx"> void parse4ValuesFillPosition(CSSParserValueList&, RefPtr<CSSValue>&, RefPtr<CSSValue>&, RefPtr<CSSPrimitiveValue>&&, RefPtr<CSSPrimitiveValue>&&);
</span><span class="cx">
</span><span class="cx"> void parseFillRepeat(RefPtr<CSSValue>&, RefPtr<CSSValue>&);
</span><del>- PassRefPtr<CSSValue> parseFillSize(CSSPropertyID, bool &allowComma);
</del><ins>+ RefPtr<CSSValue> parseFillSize(CSSPropertyID, bool &allowComma);
</ins><span class="cx">
</span><span class="cx"> bool parseFillProperty(CSSPropertyID propId, CSSPropertyID& propId1, CSSPropertyID& propId2, RefPtr<CSSValue>&, RefPtr<CSSValue>&);
</span><span class="cx"> bool parseFillShorthand(CSSPropertyID, const CSSPropertyID* properties, int numProperties, bool important);
</span><span class="lines">@@ -179,17 +179,17 @@
</span><span class="cx"> void addFillValue(RefPtr<CSSValue>& lval, Ref<CSSValue>&& rval);
</span><span class="cx"> void addAnimationValue(RefPtr<CSSValue>& lval, Ref<CSSValue>&& rval);
</span><span class="cx">
</span><del>- PassRefPtr<CSSValue> parseAnimationDelay();
- PassRefPtr<CSSValue> parseAnimationDirection();
- PassRefPtr<CSSValue> parseAnimationDuration();
- PassRefPtr<CSSValue> parseAnimationFillMode();
- PassRefPtr<CSSValue> parseAnimationIterationCount();
- PassRefPtr<CSSValue> parseAnimationName();
- PassRefPtr<CSSValue> parseAnimationPlayState();
- PassRefPtr<CSSValue> parseAnimationProperty(AnimationParseContext&);
- PassRefPtr<CSSValue> parseAnimationTimingFunction();
</del><ins>+ RefPtr<CSSValue> parseAnimationDelay();
+ RefPtr<CSSValue> parseAnimationDirection();
+ RefPtr<CSSValue> parseAnimationDuration();
+ RefPtr<CSSValue> parseAnimationFillMode();
+ RefPtr<CSSValue> parseAnimationIterationCount();
+ RefPtr<CSSValue> parseAnimationName();
+ RefPtr<CSSValue> parseAnimationPlayState();
+ RefPtr<CSSValue> parseAnimationProperty(AnimationParseContext&);
+ RefPtr<CSSValue> parseAnimationTimingFunction();
</ins><span class="cx"> #if ENABLE(CSS_ANIMATIONS_LEVEL_2)
</span><del>- PassRefPtr<CSSValue> parseAnimationTrigger();
</del><ins>+ RefPtr<CSSValue> parseAnimationTrigger();
</ins><span class="cx"> #endif
</span><span class="cx"> static Vector<double> parseKeyframeSelector(const String&);
</span><span class="cx">
</span><span class="lines">@@ -204,21 +204,21 @@
</span><span class="cx"> bool parseColumnsShorthand(bool important);
</span><span class="cx">
</span><span class="cx"> #if ENABLE(CSS_GRID_LAYOUT)
</span><del>- PassRefPtr<CSSValue> parseGridPosition();
</del><ins>+ RefPtr<CSSValue> parseGridPosition();
</ins><span class="cx"> bool parseGridItemPositionShorthand(CSSPropertyID, bool important);
</span><span class="cx"> bool parseGridTemplateRowsAndAreas(PassRefPtr<CSSValue>, bool important);
</span><span class="cx"> bool parseGridTemplateShorthand(bool important);
</span><span class="cx"> bool parseGridShorthand(bool important);
</span><span class="cx"> bool parseGridAreaShorthand(bool important);
</span><span class="cx"> bool parseSingleGridAreaLonghand(RefPtr<CSSValue>&);
</span><del>- PassRefPtr<CSSValue> parseGridTrackList();
</del><ins>+ RefPtr<CSSValue> parseGridTrackList();
</ins><span class="cx"> bool parseGridTrackRepeatFunction(CSSValueList&);
</span><del>- PassRefPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inputList);
- PassRefPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue&);
</del><ins>+ RefPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inputList);
+ RefPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue&);
</ins><span class="cx"> bool parseGridTemplateAreasRow(NamedGridAreaMap&, const unsigned, unsigned&);
</span><del>- PassRefPtr<CSSValue> parseGridTemplateAreas();
</del><ins>+ RefPtr<CSSValue> parseGridTemplateAreas();
</ins><span class="cx"> bool parseGridLineNames(CSSParserValueList&, CSSValueList&, CSSGridLineNamesValue* = nullptr);
</span><del>- PassRefPtr<CSSValue> parseGridAutoFlow(CSSParserValueList&);
</del><ins>+ RefPtr<CSSValue> parseGridAutoFlow(CSSParserValueList&);
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> bool parseDashboardRegions(CSSPropertyID, bool important);
</span><span class="lines">@@ -227,30 +227,30 @@
</span><span class="cx">
</span><span class="cx"> bool parseLegacyPosition(CSSPropertyID, bool important);
</span><span class="cx"> bool parseItemPositionOverflowPosition(CSSPropertyID, bool important);
</span><del>- PassRefPtr<CSSValue> parseContentDistributionOverflowPosition();
</del><ins>+ RefPtr<CSSValue> parseContentDistributionOverflowPosition();
</ins><span class="cx">
</span><span class="cx"> #if ENABLE(CSS_SHAPES)
</span><del>- PassRefPtr<CSSValue> parseShapeProperty(CSSPropertyID);
</del><ins>+ RefPtr<CSSValue> parseShapeProperty(CSSPropertyID);
</ins><span class="cx"> #endif
</span><span class="cx">
</span><del>- PassRefPtr<CSSValue> parseBasicShapeAndOrBox(CSSPropertyID propId);
- PassRefPtr<CSSPrimitiveValue> parseBasicShape();
- PassRefPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue&);
- PassRefPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueList&);
- PassRefPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueList&);
- PassRefPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueList&);
- PassRefPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueList&);
</del><ins>+ RefPtr<CSSValue> parseBasicShapeAndOrBox(CSSPropertyID propId);
+ RefPtr<CSSPrimitiveValue> parseBasicShape();
+ RefPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue&);
+ RefPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueList&);
+ RefPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueList&);
+ RefPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueList&);
+ RefPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueList&);
</ins><span class="cx">
</span><span class="cx"> bool parseFont(bool important);
</span><span class="cx"> void parseSystemFont(bool important);
</span><del>- PassRefPtr<CSSValueList> parseFontFamily();
</del><ins>+ RefPtr<CSSValueList> parseFontFamily();
</ins><span class="cx">
</span><span class="cx"> bool parseCounter(CSSPropertyID, int defaultValue, bool important);
</span><del>- PassRefPtr<CSSValue> parseCounterContent(CSSParserValueList& args, bool counters);
</del><ins>+ RefPtr<CSSValue> parseCounterContent(CSSParserValueList& args, bool counters);
</ins><span class="cx">
</span><span class="cx"> bool parseColorParameters(CSSParserValue&, int* colorValues, bool parseAlpha);
</span><span class="cx"> bool parseHSLParameters(CSSParserValue&, double* colorValues, bool parseAlpha);
</span><del>- PassRefPtr<CSSPrimitiveValue> parseColor(CSSParserValue* = nullptr);
</del><ins>+ RefPtr<CSSPrimitiveValue> parseColor(CSSParserValue* = nullptr);
</ins><span class="cx"> bool parseColorFromValue(CSSParserValue&, RGBA32&);
</span><span class="cx"> void parseSelector(const String&, CSSSelectorList&);
</span><span class="cx">
</span><span class="lines">@@ -266,13 +266,13 @@
</span><span class="cx"> bool parseFontFaceUnicodeRange();
</span><span class="cx">
</span><span class="cx"> bool parseSVGValue(CSSPropertyID propId, bool important);
</span><del>- PassRefPtr<CSSValue> parseSVGPaint();
- PassRefPtr<CSSValue> parseSVGColor();
- PassRefPtr<CSSValue> parseSVGStrokeDasharray();
- PassRefPtr<CSSValue> parsePaintOrder();
</del><ins>+ RefPtr<CSSValue> parseSVGPaint();
+ RefPtr<CSSValue> parseSVGColor();
+ RefPtr<CSSValue> parseSVGStrokeDasharray();
+ RefPtr<CSSValue> parsePaintOrder();
</ins><span class="cx">
</span><span class="cx"> // CSS3 Parsing Routines (for properties specific to CSS3)
</span><del>- PassRefPtr<CSSValueList> parseShadow(CSSParserValueList&, CSSPropertyID);
</del><ins>+ RefPtr<CSSValueList> parseShadow(CSSParserValueList&, CSSPropertyID);
</ins><span class="cx"> bool parseBorderImage(CSSPropertyID, RefPtr<CSSValue>&, bool important = false);
</span><span class="cx"> bool parseBorderImageRepeat(RefPtr<CSSValue>&);
</span><span class="cx"> bool parseBorderImageSlice(CSSPropertyID, RefPtr<CSSBorderImageSliceValue>&);
</span><span class="lines">@@ -300,25 +300,25 @@
</span><span class="cx"> bool parseCrossfade(CSSParserValueList&, RefPtr<CSSValue>&);
</span><span class="cx">
</span><span class="cx"> #if ENABLE(CSS_IMAGE_RESOLUTION)
</span><del>- PassRefPtr<CSSValue> parseImageResolution();
</del><ins>+ RefPtr<CSSValue> parseImageResolution();
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(CSS_IMAGE_SET)
</span><del>- PassRefPtr<CSSValue> parseImageSet();
</del><ins>+ RefPtr<CSSValue> parseImageSet();
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> bool parseFilterImage(CSSParserValueList&, RefPtr<CSSValue>&);
</span><span class="cx">
</span><span class="cx"> bool parseFilter(CSSParserValueList&, RefPtr<CSSValue>&);
</span><del>- PassRefPtr<WebKitCSSFilterValue> parseBuiltinFilterArguments(CSSParserValueList&, WebKitCSSFilterValue::FilterOperationType);
</del><ins>+ RefPtr<WebKitCSSFilterValue> parseBuiltinFilterArguments(CSSParserValueList&, WebKitCSSFilterValue::FilterOperationType);
</ins><span class="cx">
</span><del>- PassRefPtr<CSSValue> parseClipPath();
</del><ins>+ RefPtr<CSSValue> parseClipPath();
</ins><span class="cx">
</span><span class="cx"> static bool isBlendMode(CSSValueID);
</span><span class="cx"> static bool isCompositeOperator(CSSValueID);
</span><span class="cx">
</span><del>- PassRefPtr<CSSValueList> parseTransform();
- PassRefPtr<CSSValue> parseTransformValue(CSSParserValue&);
</del><ins>+ RefPtr<CSSValueList> parseTransform();
+ RefPtr<CSSValue> parseTransformValue(CSSParserValue&);
</ins><span class="cx"> bool parseTransformOrigin(CSSPropertyID propId, CSSPropertyID& propId1, CSSPropertyID& propId2, CSSPropertyID& propId3, RefPtr<CSSValue>&, RefPtr<CSSValue>&, RefPtr<CSSValue>&);
</span><span class="cx"> bool parsePerspectiveOrigin(CSSPropertyID propId, CSSPropertyID& propId1, CSSPropertyID& propId2, RefPtr<CSSValue>&, RefPtr<CSSValue>&);
</span><span class="cx">
</span><span class="lines">@@ -330,7 +330,7 @@
</span><span class="cx"> bool parseTextDecorationSkip(bool important);
</span><span class="cx"> bool parseTextUnderlinePosition(bool important);
</span><span class="cx">
</span><del>- PassRefPtr<CSSValue> parseTextIndent();
</del><ins>+ RefPtr<CSSValue> parseTextIndent();
</ins><span class="cx">
</span><span class="cx"> bool parseLineBoxContain(bool important);
</span><span class="cx"> RefPtr<CSSCalcValue> parseCalculation(CSSParserValue&, CalculationPermittedValueRange);
</span><span class="lines">@@ -349,22 +349,22 @@
</span><span class="cx"> std::unique_ptr<Vector<std::unique_ptr<CSSParserSelector>>> createSelectorVector();
</span><span class="cx"> void recycleSelectorVector(std::unique_ptr<Vector<std::unique_ptr<CSSParserSelector>>>);
</span><span class="cx">
</span><del>- PassRefPtr<StyleRuleBase> createImportRule(const CSSParserString&, PassRefPtr<MediaQuerySet>);
- PassRefPtr<StyleKeyframe> createKeyframe(CSSParserValueList&);
- PassRefPtr<StyleRuleKeyframes> createKeyframesRule(const String&, std::unique_ptr<Vector<RefPtr<StyleKeyframe>>>);
</del><ins>+ RefPtr<StyleRuleBase> createImportRule(const CSSParserString&, PassRefPtr<MediaQuerySet>);
+ RefPtr<StyleKeyframe> createKeyframe(CSSParserValueList&);
+ RefPtr<StyleRuleKeyframes> createKeyframesRule(const String&, std::unique_ptr<Vector<RefPtr<StyleKeyframe>>>);
</ins><span class="cx">
</span><span class="cx"> typedef Vector<RefPtr<StyleRuleBase>> RuleList;
</span><del>- PassRefPtr<StyleRuleBase> createMediaRule(PassRefPtr<MediaQuerySet>, RuleList*);
- PassRefPtr<StyleRuleBase> createEmptyMediaRule(RuleList*);
- PassRefPtr<StyleRuleBase> createStyleRule(Vector<std::unique_ptr<CSSParserSelector>>* selectors);
- PassRefPtr<StyleRuleBase> createFontFaceRule();
- PassRefPtr<StyleRuleBase> createPageRule(std::unique_ptr<CSSParserSelector> pageSelector);
- PassRefPtr<StyleRuleBase> createRegionRule(Vector<std::unique_ptr<CSSParserSelector>>* regionSelector, RuleList* rules);
</del><ins>+ RefPtr<StyleRuleBase> createMediaRule(PassRefPtr<MediaQuerySet>, RuleList*);
+ RefPtr<StyleRuleBase> createEmptyMediaRule(RuleList*);
+ RefPtr<StyleRuleBase> createStyleRule(Vector<std::unique_ptr<CSSParserSelector>>* selectors);
+ RefPtr<StyleRuleBase> createFontFaceRule();
+ RefPtr<StyleRuleBase> createPageRule(std::unique_ptr<CSSParserSelector> pageSelector);
+ RefPtr<StyleRuleBase> createRegionRule(Vector<std::unique_ptr<CSSParserSelector>>* regionSelector, RuleList* rules);
</ins><span class="cx"> void createMarginAtRule(CSSSelector::MarginBoxType);
</span><del>- PassRefPtr<StyleRuleBase> createSupportsRule(bool conditionIsSupported, RuleList*);
</del><ins>+ RefPtr<StyleRuleBase> createSupportsRule(bool conditionIsSupported, RuleList*);
</ins><span class="cx"> void markSupportsRuleHeaderStart();
</span><span class="cx"> void markSupportsRuleHeaderEnd();
</span><del>- PassRefPtr<CSSRuleSourceData> popSupportsRuleData();
</del><ins>+ RefPtr<CSSRuleSourceData> popSupportsRuleData();
</ins><span class="cx">
</span><span class="cx"> void startDeclarationsForMarginBox();
</span><span class="cx"> void endDeclarationsForMarginBox();
</span><span class="lines">@@ -558,7 +558,7 @@
</span><span class="cx"> ParseResult parseValue(MutableStyleProperties*, CSSPropertyID, const String&, bool important, StyleSheetContents* contextStyleSheet);
</span><span class="cx"> Ref<ImmutableStyleProperties> parseDeclaration(const String&, StyleSheetContents* contextStyleSheet);
</span><span class="cx">
</span><del>- PassRefPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtr<CSSBasicShapeInset>, CSSParserValueList&);
</del><ins>+ RefPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtr<CSSBasicShapeInset>, CSSParserValueList&);
</ins><span class="cx">
</span><span class="cx"> enum SizeParameterType {
</span><span class="cx"> None,
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSPrimitiveValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSPrimitiveValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSPrimitiveValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSPrimitiveValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -1212,7 +1212,7 @@
</span><span class="cx"> addSubresourceURL(urls, styleSheet->completeURL(m_value.string));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> CSSPrimitiveValue::cloneForCSSOM() const
</del><ins>+RefPtr<CSSPrimitiveValue> CSSPrimitiveValue::cloneForCSSOM() const
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<CSSPrimitiveValue> result;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSPrimitiveValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSPrimitiveValue.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSPrimitiveValue.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSPrimitiveValue.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -363,7 +363,7 @@
</span><span class="cx">
</span><span class="cx"> void addSubresourceStyleURLs(ListHashSet<URL>&, const StyleSheetContents*) const;
</span><span class="cx">
</span><del>- PassRefPtr<CSSPrimitiveValue> cloneForCSSOM() const;
</del><ins>+ RefPtr<CSSPrimitiveValue> cloneForCSSOM() const;
</ins><span class="cx"> void setCSSOMSafe() { m_isCSSOMSafe = true; }
</span><span class="cx">
</span><span class="cx"> bool equals(const CSSPrimitiveValue&) const;
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSStyleDeclarationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSStyleDeclaration.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSStyleDeclaration.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSStyleDeclaration.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx"> virtual void setCssText(const String&, ExceptionCode&) = 0;
</span><span class="cx"> virtual unsigned length() const = 0;
</span><span class="cx"> virtual String item(unsigned index) const = 0;
</span><del>- virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) = 0;
</del><ins>+ virtual RefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) = 0;
</ins><span class="cx"> virtual String getPropertyValue(const String& propertyName) = 0;
</span><span class="cx"> virtual String getPropertyPriority(const String& propertyName) = 0;
</span><span class="cx"> virtual String getPropertyShorthand(const String& propertyName) = 0;
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx"> // CSSPropertyID versions of the CSSOM functions to support bindings and editing.
</span><span class="cx"> // Use the non-virtual methods in the concrete subclasses when possible.
</span><span class="cx"> // The CSSValue returned by this function should not be exposed to the web as it may be used by multiple documents at the same time.
</span><del>- virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0;
</del><ins>+ virtual RefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0;
</ins><span class="cx"> virtual String getPropertyValueInternal(CSSPropertyID) = 0;
</span><span class="cx"> virtual bool setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) = 0;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSStyleSheetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSStyleSheet.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSStyleSheet.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSStyleSheet.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -271,10 +271,10 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSRuleList> CSSStyleSheet::rules()
</del><ins>+RefPtr<CSSRuleList> CSSStyleSheet::rules()
</ins><span class="cx"> {
</span><span class="cx"> if (!canAccessRules())
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> // IE behavior.
</span><span class="cx"> RefPtr<StaticCSSRuleList> nonCharsetRules = StaticCSSRuleList::create();
</span><span class="cx"> unsigned ruleCount = length();
</span><span class="lines">@@ -284,7 +284,7 @@
</span><span class="cx"> continue;
</span><span class="cx"> nonCharsetRules->rules().append(rule);
</span><span class="cx"> }
</span><del>- return nonCharsetRules.release();
</del><ins>+ return nonCharsetRules;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> unsigned CSSStyleSheet::insertRule(const String& ruleString, unsigned index, ExceptionCode& ec)
</span><span class="lines">@@ -358,10 +358,10 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-PassRefPtr<CSSRuleList> CSSStyleSheet::cssRules()
</del><ins>+RefPtr<CSSRuleList> CSSStyleSheet::cssRules()
</ins><span class="cx"> {
</span><span class="cx"> if (!canAccessRules())
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> if (!m_ruleListCSSOMWrapper)
</span><span class="cx"> m_ruleListCSSOMWrapper = std::make_unique<StyleSheetCSSRuleList>(this);
</span><span class="cx"> return m_ruleListCSSOMWrapper.get();
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSStyleSheeth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSStyleSheet.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSStyleSheet.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSStyleSheet.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -63,12 +63,12 @@
</span><span class="cx"> virtual bool disabled() const override { return m_isDisabled; }
</span><span class="cx"> virtual void setDisabled(bool) override;
</span><span class="cx">
</span><del>- PassRefPtr<CSSRuleList> cssRules();
</del><ins>+ RefPtr<CSSRuleList> cssRules();
</ins><span class="cx"> unsigned insertRule(const String& rule, unsigned index, ExceptionCode&);
</span><span class="cx"> void deleteRule(unsigned index, ExceptionCode&);
</span><span class="cx">
</span><span class="cx"> // IE Extensions
</span><del>- PassRefPtr<CSSRuleList> rules();
</del><ins>+ RefPtr<CSSRuleList> rules();
</ins><span class="cx"> int addRule(const String& selector, const String& style, int index, ExceptionCode&);
</span><span class="cx"> int addRule(const String& selector, const String& style, ExceptionCode&);
</span><span class="cx"> void removeRule(unsigned index, ExceptionCode& ec) { deleteRule(index, ec); }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSToStyleMapcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSToStyleMap.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSToStyleMap.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSToStyleMap.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx"> return m_resolver->useSVGZoomRules();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleImage> CSSToStyleMap::styleImage(CSSPropertyID propertyId, CSSValue& value)
</del><ins>+RefPtr<StyleImage> CSSToStyleMap::styleImage(CSSPropertyID propertyId, CSSValue& value)
</ins><span class="cx"> {
</span><span class="cx"> return m_resolver->styleImage(propertyId, value);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSToStyleMaph"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSToStyleMap.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSToStyleMap.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSToStyleMap.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx"> // FIXME: This should be part of some sort of StyleImageCache object which
</span><span class="cx"> // is held by the StyleResolver, and likely provided to this object
</span><span class="cx"> // during the resolve.
</span><del>- PassRefPtr<StyleImage> styleImage(CSSPropertyID, CSSValue&);
</del><ins>+ RefPtr<StyleImage> styleImage(CSSPropertyID, CSSValue&);
</ins><span class="cx">
</span><span class="cx"> StyleResolver* m_resolver;
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -457,7 +457,7 @@
</span><span class="cx"> ASSERT_NOT_REACHED();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSValue::cloneForCSSOM() const
</del><ins>+RefPtr<CSSValue> CSSValue::cloneForCSSOM() const
</ins><span class="cx"> {
</span><span class="cx"> switch (classType()) {
</span><span class="cx"> case PrimitiveClass:
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSValue.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSValue.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSValue.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -119,7 +119,7 @@
</span><span class="cx"> || isValueList();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- PassRefPtr<CSSValue> cloneForCSSOM() const;
</del><ins>+ RefPtr<CSSValue> cloneForCSSOM() const;
</ins><span class="cx">
</span><span class="cx"> void addSubresourceStyleURLs(ListHashSet<URL>&, const StyleSheetContents*) const;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSValueListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSValueList.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSValueList.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSValueList.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -169,9 +169,9 @@
</span><span class="cx"> m_values.uncheckedAppend(*cloneFrom.m_values[i]->cloneForCSSOM());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValueList> CSSValueList::cloneForCSSOM() const
</del><ins>+Ref<CSSValueList> CSSValueList::cloneForCSSOM() const
</ins><span class="cx"> {
</span><del>- return adoptRef(new CSSValueList(*this));
</del><ins>+ return adoptRef(*new CSSValueList(*this));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSValueListh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSValueList.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSValueList.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/CSSValueList.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx">
</span><span class="cx"> bool traverseSubresources(const std::function<bool (const CachedResource&)>& handler) const;
</span><span class="cx">
</span><del>- PassRefPtr<CSSValueList> cloneForCSSOM() const;
</del><ins>+ Ref<CSSValueList> cloneForCSSOM() const;
</ins><span class="cx">
</span><span class="cx"> protected:
</span><span class="cx"> CSSValueList(ClassType, ValueListSeparator);
</span></span></pre></div>
<a id="trunkSourceWebCorecssMediaListh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/MediaList.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/MediaList.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/MediaList.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx">
</span><span class="cx"> String mediaText() const;
</span><span class="cx">
</span><del>- PassRefPtr<MediaQuerySet> copy() const { return adoptRef(new MediaQuerySet(*this)); }
</del><ins>+ Ref<MediaQuerySet> copy() const { return adoptRef(*new MediaQuerySet(*this)); }
</ins><span class="cx">
</span><span class="cx"> private:
</span><span class="cx"> MediaQuerySet();
</span></span></pre></div>
<a id="trunkSourceWebCorecssMediaQueryMatchercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/MediaQueryMatcher.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/MediaQueryMatcher.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/MediaQueryMatcher.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -99,10 +99,10 @@
</span><span class="cx"> return evaluator && evaluator->eval(media);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<MediaQueryList> MediaQueryMatcher::matchMedia(const String& query)
</del><ins>+RefPtr<MediaQueryList> MediaQueryMatcher::matchMedia(const String& query)
</ins><span class="cx"> {
</span><span class="cx"> if (!m_document)
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx">
</span><span class="cx"> RefPtr<MediaQuerySet> media = MediaQuerySet::create(query);
</span><span class="cx"> #if ENABLE(RESOLUTION_MEDIA_QUERY)
</span></span></pre></div>
<a id="trunkSourceWebCorecssMediaQueryMatcherh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/MediaQueryMatcher.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/MediaQueryMatcher.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/MediaQueryMatcher.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx"> void addListener(PassRefPtr<MediaQueryListListener>, PassRefPtr<MediaQueryList>);
</span><span class="cx"> void removeListener(MediaQueryListListener*, MediaQueryList*);
</span><span class="cx">
</span><del>- PassRefPtr<MediaQueryList> matchMedia(const String&);
</del><ins>+ RefPtr<MediaQueryList> matchMedia(const String&);
</ins><span class="cx">
</span><span class="cx"> unsigned evaluationRound() const { return m_evaluationRound; }
</span><span class="cx"> void styleResolverChanged();
</span></span></pre></div>
<a id="trunkSourceWebCorecssPropertySetCSSStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -160,11 +160,11 @@
</span><span class="cx"> mutationScope.enqueueMutationRecord();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> PropertySetCSSStyleDeclaration::getPropertyCSSValue(const String& propertyName)
</del><ins>+RefPtr<CSSValue> PropertySetCSSStyleDeclaration::getPropertyCSSValue(const String& propertyName)
</ins><span class="cx"> {
</span><span class="cx"> CSSPropertyID propertyID = cssPropertyID(propertyName);
</span><span class="cx"> if (!propertyID)
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> return cloneAndCacheForCSSOM(m_propertySet->getPropertyCSSValue(propertyID).get());
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -245,7 +245,7 @@
</span><span class="cx"> return result;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> PropertySetCSSStyleDeclaration::getPropertyCSSValueInternal(CSSPropertyID propertyID)
</del><ins>+RefPtr<CSSValue> PropertySetCSSStyleDeclaration::getPropertyCSSValueInternal(CSSPropertyID propertyID)
</ins><span class="cx"> {
</span><span class="cx"> return m_propertySet->getPropertyCSSValue(propertyID);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssPropertySetCSSStyleDeclarationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -54,7 +54,7 @@
</span><span class="cx"> virtual CSSRule* parentRule() const override { return nullptr; }
</span><span class="cx"> virtual unsigned length() const override final;
</span><span class="cx"> virtual String item(unsigned index) const override final;
</span><del>- virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) override final;
</del><ins>+ virtual RefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) override final;
</ins><span class="cx"> virtual String getPropertyValue(const String& propertyName) override final;
</span><span class="cx"> virtual String getPropertyPriority(const String& propertyName) override final;
</span><span class="cx"> virtual String getPropertyShorthand(const String& propertyName) override final;
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx"> virtual String removeProperty(const String& propertyName, ExceptionCode&) override final;
</span><span class="cx"> virtual String cssText() const override final;
</span><span class="cx"> virtual void setCssText(const String&, ExceptionCode&) override final;
</span><del>- virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) override final;
</del><ins>+ virtual RefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) override final;
</ins><span class="cx"> virtual String getPropertyValueInternal(CSSPropertyID) override final;
</span><span class="cx"> virtual bool setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) override final;
</span><span class="cx">
</span><span class="lines">@@ -83,9 +83,9 @@
</span><span class="cx"> class StyleRuleCSSStyleDeclaration final : public PropertySetCSSStyleDeclaration
</span><span class="cx"> {
</span><span class="cx"> public:
</span><del>- static PassRefPtr<StyleRuleCSSStyleDeclaration> create(MutableStyleProperties& propertySet, CSSRule& parentRule)
</del><ins>+ static Ref<StyleRuleCSSStyleDeclaration> create(MutableStyleProperties& propertySet, CSSRule& parentRule)
</ins><span class="cx"> {
</span><del>- return adoptRef(new StyleRuleCSSStyleDeclaration(propertySet, parentRule));
</del><ins>+ return adoptRef(*new StyleRuleCSSStyleDeclaration(propertySet, parentRule));
</ins><span class="cx"> }
</span><span class="cx"> virtual ~StyleRuleCSSStyleDeclaration();
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssRGBColorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/RGBColor.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/RGBColor.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/RGBColor.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -35,36 +35,36 @@
</span><span class="cx"> return adoptRef(*new RGBColor(rgbColor));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> RGBColor::red()
</del><ins>+Ref<CSSPrimitiveValue> RGBColor::red()
</ins><span class="cx"> {
</span><span class="cx"> unsigned value = (m_rgbColor >> 16) & 0xFF;
</span><del>- RefPtr<CSSPrimitiveValue> result = CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER);
</del><ins>+ Ref<CSSPrimitiveValue> result = CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER);
</ins><span class="cx"> result->setCSSOMSafe();
</span><del>- return result.release();
</del><ins>+ return result;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> RGBColor::green()
</del><ins>+Ref<CSSPrimitiveValue> RGBColor::green()
</ins><span class="cx"> {
</span><span class="cx"> unsigned value = (m_rgbColor >> 8) & 0xFF;
</span><del>- RefPtr<CSSPrimitiveValue> result = CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER);
</del><ins>+ Ref<CSSPrimitiveValue> result = CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER);
</ins><span class="cx"> result->setCSSOMSafe();
</span><del>- return result.release();
</del><ins>+ return result;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> RGBColor::blue()
</del><ins>+Ref<CSSPrimitiveValue> RGBColor::blue()
</ins><span class="cx"> {
</span><span class="cx"> unsigned value = m_rgbColor & 0xFF;
</span><del>- RefPtr<CSSPrimitiveValue> result = CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER);
</del><ins>+ Ref<CSSPrimitiveValue> result = CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER);
</ins><span class="cx"> result->setCSSOMSafe();
</span><del>- return result.release();
</del><ins>+ return result;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSPrimitiveValue> RGBColor::alpha()
</del><ins>+Ref<CSSPrimitiveValue> RGBColor::alpha()
</ins><span class="cx"> {
</span><span class="cx"> float value = static_cast<float>((m_rgbColor >> 24) & 0xFF) / 0xFF;
</span><del>- RefPtr<CSSPrimitiveValue> result = CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER);
</del><ins>+ Ref<CSSPrimitiveValue> result = CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER);
</ins><span class="cx"> result->setCSSOMSafe();
</span><del>- return result.release();
</del><ins>+ return result;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorecssRGBColorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/RGBColor.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/RGBColor.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/RGBColor.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -38,10 +38,10 @@
</span><span class="cx"> public:
</span><span class="cx"> static Ref<RGBColor> create(unsigned rgbColor);
</span><span class="cx">
</span><del>- PassRefPtr<CSSPrimitiveValue> red();
- PassRefPtr<CSSPrimitiveValue> green();
- PassRefPtr<CSSPrimitiveValue> blue();
- PassRefPtr<CSSPrimitiveValue> alpha();
</del><ins>+ Ref<CSSPrimitiveValue> red();
+ Ref<CSSPrimitiveValue> green();
+ Ref<CSSPrimitiveValue> blue();
+ Ref<CSSPrimitiveValue> alpha();
</ins><span class="cx">
</span><span class="cx"> Color color() const { return Color(m_rgbColor); }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssSVGCSSComputedStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx"> return WTF::move(paintOrderList);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<CSSPrimitiveValue> glyphOrientationToCSSPrimitiveValue(EGlyphOrientation orientation)
</del><ins>+static RefPtr<CSSPrimitiveValue> glyphOrientationToCSSPrimitiveValue(EGlyphOrientation orientation)
</ins><span class="cx"> {
</span><span class="cx"> switch (orientation) {
</span><span class="cx"> case GO_0DEG:
</span><span class="lines">@@ -76,11 +76,11 @@
</span><span class="cx"> case GO_270DEG:
</span><span class="cx"> return CSSPrimitiveValue::create(270.0f, CSSPrimitiveValue::CSS_DEG);
</span><span class="cx"> default:
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<CSSValue> strokeDashArrayToCSSValueList(const Vector<SVGLength>& dashes)
</del><ins>+static RefPtr<CSSValue> strokeDashArrayToCSSValueList(const Vector<SVGLength>& dashes)
</ins><span class="cx"> {
</span><span class="cx"> if (dashes.isEmpty())
</span><span class="cx"> return CSSPrimitiveValue::createIdentifier(CSSValueNone);
</span><span class="lines">@@ -90,22 +90,22 @@
</span><span class="cx"> for (Vector<SVGLength>::const_iterator it = dashes.begin(); it != end; ++it)
</span><span class="cx"> list->append(SVGLength::toCSSPrimitiveValue(*it));
</span><span class="cx">
</span><del>- return list.release();
</del><ins>+ return list;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<SVGPaint> ComputedStyleExtractor::adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint> newPaint, RenderStyle* style) const
</del><ins>+RefPtr<SVGPaint> ComputedStyleExtractor::adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint> newPaint, RenderStyle* style) const
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<SVGPaint> paint = newPaint;
</span><span class="cx"> if (paint->paintType() == SVGPaint::SVG_PAINTTYPE_CURRENTCOLOR || paint->paintType() == SVGPaint::SVG_PAINTTYPE_URI_CURRENTCOLOR)
</span><span class="cx"> paint->setColor(style->color());
</span><del>- return paint.release();
</del><ins>+ return paint;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> ComputedStyleExtractor::svgPropertyValue(CSSPropertyID propertyID, EUpdateLayout updateLayout) const
</del><ins>+RefPtr<CSSValue> ComputedStyleExtractor::svgPropertyValue(CSSPropertyID propertyID, EUpdateLayout updateLayout) const
</ins><span class="cx"> {
</span><span class="cx"> Node* node = m_node.get();
</span><span class="cx"> if (!node)
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx">
</span><span class="cx"> // Make sure our layout is up to date before we allow a query on these attributes.
</span><span class="cx"> if (updateLayout)
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx">
</span><span class="cx"> RenderStyle* style = node->computedStyle();
</span><span class="cx"> if (!style)
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx">
</span><span class="cx"> const SVGRenderStyle& svgStyle = style->svgStyle();
</span><span class="cx">
</span><span class="lines">@@ -202,7 +202,7 @@
</span><span class="cx"> return SVGLength::toCSSPrimitiveValue(svgStyle.baselineShiftValue());
</span><span class="cx"> }
</span><span class="cx"> ASSERT_NOT_REACHED();
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyBufferedRendering:
</span><span class="cx"> return CSSPrimitiveValue::create(svgStyle.bufferedRendering());
</span><span class="lines">@@ -215,7 +215,7 @@
</span><span class="cx"> if (svgStyle.glyphOrientationVertical() == GO_AUTO)
</span><span class="cx"> return CSSPrimitiveValue::createIdentifier(CSSValueAuto);
</span><span class="cx">
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> }
</span><span class="cx"> case CSSPropertyWebkitSvgShadow:
</span><span class="cx"> return valueForShadow(svgStyle.shadow(), propertyID, *style);
</span><span class="lines">@@ -236,7 +236,7 @@
</span><span class="cx"> ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", propertyID);
</span><span class="cx"> }
</span><span class="cx"> LOG_ERROR("unimplemented propertyID: %d", propertyID);
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssSVGCSSParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/SVGCSSParser.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/SVGCSSParser.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/SVGCSSParser.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -340,7 +340,7 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseSVGStrokeDasharray()
</del><ins>+RefPtr<CSSValue> CSSParser::parseSVGStrokeDasharray()
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<CSSValueList> ret = CSSValueList::createCommaSeparated();
</span><span class="cx"> CSSParserValue* value = m_valueList->current();
</span><span class="lines">@@ -361,10 +361,10 @@
</span><span class="cx"> }
</span><span class="cx"> if (!valid_primitive)
</span><span class="cx"> return nullptr;
</span><del>- return ret.release();
</del><ins>+ return ret;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseSVGPaint()
</del><ins>+RefPtr<CSSValue> CSSParser::parseSVGPaint()
</ins><span class="cx"> {
</span><span class="cx"> RGBA32 c = Color::transparent;
</span><span class="cx"> if (!parseColorFromValue(*m_valueList->current(), c))
</span><span class="lines">@@ -372,15 +372,15 @@
</span><span class="cx"> return SVGPaint::createColor(Color(c));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parseSVGColor()
</del><ins>+RefPtr<CSSValue> CSSParser::parseSVGColor()
</ins><span class="cx"> {
</span><span class="cx"> RGBA32 c = Color::transparent;
</span><span class="cx"> if (!parseColorFromValue(*m_valueList->current(), c))
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> return SVGColor::createFromColor(Color(c));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSValue> CSSParser::parsePaintOrder()
</del><ins>+RefPtr<CSSValue> CSSParser::parsePaintOrder()
</ins><span class="cx"> {
</span><span class="cx"> CSSParserValue* value = m_valueList->current();
</span><span class="cx">
</span><span class="lines">@@ -426,7 +426,7 @@
</span><span class="cx"> default:
</span><span class="cx"> ASSERT_NOT_REACHED();
</span><span class="cx"> }
</span><del>- return paintOrderList.release();
</del><ins>+ return paintOrderList;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssWebKitCSSFilterValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/WebKitCSSFilterValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/WebKitCSSFilterValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/WebKitCSSFilterValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -88,9 +88,9 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebKitCSSFilterValue> WebKitCSSFilterValue::cloneForCSSOM() const
</del><ins>+Ref<WebKitCSSFilterValue> WebKitCSSFilterValue::cloneForCSSOM() const
</ins><span class="cx"> {
</span><del>- return adoptRef(new WebKitCSSFilterValue(*this));
</del><ins>+ return adoptRef(*new WebKitCSSFilterValue(*this));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool WebKitCSSFilterValue::equals(const WebKitCSSFilterValue& other) const
</span></span></pre></div>
<a id="trunkSourceWebCorecssWebKitCSSFilterValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/WebKitCSSFilterValue.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/WebKitCSSFilterValue.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/WebKitCSSFilterValue.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx">
</span><span class="cx"> FilterOperationType operationType() const { return m_type; }
</span><span class="cx">
</span><del>- PassRefPtr<WebKitCSSFilterValue> cloneForCSSOM() const;
</del><ins>+ Ref<WebKitCSSFilterValue> cloneForCSSOM() const;
</ins><span class="cx">
</span><span class="cx"> bool equals(const WebKitCSSFilterValue&) const;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssWebKitCSSMatrixcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/WebKitCSSMatrix.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/WebKitCSSMatrix.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/WebKitCSSMatrix.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -89,27 +89,27 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Perform a concatenation of the matrices (this * secondMatrix)
</span><del>-PassRefPtr<WebKitCSSMatrix> WebKitCSSMatrix::multiply(WebKitCSSMatrix* secondMatrix) const
</del><ins>+RefPtr<WebKitCSSMatrix> WebKitCSSMatrix::multiply(WebKitCSSMatrix* secondMatrix) const
</ins><span class="cx"> {
</span><span class="cx"> if (!secondMatrix)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> RefPtr<WebKitCSSMatrix> matrix = WebKitCSSMatrix::create(m_matrix);
</span><span class="cx"> matrix->m_matrix.multiply(secondMatrix->m_matrix);
</span><del>- return matrix.release();
</del><ins>+ return matrix;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebKitCSSMatrix> WebKitCSSMatrix::inverse(ExceptionCode& ec) const
</del><ins>+RefPtr<WebKitCSSMatrix> WebKitCSSMatrix::inverse(ExceptionCode& ec) const
</ins><span class="cx"> {
</span><span class="cx"> if (!m_matrix.isInvertible()) {
</span><span class="cx"> ec = NOT_SUPPORTED_ERR;
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> return WebKitCSSMatrix::create(m_matrix.inverse());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebKitCSSMatrix> WebKitCSSMatrix::translate(double x, double y, double z) const
</del><ins>+RefPtr<WebKitCSSMatrix> WebKitCSSMatrix::translate(double x, double y, double z) const
</ins><span class="cx"> {
</span><span class="cx"> if (std::isnan(x))
</span><span class="cx"> x = 0;
</span><span class="lines">@@ -120,10 +120,10 @@
</span><span class="cx">
</span><span class="cx"> RefPtr<WebKitCSSMatrix> matrix = WebKitCSSMatrix::create(m_matrix);
</span><span class="cx"> matrix->m_matrix.translate3d(x, y, z);
</span><del>- return matrix.release();
</del><ins>+ return matrix;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebKitCSSMatrix> WebKitCSSMatrix::scale(double scaleX, double scaleY, double scaleZ) const
</del><ins>+RefPtr<WebKitCSSMatrix> WebKitCSSMatrix::scale(double scaleX, double scaleY, double scaleZ) const
</ins><span class="cx"> {
</span><span class="cx"> if (std::isnan(scaleX))
</span><span class="cx"> scaleX = 1;
</span><span class="lines">@@ -134,10 +134,10 @@
</span><span class="cx">
</span><span class="cx"> RefPtr<WebKitCSSMatrix> matrix = WebKitCSSMatrix::create(m_matrix);
</span><span class="cx"> matrix->m_matrix.scale3d(scaleX, scaleY, scaleZ);
</span><del>- return matrix.release();
</del><ins>+ return matrix;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebKitCSSMatrix> WebKitCSSMatrix::rotate(double rotX, double rotY, double rotZ) const
</del><ins>+RefPtr<WebKitCSSMatrix> WebKitCSSMatrix::rotate(double rotX, double rotY, double rotZ) const
</ins><span class="cx"> {
</span><span class="cx"> if (std::isnan(rotX))
</span><span class="cx"> rotX = 0;
</span><span class="lines">@@ -155,10 +155,10 @@
</span><span class="cx">
</span><span class="cx"> RefPtr<WebKitCSSMatrix> matrix = WebKitCSSMatrix::create(m_matrix);
</span><span class="cx"> matrix->m_matrix.rotate3d(rotX, rotY, rotZ);
</span><del>- return matrix.release();
</del><ins>+ return matrix;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebKitCSSMatrix> WebKitCSSMatrix::rotateAxisAngle(double x, double y, double z, double angle) const
</del><ins>+RefPtr<WebKitCSSMatrix> WebKitCSSMatrix::rotateAxisAngle(double x, double y, double z, double angle) const
</ins><span class="cx"> {
</span><span class="cx"> if (std::isnan(x))
</span><span class="cx"> x = 0;
</span><span class="lines">@@ -173,27 +173,27 @@
</span><span class="cx">
</span><span class="cx"> RefPtr<WebKitCSSMatrix> matrix = WebKitCSSMatrix::create(m_matrix);
</span><span class="cx"> matrix->m_matrix.rotate3d(x, y, z, angle);
</span><del>- return matrix.release();
</del><ins>+ return matrix;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebKitCSSMatrix> WebKitCSSMatrix::skewX(double angle) const
</del><ins>+RefPtr<WebKitCSSMatrix> WebKitCSSMatrix::skewX(double angle) const
</ins><span class="cx"> {
</span><span class="cx"> if (std::isnan(angle))
</span><span class="cx"> angle = 0;
</span><span class="cx">
</span><span class="cx"> RefPtr<WebKitCSSMatrix> matrix = WebKitCSSMatrix::create(m_matrix);
</span><span class="cx"> matrix->m_matrix.skewX(angle);
</span><del>- return matrix.release();
</del><ins>+ return matrix;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebKitCSSMatrix> WebKitCSSMatrix::skewY(double angle) const
</del><ins>+RefPtr<WebKitCSSMatrix> WebKitCSSMatrix::skewY(double angle) const
</ins><span class="cx"> {
</span><span class="cx"> if (std::isnan(angle))
</span><span class="cx"> angle = 0;
</span><span class="cx">
</span><span class="cx"> RefPtr<WebKitCSSMatrix> matrix = WebKitCSSMatrix::create(m_matrix);
</span><span class="cx"> matrix->m_matrix.skewY(angle);
</span><del>- return matrix.release();
</del><ins>+ return matrix;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> String WebKitCSSMatrix::toString() const
</span></span></pre></div>
<a id="trunkSourceWebCorecssWebKitCSSMatrixh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/WebKitCSSMatrix.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/WebKitCSSMatrix.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/WebKitCSSMatrix.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -103,48 +103,48 @@
</span><span class="cx"> // specified operation applied. The this value is not modified.
</span><span class="cx">
</span><span class="cx"> // Multiply this matrix by secondMatrix, on the right (result = this * secondMatrix)
</span><del>- PassRefPtr<WebKitCSSMatrix> multiply(WebKitCSSMatrix* secondMatrix) const;
</del><ins>+ RefPtr<WebKitCSSMatrix> multiply(WebKitCSSMatrix* secondMatrix) const;
</ins><span class="cx">
</span><span class="cx"> // Return the inverse of this matrix. Throw an exception if the matrix is not invertible
</span><del>- PassRefPtr<WebKitCSSMatrix> inverse(ExceptionCode&) const;
</del><ins>+ RefPtr<WebKitCSSMatrix> inverse(ExceptionCode&) const;
</ins><span class="cx">
</span><span class="cx"> // Return this matrix translated by the passed values.
</span><span class="cx"> // Passing a NaN will use a value of 0. This allows the 3D form to used for 2D operations
</span><span class="cx"> // Operation is performed as though the this matrix is multiplied by a matrix with
</span><span class="cx"> // the translation values on the left (result = translation(x,y,z) * this)
</span><del>- PassRefPtr<WebKitCSSMatrix> translate(double x, double y, double z) const;
</del><ins>+ RefPtr<WebKitCSSMatrix> translate(double x, double y, double z) const;
</ins><span class="cx">
</span><span class="cx"> // Returns this matrix scaled by the passed values.
</span><span class="cx"> // Passing scaleX or scaleZ as NaN uses a value of 1, but passing scaleY of NaN
</span><span class="cx"> // makes it the same as scaleX. This allows the 3D form to used for 2D operations
</span><span class="cx"> // Operation is performed as though the this matrix is multiplied by a matrix with
</span><span class="cx"> // the scale values on the left (result = scale(x,y,z) * this)
</span><del>- PassRefPtr<WebKitCSSMatrix> scale(double scaleX, double scaleY, double scaleZ) const;
</del><ins>+ RefPtr<WebKitCSSMatrix> scale(double scaleX, double scaleY, double scaleZ) const;
</ins><span class="cx">
</span><span class="cx"> // Returns this matrix rotated by the passed values.
</span><span class="cx"> // If rotY and rotZ are NaN, rotate about Z (rotX=0, rotateY=0, rotateZ=rotX).
</span><span class="cx"> // Otherwise use a rotation value of 0 for any passed NaN.
</span><span class="cx"> // Operation is performed as though the this matrix is multiplied by a matrix with
</span><span class="cx"> // the rotation values on the left (result = rotation(x,y,z) * this)
</span><del>- PassRefPtr<WebKitCSSMatrix> rotate(double rotX, double rotY, double rotZ) const;
</del><ins>+ RefPtr<WebKitCSSMatrix> rotate(double rotX, double rotY, double rotZ) const;
</ins><span class="cx">
</span><span class="cx"> // Returns this matrix rotated about the passed axis by the passed angle.
</span><span class="cx"> // Passing a NaN will use a value of 0. If the axis is (0,0,0) use a value
</span><span class="cx"> // Operation is performed as though the this matrix is multiplied by a matrix with
</span><span class="cx"> // the rotation values on the left (result = rotation(x,y,z,angle) * this)
</span><del>- PassRefPtr<WebKitCSSMatrix> rotateAxisAngle(double x, double y, double z, double angle) const;
</del><ins>+ RefPtr<WebKitCSSMatrix> rotateAxisAngle(double x, double y, double z, double angle) const;
</ins><span class="cx">
</span><span class="cx"> // Return this matrix skewed along the X axis by the passed values.
</span><span class="cx"> // Passing a NaN will use a value of 0.
</span><span class="cx"> // Operation is performed as though the this matrix is multiplied by a matrix with
</span><span class="cx"> // the skew values on the left (result = skewX(angle) * this)
</span><del>- PassRefPtr<WebKitCSSMatrix> skewX(double angle) const;
</del><ins>+ RefPtr<WebKitCSSMatrix> skewX(double angle) const;
</ins><span class="cx">
</span><span class="cx"> // Return this matrix skewed along the Y axis by the passed values.
</span><span class="cx"> // Passing a NaN will use a value of 0.
</span><span class="cx"> // Operation is performed as though the this matrix is multiplied by a matrix with
</span><span class="cx"> // the skew values on the left (result = skewY(angle) * this)
</span><del>- PassRefPtr<WebKitCSSMatrix> skewY(double angle) const;
</del><ins>+ RefPtr<WebKitCSSMatrix> skewY(double angle) const;
</ins><span class="cx">
</span><span class="cx"> const TransformationMatrix& transform() const { return m_matrix; }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssWebKitCSSTransformValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/WebKitCSSTransformValue.cpp (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/WebKitCSSTransformValue.cpp        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/WebKitCSSTransformValue.cpp        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -84,9 +84,9 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebKitCSSTransformValue> WebKitCSSTransformValue::cloneForCSSOM() const
</del><ins>+Ref<WebKitCSSTransformValue> WebKitCSSTransformValue::cloneForCSSOM() const
</ins><span class="cx"> {
</span><del>- return adoptRef(new WebKitCSSTransformValue(*this));
</del><ins>+ return adoptRef(*new WebKitCSSTransformValue(*this));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssWebKitCSSTransformValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/WebKitCSSTransformValue.h (188314 => 188315)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/WebKitCSSTransformValue.h        2015-08-12 00:45:31 UTC (rev 188314)
+++ trunk/Source/WebCore/css/WebKitCSSTransformValue.h        2015-08-12 01:12:58 UTC (rev 188315)
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx">
</span><span class="cx"> TransformOperationType operationType() const { return m_type; }
</span><span class="cx">
</span><del>- PassRefPtr<WebKitCSSTransformValue> cloneForCSSOM() const;
</del><ins>+ Ref<WebKitCSSTransformValue> cloneForCSSOM() const;
</ins><span class="cx">
</span><span class="cx"> private:
</span><span class="cx"> WebKitCSSTransformValue(TransformOperationType);
</span></span></pre>
</div>
</div>
</body>
</html>