<!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>[201318] 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/201318">201318</a></dd>
<dt>Author</dt> <dd>achristensen@apple.com</dd>
<dt>Date</dt> <dd>2016-05-23 22:34:49 -0700 (Mon, 23 May 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Modernize CSS code
https://bugs.webkit.org/show_bug.cgi?id=157875
Reviewed by Chris Dumez.
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
(GenerateParametersCheck):
* bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
(WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::JSTestObjConstructor::construct):
(WebCore::setJSTestObjPutForwardsNullableAttribute):
(WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithCallbackFunctionArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackFunctionArg):
(WebCore::jsTestObjConstructorFunctionStaticMethodWithCallbackArg):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod5):
* bindings/scripts/test/JS/JSTestTypedefs.cpp:
(WebCore::JSTestTypedefsConstructor::construct):
* css/CSSBasicShapes.cpp:
(WebCore::serializePositionOffset):
(WebCore::buildSerializablePositionOffset):
(WebCore::CSSBasicShapeCircle::cssText):
(WebCore::CSSBasicShapeEllipse::cssText):
* css/CSSCalculationValue.cpp:
(WebCore::determineCategory):
(WebCore::CSSCalcExpressionNodeParser::parseValue):
* css/CSSMediaRule.cpp:
(WebCore::CSSMediaRule::media):
* css/CSSMediaRule.h:
* css/CSSOMUtils.h:
* css/CSSParser.cpp:
(WebCore::CSSParser::createImportRule):
(WebCore::CSSParser::createMediaRule):
* css/CSSReflectValue.h:
* css/CSSStyleSheet.cpp:
(WebCore::CSSStyleSheet::setDisabled):
(WebCore::CSSStyleSheet::setMediaQueries):
(WebCore::CSSStyleSheet::insertRule):
(WebCore::CSSStyleSheet::deleteRule):
(WebCore::CSSStyleSheet::isLoading):
(WebCore::CSSStyleSheet::media):
(WebCore::CSSStyleSheet::parentStyleSheet):
(WebCore::CSSStyleSheet::ownerDocument):
(WebCore::CSSStyleSheet::clearChildRuleCSSOMWrappers):
(WebCore::CSSStyleSheet::RuleMutationScope::RuleMutationScope):
* css/CSSStyleSheet.h:
* css/PropertySetCSSStyleDeclaration.cpp:
* css/StyleRule.cpp:
(WebCore::StyleRuleBase::createCSSOMWrapper):
(WebCore::StyleRuleBase::destroy):
(WebCore::StyleRuleGroup::wrapperRemoveRule):
(WebCore::StyleRuleMedia::StyleRuleMedia):
* css/StyleRule.h:
(WebCore::StyleRuleBase::deref):
(WebCore::StyleRuleBase::StyleRuleBase):
(WebCore::StyleRuleMedia::create):
(WebCore::StyleRuleMedia::mediaQueries):
(WebCore::StyleRuleMedia::copy):
(isType):
* css/StyleRuleImport.cpp:
(WebCore::StyleRuleImport::create):
(WebCore::StyleRuleImport::StyleRuleImport):
* css/StyleRuleImport.h:
* css/StyleSheetContents.cpp:
(WebCore::StyleSheetContents::isCacheable):
(WebCore::StyleSheetContents::parserAppendRule):
(WebCore::StyleSheetContents::ruleAt):
(WebCore::StyleSheetContents::parserSetEncodingFromCharsetRule):
(WebCore::StyleSheetContents::wrapperInsertRule):
* css/StyleSheetContents.h:
(WebCore::StyleSheetContents::hasSyntacticallyValidCSSHeader):
(WebCore::StyleSheetContents::parserSetUsesRemUnits):
(WebCore::StyleSheetContents::parserSetUsesStyleBasedEditability):
(WebCore::StyleSheetContents::copy):
* dom/InlineStyleSheetOwner.cpp:
(WebCore::InlineStyleSheetOwner::createSheet):
* inspector/InspectorStyleSheet.cpp:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestMediaQueryListListenercpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestTypedefscpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSBasicShapescpp">trunk/Source/WebCore/css/CSSBasicShapes.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSCalculationValuecpp">trunk/Source/WebCore/css/CSSCalculationValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSMediaRulecpp">trunk/Source/WebCore/css/CSSMediaRule.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSMediaRuleh">trunk/Source/WebCore/css/CSSMediaRule.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSOMUtilsh">trunk/Source/WebCore/css/CSSOMUtils.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSParsercpp">trunk/Source/WebCore/css/CSSParser.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSReflectValueh">trunk/Source/WebCore/css/CSSReflectValue.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="#trunkSourceWebCorecssPropertySetCSSStyleDeclarationcpp">trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleRulecpp">trunk/Source/WebCore/css/StyleRule.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleRuleh">trunk/Source/WebCore/css/StyleRule.h</a></li>
<li><a href="#trunkSourceWebCorecssStyleRuleImportcpp">trunk/Source/WebCore/css/StyleRuleImport.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleRuleImporth">trunk/Source/WebCore/css/StyleRuleImport.h</a></li>
<li><a href="#trunkSourceWebCorecssStyleSheetContentscpp">trunk/Source/WebCore/css/StyleSheetContents.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleSheetContentsh">trunk/Source/WebCore/css/StyleSheetContents.h</a></li>
<li><a href="#trunkSourceWebCoredomInlineStyleSheetOwnercpp">trunk/Source/WebCore/dom/InlineStyleSheetOwner.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorStyleSheetcpp">trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/ChangeLog        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -1,3 +1,86 @@
</span><ins>+2016-05-23 Alex Christensen <achristensen@webkit.org>
+
+ Modernize CSS code
+ https://bugs.webkit.org/show_bug.cgi?id=157875
+
+ Reviewed by Chris Dumez.
+
+ * bindings/scripts/CodeGeneratorJS.pm:
+ (GenerateImplementation):
+ (GenerateParametersCheck):
+ * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
+ (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
+ * bindings/scripts/test/JS/JSTestObj.cpp:
+ (WebCore::JSTestObjConstructor::construct):
+ (WebCore::setJSTestObjPutForwardsNullableAttribute):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackFunctionArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackFunctionArg):
+ (WebCore::jsTestObjConstructorFunctionStaticMethodWithCallbackArg):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod5):
+ * bindings/scripts/test/JS/JSTestTypedefs.cpp:
+ (WebCore::JSTestTypedefsConstructor::construct):
+ * css/CSSBasicShapes.cpp:
+ (WebCore::serializePositionOffset):
+ (WebCore::buildSerializablePositionOffset):
+ (WebCore::CSSBasicShapeCircle::cssText):
+ (WebCore::CSSBasicShapeEllipse::cssText):
+ * css/CSSCalculationValue.cpp:
+ (WebCore::determineCategory):
+ (WebCore::CSSCalcExpressionNodeParser::parseValue):
+ * css/CSSMediaRule.cpp:
+ (WebCore::CSSMediaRule::media):
+ * css/CSSMediaRule.h:
+ * css/CSSOMUtils.h:
+ * css/CSSParser.cpp:
+ (WebCore::CSSParser::createImportRule):
+ (WebCore::CSSParser::createMediaRule):
+ * css/CSSReflectValue.h:
+ * css/CSSStyleSheet.cpp:
+ (WebCore::CSSStyleSheet::setDisabled):
+ (WebCore::CSSStyleSheet::setMediaQueries):
+ (WebCore::CSSStyleSheet::insertRule):
+ (WebCore::CSSStyleSheet::deleteRule):
+ (WebCore::CSSStyleSheet::isLoading):
+ (WebCore::CSSStyleSheet::media):
+ (WebCore::CSSStyleSheet::parentStyleSheet):
+ (WebCore::CSSStyleSheet::ownerDocument):
+ (WebCore::CSSStyleSheet::clearChildRuleCSSOMWrappers):
+ (WebCore::CSSStyleSheet::RuleMutationScope::RuleMutationScope):
+ * css/CSSStyleSheet.h:
+ * css/PropertySetCSSStyleDeclaration.cpp:
+ * css/StyleRule.cpp:
+ (WebCore::StyleRuleBase::createCSSOMWrapper):
+ (WebCore::StyleRuleBase::destroy):
+ (WebCore::StyleRuleGroup::wrapperRemoveRule):
+ (WebCore::StyleRuleMedia::StyleRuleMedia):
+ * css/StyleRule.h:
+ (WebCore::StyleRuleBase::deref):
+ (WebCore::StyleRuleBase::StyleRuleBase):
+ (WebCore::StyleRuleMedia::create):
+ (WebCore::StyleRuleMedia::mediaQueries):
+ (WebCore::StyleRuleMedia::copy):
+ (isType):
+ * css/StyleRuleImport.cpp:
+ (WebCore::StyleRuleImport::create):
+ (WebCore::StyleRuleImport::StyleRuleImport):
+ * css/StyleRuleImport.h:
+ * css/StyleSheetContents.cpp:
+ (WebCore::StyleSheetContents::isCacheable):
+ (WebCore::StyleSheetContents::parserAppendRule):
+ (WebCore::StyleSheetContents::ruleAt):
+ (WebCore::StyleSheetContents::parserSetEncodingFromCharsetRule):
+ (WebCore::StyleSheetContents::wrapperInsertRule):
+ * css/StyleSheetContents.h:
+ (WebCore::StyleSheetContents::hasSyntacticallyValidCSSHeader):
+ (WebCore::StyleSheetContents::parserSetUsesRemUnits):
+ (WebCore::StyleSheetContents::parserSetUsesStyleBasedEditability):
+ (WebCore::StyleSheetContents::copy):
+ * dom/InlineStyleSheetOwner.cpp:
+ (WebCore::InlineStyleSheetOwner::createSheet):
+ * inspector/InspectorStyleSheet.cpp:
+
</ins><span class="cx"> 2016-05-23 Zalan Bujtas <zalan@apple.com>
</span><span class="cx">
</span><span class="cx"> Changing border color and size simultaneously fails to repaint.
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -2705,7 +2705,7 @@
</span><span class="cx"> my $jsType = NativeToJSValue($attribute->signature, 0, $interface, "${functionName}(" . join(", ", @arguments) . ")", "castedThis");
</span><span class="cx"> push(@implContent, " auto& impl = castedThis->wrapped();\n") if !$attribute->isStatic;
</span><span class="cx"> if ($codeGenerator->IsSVGAnimatedType($type)) {
</span><del>- push(@implContent, " RefPtr<$type> obj = $jsType;\n");
</del><ins>+ push(@implContent, " auto obj = $jsType;\n");
</ins><span class="cx"> push(@implContent, " JSValue result = toJS(state, castedThis->globalObject(), obj.get());\n");
</span><span class="cx"> } else {
</span><span class="cx"> push(@implContent, " JSValue result = $jsType;\n");
</span><span class="lines">@@ -2918,7 +2918,7 @@
</span><span class="cx"> if ($putForwards) {
</span><span class="cx"> my $implGetterFunctionName = $codeGenerator->WK_lcfirst($attribute->signature->extendedAttributes->{"ImplementedAs"} || $name);
</span><span class="cx"> if ($attribute->signature->isNullable) {
</span><del>- push(@implContent, " RefPtr<${type}> forwardedImpl = castedThis->wrapped().${implGetterFunctionName}();\n");
</del><ins>+ push(@implContent, " auto forwardedImpl = castedThis->wrapped().${implGetterFunctionName}();\n");
</ins><span class="cx"> push(@implContent, " if (!forwardedImpl)\n");
</span><span class="cx"> push(@implContent, " return false;\n");
</span><span class="cx"> push(@implContent, " auto& impl = *forwardedImpl;\n");
</span><span class="lines">@@ -3659,9 +3659,9 @@
</span><span class="cx"> push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName);\n");
</span><span class="cx"> if ($function->isStatic) {
</span><span class="cx"> AddToImplIncludes("CallbackFunction.h");
</span><del>- push(@$outputArray, " RefPtr<$type> $name = createFunctionOnlyCallback<${callbackClassName}>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument($argumentIndex));\n");
</del><ins>+ push(@$outputArray, " auto $name = createFunctionOnlyCallback<${callbackClassName}>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument($argumentIndex));\n");
</ins><span class="cx"> } else {
</span><del>- push(@$outputArray, " RefPtr<$type> $name = ${callbackClassName}::create(asObject(state->uncheckedArgument($argumentIndex)), castedThis->globalObject());\n");
</del><ins>+ push(@$outputArray, " auto $name = ${callbackClassName}::create(asObject(state->uncheckedArgument($argumentIndex)), castedThis->globalObject());\n");
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> $value = "WTFMove($name)";
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestMediaQueryListListenercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -160,7 +160,7 @@
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isFunction()))
</span><span class="cx"> return throwArgumentMustBeFunctionError(*state, 0, "listener", "TestMediaQueryListListener", "method");
</span><del>- RefPtr<MediaQueryListListener> listener = JSMediaQueryListListener::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ auto listener = JSMediaQueryListListener::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> impl.method(WTFMove(listener));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -1015,10 +1015,10 @@
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isObject()))
</span><span class="cx"> return throwArgumentMustBeFunctionError(*state, 0, "testCallback", "TestObj", nullptr);
</span><del>- RefPtr<TestCallback> testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ auto testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> if (UNLIKELY(!state->argument(1).isFunction()))
</span><span class="cx"> return throwArgumentMustBeFunctionError(*state, 1, "testCallbackFunction", "TestObj", nullptr);
</span><del>- RefPtr<TestCallbackFunction> testCallbackFunction = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</del><ins>+ auto testCallbackFunction = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</ins><span class="cx"> auto object = TestObj::create(*testCallback, *testCallbackFunction);
</span><span class="cx"> return JSValue::encode(asObject(toJSNewlyCreated(state, castedThis->globalObject(), WTFMove(object))));
</span><span class="cx"> }
</span><span class="lines">@@ -3852,7 +3852,7 @@
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><span class="cx"> return throwSetterTypeError(*state, "TestObj", "putForwardsNullableAttribute");
</span><span class="cx"> }
</span><del>- RefPtr<TestNode> forwardedImpl = castedThis->wrapped().putForwardsNullableAttribute();
</del><ins>+ auto forwardedImpl = castedThis->wrapped().putForwardsNullableAttribute();
</ins><span class="cx"> if (!forwardedImpl)
</span><span class="cx"> return false;
</span><span class="cx"> auto& impl = *forwardedImpl;
</span><span class="lines">@@ -5021,7 +5021,7 @@
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isObject()))
</span><span class="cx"> return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackArg");
</span><del>- RefPtr<TestCallback> callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> impl.methodWithCallbackArg(WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="lines">@@ -5041,7 +5041,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (UNLIKELY(!state->argument(1).isObject()))
</span><span class="cx"> return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObj", "methodWithNonCallbackArgAndCallbackArg");
</span><del>- RefPtr<TestCallback> callback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</del><ins>+ auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</ins><span class="cx"> impl.methodWithNonCallbackArgAndCallbackArg(WTFMove(nonCallback), WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="lines">@@ -5076,7 +5076,7 @@
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isFunction()))
</span><span class="cx"> return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackFunctionArg");
</span><del>- RefPtr<TestCallbackFunction> callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ auto callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> impl.methodWithCallbackFunctionArg(WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="lines">@@ -5096,7 +5096,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (UNLIKELY(!state->argument(1).isFunction()))
</span><span class="cx"> return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObj", "methodWithNonCallbackArgAndCallbackFunctionArg");
</span><del>- RefPtr<TestCallbackFunction> callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</del><ins>+ auto callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</ins><span class="cx"> impl.methodWithNonCallbackArgAndCallbackFunctionArg(WTFMove(nonCallback), WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="lines">@@ -5137,7 +5137,7 @@
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isObject()))
</span><span class="cx"> return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "staticMethodWithCallbackArg");
</span><del>- RefPtr<TestCallback> callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0));
</del><ins>+ auto callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0));
</ins><span class="cx"> TestObj::staticMethodWithCallbackArg(WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="lines">@@ -5269,7 +5269,7 @@
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isObject()))
</span><span class="cx"> return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "overloadedMethod");
</span><del>- RefPtr<TestCallback> callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</del><ins>+ auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</ins><span class="cx"> impl.overloadedMethod(WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestTypedefscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -134,7 +134,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (UNLIKELY(!state->argument(1).isObject()))
</span><span class="cx"> return throwArgumentMustBeFunctionError(*state, 1, "testCallback", "TestTypedefs", nullptr);
</span><del>- RefPtr<TestCallback> testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</del><ins>+ auto testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</ins><span class="cx"> auto object = TestTypedefs::create(hello, *testCallback);
</span><span class="cx"> return JSValue::encode(asObject(toJSNewlyCreated(state, castedThis->globalObject(), WTFMove(object))));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSBasicShapescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSBasicShapes.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSBasicShapes.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/CSSBasicShapes.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx"> return offset.cssText();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static Ref<CSSPrimitiveValue> buildSerializablePositionOffset(PassRefPtr<CSSPrimitiveValue> offset, CSSValueID defaultSide)
</del><ins>+static Ref<CSSPrimitiveValue> buildSerializablePositionOffset(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>- Ref<CSSPrimitiveValue> normalizedCX = buildSerializablePositionOffset(m_centerX, CSSValueLeft);
- Ref<CSSPrimitiveValue> normalizedCY = buildSerializablePositionOffset(m_centerY, CSSValueTop);
</del><ins>+ Ref<CSSPrimitiveValue> normalizedCX = buildSerializablePositionOffset(m_centerX.get(), CSSValueLeft);
+ Ref<CSSPrimitiveValue> normalizedCY = buildSerializablePositionOffset(m_centerY.get(), 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">@@ -167,8 +167,8 @@
</span><span class="cx">
</span><span class="cx"> String CSSBasicShapeEllipse::cssText() const
</span><span class="cx"> {
</span><del>- Ref<CSSPrimitiveValue> normalizedCX = buildSerializablePositionOffset(m_centerX, CSSValueLeft);
- Ref<CSSPrimitiveValue> normalizedCY = buildSerializablePositionOffset(m_centerY, CSSValueTop);
</del><ins>+ Ref<CSSPrimitiveValue> normalizedCX = buildSerializablePositionOffset(m_centerX.get(), CSSValueLeft);
+ Ref<CSSPrimitiveValue> normalizedCY = buildSerializablePositionOffset(m_centerY.get(), CSSValueTop);
</ins><span class="cx">
</span><span class="cx"> String radiusX;
</span><span class="cx"> String radiusY;
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSCalculationValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSCalculationValue.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSCalculationValue.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/CSSCalculationValue.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -200,9 +200,9 @@
</span><span class="cx"> class CSSCalcPrimitiveValue final : public CSSCalcExpressionNode {
</span><span class="cx"> WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>- static Ref<CSSCalcPrimitiveValue> create(PassRefPtr<CSSPrimitiveValue> value, bool isInteger)
</del><ins>+ static Ref<CSSCalcPrimitiveValue> create(Ref<CSSPrimitiveValue>&& value, bool isInteger)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new CSSCalcPrimitiveValue(value, isInteger));
</del><ins>+ return adoptRef(*new CSSCalcPrimitiveValue(WTFMove(value), isInteger));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static RefPtr<CSSCalcPrimitiveValue> create(double value, CSSPrimitiveValue::UnitTypes type, bool isInteger)
</span><span class="lines">@@ -232,9 +232,7 @@
</span><span class="cx"> return std::make_unique<CalcExpressionLength>(Length(m_value->computeLength<float>(conversionData), WebCore::Fixed));
</span><span class="cx"> case CalcPercent:
</span><span class="cx"> case CalcPercentLength: {
</span><del>- CSSPrimitiveValue* primitiveValue = m_value.get();
- return std::make_unique<CalcExpressionLength>(primitiveValue
- ? primitiveValue->convertToLength<FixedFloatConversion | PercentConversion>(conversionData) : Length(Undefined));
</del><ins>+ return std::make_unique<CalcExpressionLength>(m_value->convertToLength<FixedFloatConversion | PercentConversion>(conversionData));
</ins><span class="cx"> }
</span><span class="cx"> // Only types that could be part of a Length expression can be converted
</span><span class="cx"> // to a CalcExpressionNode. CalcPercentNumber makes no sense as a Length.
</span><span class="lines">@@ -283,7 +281,7 @@
</span><span class="cx"> if (type() != other.type())
</span><span class="cx"> return false;
</span><span class="cx">
</span><del>- return compareCSSValuePtr(m_value, static_cast<const CSSCalcPrimitiveValue&>(other).m_value);
</del><ins>+ return compareCSSValue(m_value, static_cast<const CSSCalcPrimitiveValue&>(other).m_value);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> Type type() const override { return CssCalcPrimitiveValue; }
</span><span class="lines">@@ -293,13 +291,13 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- explicit CSSCalcPrimitiveValue(PassRefPtr<CSSPrimitiveValue> value, bool isInteger)
</del><ins>+ explicit CSSCalcPrimitiveValue(Ref<CSSPrimitiveValue>&& value, bool isInteger)
</ins><span class="cx"> : CSSCalcExpressionNode(unitCategory((CSSPrimitiveValue::UnitTypes)value->primitiveType()), isInteger)
</span><del>- , m_value(value)
</del><ins>+ , m_value(WTFMove(value))
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<CSSPrimitiveValue> m_value;
</del><ins>+ Ref<CSSPrimitiveValue> m_value;
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static const CalculationCategory addSubtractResult[CalcAngle][CalcAngle] = {
</span><span class="lines">@@ -610,8 +608,7 @@
</span><span class="cx"> if (!is<CSSPrimitiveValue>(value.get()))
</span><span class="cx"> return false;
</span><span class="cx">
</span><del>- CSSPrimitiveValue& primitiveValue = downcast<CSSPrimitiveValue>(*value);
- result->value = CSSCalcPrimitiveValue::create(&primitiveValue, parserValue->isInt);
</del><ins>+ result->value = CSSCalcPrimitiveValue::create(Ref<CSSPrimitiveValue>(downcast<CSSPrimitiveValue>(*value)), parserValue->isInt);
</ins><span class="cx">
</span><span class="cx"> ++*index;
</span><span class="cx"> return true;
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSMediaRulecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSMediaRule.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSMediaRule.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/CSSMediaRule.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #include "CSSRuleList.h"
</span><span class="cx"> #include "CSSStyleSheet.h"
</span><span class="cx"> #include "ExceptionCode.h"
</span><ins>+#include "MediaList.h"
</ins><span class="cx"> #include "StyleRule.h"
</span><span class="cx"> #include <wtf/text/StringBuilder.h>
</span><span class="cx">
</span><span class="lines">@@ -65,7 +66,7 @@
</span><span class="cx"> MediaList* CSSMediaRule::media() const
</span><span class="cx"> {
</span><span class="cx"> if (!mediaQueries())
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> if (!m_mediaCSSOMWrapper)
</span><span class="cx"> m_mediaCSSOMWrapper = MediaList::create(mediaQueries(), const_cast<CSSMediaRule*>(this));
</span><span class="cx"> return m_mediaCSSOMWrapper.get();
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSMediaRuleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSMediaRule.h (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSMediaRule.h        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/CSSMediaRule.h        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -20,14 +20,13 @@
</span><span class="cx"> * Boston, MA 02110-1301, USA.
</span><span class="cx"> */
</span><span class="cx">
</span><del>-#ifndef CSSMediaRule_h
-#define CSSMediaRule_h
</del><ins>+#pragma once
</ins><span class="cx">
</span><span class="cx"> #include "CSSGroupingRule.h"
</span><del>-#include "MediaList.h"
</del><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><ins>+class MediaList;
</ins><span class="cx"> class StyleRuleMedia;
</span><span class="cx">
</span><span class="cx"> class CSSMediaRule final : public CSSGroupingRule {
</span><span class="lines">@@ -54,5 +53,3 @@
</span><span class="cx"> } // namespace WebCore
</span><span class="cx">
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_CSS_RULE(CSSMediaRule, CSSRule::MEDIA_RULE)
</span><del>-
-#endif // CSSMediaRule_h
</del></span></pre></div>
<a id="trunkSourceWebCorecssCSSOMUtilsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSOMUtils.h (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSOMUtils.h        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/CSSOMUtils.h        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -28,12 +28,10 @@
</span><span class="cx"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx"> */
</span><span class="cx">
</span><del>-#ifndef CSSOMUtils_h
-#define CSSOMUtils_h
</del><ins>+#pragma once
</ins><span class="cx">
</span><del>-#include <unicode/utypes.h>
</del><ins>+#include <unicode/umachine.h>
</ins><span class="cx"> #include <wtf/Forward.h>
</span><del>-#include <wtf/Vector.h>
</del><span class="cx">
</span><span class="cx"> // Utilities for CSSOM http://dev.w3.org/csswg/cssom/
</span><span class="cx">
</span><span class="lines">@@ -46,5 +44,3 @@
</span><span class="cx"> void serializeString(const String&, StringBuilder&);
</span><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span><del>-
-#endif // CSSOMUtils_h
</del></span></pre></div>
<a id="trunkSourceWebCorecssCSSParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSParser.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSParser.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/CSSParser.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -12805,7 +12805,7 @@
</span><span class="cx"> popRuleData();
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><del>- auto rule = StyleRuleImport::create(url, media);
</del><ins>+ auto rule = StyleRuleImport::create(url, media.releaseNonNull());
</ins><span class="cx"> processAndAddNewRuleToSourceTreeIfNeeded();
</span><span class="cx"> return WTFMove(rule);
</span><span class="cx"> }
</span><span class="lines">@@ -12820,7 +12820,7 @@
</span><span class="cx"> // even when it is syntactically incorrect.
</span><span class="cx"> rule = StyleRuleMedia::create(MediaQuerySet::create(), emptyRules);
</span><span class="cx"> } else
</span><del>- rule = StyleRuleMedia::create(media, rules ? *rules : emptyRules);
</del><ins>+ rule = StyleRuleMedia::create(media.releaseNonNull(), rules ? *rules : emptyRules);
</ins><span class="cx"> processAndAddNewRuleToSourceTreeIfNeeded();
</span><span class="cx"> return rule.releaseNonNull();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSReflectValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSReflectValue.h (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSReflectValue.h        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/CSSReflectValue.h        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -23,12 +23,10 @@
</span><span class="cx"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx"> */
</span><span class="cx">
</span><del>-#ifndef CSSReflectValue_h
-#define CSSReflectValue_h
</del><ins>+#pragma once
</ins><span class="cx">
</span><span class="cx"> #include "CSSReflectionDirection.h"
</span><span class="cx"> #include "CSSValue.h"
</span><del>-#include <wtf/PassRefPtr.h>
</del><span class="cx"> #include <wtf/RefPtr.h>
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -71,5 +69,3 @@
</span><span class="cx"> } // namespace WebCore
</span><span class="cx">
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_CSS_VALUE(CSSReflectValue, isReflectValue())
</span><del>-
-#endif // CSSReflectValue_h
</del></span></pre></div>
<a id="trunkSourceWebCorecssCSSStyleSheetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSStyleSheet.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSStyleSheet.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/CSSStyleSheet.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -222,9 +222,9 @@
</span><span class="cx"> didMutate();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void CSSStyleSheet::setMediaQueries(PassRefPtr<MediaQuerySet> mediaQueries)
</del><ins>+void CSSStyleSheet::setMediaQueries(Ref<MediaQuerySet>&& mediaQueries)
</ins><span class="cx"> {
</span><del>- m_mediaQueries = mediaQueries;
</del><ins>+ m_mediaQueries = WTFMove(mediaQueries);
</ins><span class="cx"> if (m_mediaCSSOMWrapper && m_mediaQueries)
</span><span class="cx"> m_mediaCSSOMWrapper->reattach(m_mediaQueries.get());
</span><span class="cx">
</span><span class="lines">@@ -310,7 +310,7 @@
</span><span class="cx">
</span><span class="cx"> RuleMutationScope mutationScope(this, RuleInsertion, is<StyleRuleKeyframes>(*rule) ? downcast<StyleRuleKeyframes>(rule.get()) : nullptr);
</span><span class="cx">
</span><del>- bool success = m_contents.get().wrapperInsertRule(rule, index);
</del><ins>+ bool success = m_contents.get().wrapperInsertRule(rule.releaseNonNull(), index);
</ins><span class="cx"> if (!success) {
</span><span class="cx"> ec = HIERARCHY_REQUEST_ERR;
</span><span class="cx"> return 0;
</span><span class="lines">@@ -336,7 +336,7 @@
</span><span class="cx">
</span><span class="cx"> if (!m_childRuleCSSOMWrappers.isEmpty()) {
</span><span class="cx"> if (m_childRuleCSSOMWrappers[index])
</span><del>- m_childRuleCSSOMWrappers[index]->setParentStyleSheet(0);
</del><ins>+ m_childRuleCSSOMWrappers[index]->setParentStyleSheet(nullptr);
</ins><span class="cx"> m_childRuleCSSOMWrappers.remove(index);
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="lines">@@ -381,9 +381,9 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> MediaList* CSSStyleSheet::media() const
</span><del>-{
</del><ins>+{
</ins><span class="cx"> if (!m_mediaQueries)
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx">
</span><span class="cx"> if (!m_mediaCSSOMWrapper)
</span><span class="cx"> m_mediaCSSOMWrapper = MediaList::create(m_mediaQueries.get(), const_cast<CSSStyleSheet*>(this));
</span><span class="lines">@@ -392,7 +392,7 @@
</span><span class="cx">
</span><span class="cx"> CSSStyleSheet* CSSStyleSheet::parentStyleSheet() const
</span><span class="cx"> {
</span><del>- return m_ownerRule ? m_ownerRule->parentStyleSheet() : 0;
</del><ins>+ return m_ownerRule ? m_ownerRule->parentStyleSheet() : nullptr;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> Document* CSSStyleSheet::ownerDocument() const
</span><span class="lines">@@ -400,7 +400,7 @@
</span><span class="cx"> const CSSStyleSheet* root = this;
</span><span class="cx"> while (root->parentStyleSheet())
</span><span class="cx"> root = root->parentStyleSheet();
</span><del>- return root->ownerNode() ? &root->ownerNode()->document() : 0;
</del><ins>+ return root->ownerNode() ? &root->ownerNode()->document() : nullptr;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CSSStyleSheet::clearChildRuleCSSOMWrappers()
</span><span class="lines">@@ -418,7 +418,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> CSSStyleSheet::RuleMutationScope::RuleMutationScope(CSSRule* rule)
</span><del>- : m_styleSheet(rule ? rule->parentStyleSheet() : 0)
</del><ins>+ : m_styleSheet(rule ? rule->parentStyleSheet() : nullptr)
</ins><span class="cx"> , m_mutationType(OtherMutation)
</span><span class="cx"> , m_contentsWereClonedForMutation(ContentsWereNotClonedForMutation)
</span><span class="cx"> , m_insertedKeyframesRule(nullptr)
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSStyleSheeth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSStyleSheet.h (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSStyleSheet.h        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/CSSStyleSheet.h        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -22,7 +22,6 @@
</span><span class="cx"> #define CSSStyleSheet_h
</span><span class="cx">
</span><span class="cx"> #include "CSSParserMode.h"
</span><del>-#include "CSSRule.h"
</del><span class="cx"> #include "StyleSheet.h"
</span><span class="cx"> #include <memory>
</span><span class="cx"> #include <wtf/HashMap.h>
</span><span class="lines">@@ -85,7 +84,7 @@
</span><span class="cx"> void clearOwnerRule() { m_ownerRule = 0; }
</span><span class="cx"> Document* ownerDocument() const;
</span><span class="cx"> MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
</span><del>- void setMediaQueries(PassRefPtr<MediaQuerySet>);
</del><ins>+ void setMediaQueries(Ref<MediaQuerySet>&&);
</ins><span class="cx"> void setTitle(const String& title) { m_title = title; }
</span><span class="cx">
</span><span class="cx"> bool hadRulesMutation() const { return m_mutatedRules; }
</span></span></pre></div>
<a id="trunkSourceWebCorecssPropertySetCSSStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -24,6 +24,7 @@
</span><span class="cx">
</span><span class="cx"> #include "CSSCustomPropertyValue.h"
</span><span class="cx"> #include "CSSParser.h"
</span><ins>+#include "CSSRule.h"
</ins><span class="cx"> #include "CSSStyleSheet.h"
</span><span class="cx"> #include "HTMLNames.h"
</span><span class="cx"> #include "InspectorInstrumentation.h"
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleRulecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleRule.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleRule.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/StyleRule.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -32,6 +32,7 @@
</span><span class="cx"> #include "CSSStyleRule.h"
</span><span class="cx"> #include "CSSSupportsRule.h"
</span><span class="cx"> #include "CSSUnknownRule.h"
</span><ins>+#include "MediaList.h"
</ins><span class="cx"> #include "StyleProperties.h"
</span><span class="cx"> #include "StyleRuleImport.h"
</span><span class="cx"> #include "WebKitCSSRegionRule.h"
</span><span class="lines">@@ -45,14 +46,14 @@
</span><span class="cx">
</span><span class="cx"> COMPILE_ASSERT(sizeof(StyleRuleBase) == sizeof(SameSizeAsStyleRuleBase), StyleRuleBase_should_stay_small);
</span><span class="cx">
</span><del>-PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet) const
</del><ins>+RefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet) const
</ins><span class="cx"> {
</span><del>- return createCSSOMWrapper(parentSheet, 0);
</del><ins>+ return createCSSOMWrapper(parentSheet, nullptr);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSRule* parentRule) const
</del><ins>+RefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSRule* parentRule) const
</ins><span class="cx"> {
</span><del>- return createCSSOMWrapper(0, parentRule);
</del><ins>+ return createCSSOMWrapper(nullptr, parentRule);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void StyleRuleBase::destroy()
</span><span class="lines">@@ -329,9 +330,9 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-StyleRuleMedia::StyleRuleMedia(PassRefPtr<MediaQuerySet> media, Vector<RefPtr<StyleRuleBase>>& adoptRules)
</del><ins>+StyleRuleMedia::StyleRuleMedia(Ref<MediaQuerySet>&& media, Vector<RefPtr<StyleRuleBase>>& adoptRules)
</ins><span class="cx"> : StyleRuleGroup(Media, adoptRules)
</span><del>- , m_mediaQueries(media)
</del><ins>+ , m_mediaQueries(WTFMove(media))
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleRuleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleRule.h (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleRule.h        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/StyleRule.h        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -19,11 +19,9 @@
</span><span class="cx"> * Boston, MA 02110-1301, USA.
</span><span class="cx"> */
</span><span class="cx">
</span><del>-#ifndef StyleRule_h
-#define StyleRule_h
</del><ins>+#pragma once
</ins><span class="cx">
</span><span class="cx"> #include "CSSSelectorList.h"
</span><del>-#include "MediaList.h"
</del><span class="cx"> #include "StyleProperties.h"
</span><span class="cx"> #include <wtf/RefPtr.h>
</span><span class="cx"> #include <wtf/TypeCasts.h>
</span><span class="lines">@@ -33,6 +31,7 @@
</span><span class="cx"> class CSSRule;
</span><span class="cx"> class CSSStyleRule;
</span><span class="cx"> class CSSStyleSheet;
</span><ins>+class MediaQuerySet;
</ins><span class="cx"> class MutableStyleProperties;
</span><span class="cx"> class StyleProperties;
</span><span class="cx">
</span><span class="lines">@@ -82,8 +81,8 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // FIXME: There shouldn't be any need for the null parent version.
</span><del>- PassRefPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentSheet = 0) const;
- PassRefPtr<CSSRule> createCSSOMWrapper(CSSRule* parentRule) const;
</del><ins>+ RefPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentSheet = nullptr) const;
+ RefPtr<CSSRule> createCSSOMWrapper(CSSRule* parentRule) const;
</ins><span class="cx">
</span><span class="cx"> protected:
</span><span class="cx"> StyleRuleBase(Type type, signed sourceLine = 0) : m_type(type), m_sourceLine(sourceLine) { }
</span><span class="lines">@@ -193,9 +192,9 @@
</span><span class="cx">
</span><span class="cx"> class StyleRuleMedia : public StyleRuleGroup {
</span><span class="cx"> public:
</span><del>- static Ref<StyleRuleMedia> create(PassRefPtr<MediaQuerySet> media, Vector<RefPtr<StyleRuleBase>>& adoptRules)
</del><ins>+ static Ref<StyleRuleMedia> create(Ref<MediaQuerySet>&& media, Vector<RefPtr<StyleRuleBase>>& adoptRules)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new StyleRuleMedia(media, adoptRules));
</del><ins>+ return adoptRef(*new StyleRuleMedia(WTFMove(media), adoptRules));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
</span><span class="lines">@@ -203,7 +202,7 @@
</span><span class="cx"> Ref<StyleRuleMedia> copy() const { return adoptRef(*new StyleRuleMedia(*this)); }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- StyleRuleMedia(PassRefPtr<MediaQuerySet>, Vector<RefPtr<StyleRuleBase>>& adoptRules);
</del><ins>+ StyleRuleMedia(Ref<MediaQuerySet>&&, Vector<RefPtr<StyleRuleBase>>& adoptRules);
</ins><span class="cx"> StyleRuleMedia(const StyleRuleMedia&);
</span><span class="cx">
</span><span class="cx"> RefPtr<MediaQuerySet> m_mediaQueries;
</span><span class="lines">@@ -297,5 +296,3 @@
</span><span class="cx"> static bool isType(const WebCore::StyleRuleBase& rule) { return rule.isViewportRule(); }
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_END()
</span><span class="cx"> #endif // ENABLE(CSS_DEVICE_ADAPTATION)
</span><del>-
-#endif // StyleRule_h
</del></span></pre></div>
<a id="trunkSourceWebCorecssStyleRuleImportcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleRuleImport.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleRuleImport.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/StyleRuleImport.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -28,23 +28,24 @@
</span><span class="cx"> #include "CachedResourceRequest.h"
</span><span class="cx"> #include "CachedResourceRequestInitiators.h"
</span><span class="cx"> #include "Document.h"
</span><ins>+#include "MediaList.h"
</ins><span class="cx"> #include "SecurityOrigin.h"
</span><span class="cx"> #include "StyleSheetContents.h"
</span><span class="cx"> #include <wtf/StdLibExtras.h>
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-Ref<StyleRuleImport> StyleRuleImport::create(const String& href, PassRefPtr<MediaQuerySet> media)
</del><ins>+Ref<StyleRuleImport> StyleRuleImport::create(const String& href, Ref<MediaQuerySet>&& media)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new StyleRuleImport(href, media));
</del><ins>+ return adoptRef(*new StyleRuleImport(href, WTFMove(media)));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-StyleRuleImport::StyleRuleImport(const String& href, PassRefPtr<MediaQuerySet> media)
</del><ins>+StyleRuleImport::StyleRuleImport(const String& href, Ref<MediaQuerySet>&& media)
</ins><span class="cx"> : StyleRuleBase(Import, 0)
</span><span class="cx"> , m_parentStyleSheet(0)
</span><span class="cx"> , m_styleSheetClient(this)
</span><span class="cx"> , m_strHref(href)
</span><del>- , m_mediaQueries(media)
</del><ins>+ , m_mediaQueries(WTFMove(media))
</ins><span class="cx"> , m_cachedSheet(0)
</span><span class="cx"> , m_loading(false)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleRuleImporth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleRuleImport.h (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleRuleImport.h        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/StyleRuleImport.h        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -36,7 +36,7 @@
</span><span class="cx"> class StyleRuleImport : public StyleRuleBase {
</span><span class="cx"> WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>- static Ref<StyleRuleImport> create(const String& href, PassRefPtr<MediaQuerySet>);
</del><ins>+ static Ref<StyleRuleImport> create(const String& href, Ref<MediaQuerySet>&&);
</ins><span class="cx">
</span><span class="cx"> ~StyleRuleImport();
</span><span class="cx">
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx"> void setCSSStyleSheet(const String& href, const URL& baseURL, const String& charset, const CachedCSSStyleSheet*);
</span><span class="cx"> friend class ImportedStyleSheetClient;
</span><span class="cx">
</span><del>- StyleRuleImport(const String& href, PassRefPtr<MediaQuerySet>);
</del><ins>+ StyleRuleImport(const String& href, Ref<MediaQuerySet>&&);
</ins><span class="cx">
</span><span class="cx"> StyleSheetContents* m_parentStyleSheet;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleSheetContentscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleSheetContents.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleSheetContents.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/StyleSheetContents.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -129,13 +129,13 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void StyleSheetContents::parserAppendRule(PassRefPtr<StyleRuleBase> rule)
</del><ins>+void StyleSheetContents::parserAppendRule(Ref<StyleRuleBase>&& rule)
</ins><span class="cx"> {
</span><span class="cx"> ASSERT(!rule->isCharsetRule());
</span><del>- if (is<StyleRuleImport>(*rule)) {
</del><ins>+ if (is<StyleRuleImport>(rule)) {
</ins><span class="cx"> // Parser enforces that @import rules come before anything else except @charset.
</span><span class="cx"> ASSERT(m_childRules.isEmpty());
</span><del>- m_importRules.append(downcast<StyleRuleImport>(rule.get()));
</del><ins>+ m_importRules.append(downcast<StyleRuleImport>(rule.ptr()));
</ins><span class="cx"> m_importRules.last()->setParentStyleSheet(this);
</span><span class="cx"> m_importRules.last()->requestStyleSheet();
</span><span class="cx"> return;
</span><span class="lines">@@ -143,19 +143,19 @@
</span><span class="cx">
</span><span class="cx"> #if ENABLE(RESOLUTION_MEDIA_QUERY)
</span><span class="cx"> // Add warning message to inspector if dpi/dpcm values are used for screen media.
</span><del>- if (is<StyleRuleMedia>(*rule))
- reportMediaQueryWarningIfNeeded(singleOwnerDocument(), downcast<StyleRuleMedia>(*rule).mediaQueries());
</del><ins>+ if (is<StyleRuleMedia>(rule))
+ reportMediaQueryWarningIfNeeded(singleOwnerDocument(), downcast<StyleRuleMedia>(rule.get()).mediaQueries());
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> // NOTE: The selector list has to fit into RuleData. <http://webkit.org/b/118369>
</span><span class="cx"> // If we're adding a rule with a huge number of selectors, split it up into multiple rules
</span><del>- if (is<StyleRule>(*rule) && downcast<StyleRule>(*rule).selectorList().componentCount() > RuleData::maximumSelectorComponentCount) {
- Vector<RefPtr<StyleRule>> rules = downcast<StyleRule>(*rule).splitIntoMultipleRulesWithMaximumSelectorComponentCount(RuleData::maximumSelectorComponentCount);
</del><ins>+ if (is<StyleRule>(rule) && downcast<StyleRule>(rule.get()).selectorList().componentCount() > RuleData::maximumSelectorComponentCount) {
+ Vector<RefPtr<StyleRule>> rules = downcast<StyleRule>(rule.get()).splitIntoMultipleRulesWithMaximumSelectorComponentCount(RuleData::maximumSelectorComponentCount);
</ins><span class="cx"> m_childRules.appendVector(rules);
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- m_childRules.append(rule);
</del><ins>+ m_childRules.append(WTFMove(rule));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> StyleRuleBase* StyleSheetContents::ruleAt(unsigned index) const
</span><span class="lines">@@ -207,7 +207,7 @@
</span><span class="cx"> m_encodingFromCharsetRule = encoding;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool StyleSheetContents::wrapperInsertRule(PassRefPtr<StyleRuleBase> rule, unsigned index)
</del><ins>+bool StyleSheetContents::wrapperInsertRule(Ref<StyleRuleBase>&& rule, unsigned index)
</ins><span class="cx"> {
</span><span class="cx"> ASSERT(m_isMutable);
</span><span class="cx"> ASSERT_WITH_SECURITY_IMPLICATION(index <= ruleCount());
</span><span class="lines">@@ -226,24 +226,24 @@
</span><span class="cx">
</span><span class="cx"> if (childVectorIndex < m_importRules.size() || (childVectorIndex == m_importRules.size() && rule->isImportRule())) {
</span><span class="cx"> // Inserting non-import rule before @import is not allowed.
</span><del>- if (!is<StyleRuleImport>(*rule))
</del><ins>+ if (!is<StyleRuleImport>(rule))
</ins><span class="cx"> return false;
</span><del>- m_importRules.insert(childVectorIndex, downcast<StyleRuleImport>(rule.get()));
</del><ins>+ m_importRules.insert(childVectorIndex, downcast<StyleRuleImport>(rule.ptr()));
</ins><span class="cx"> m_importRules[childVectorIndex]->setParentStyleSheet(this);
</span><span class="cx"> m_importRules[childVectorIndex]->requestStyleSheet();
</span><span class="cx"> // FIXME: Stylesheet doesn't actually change meaningfully before the imported sheets are loaded.
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx"> // Inserting @import rule after a non-import rule is not allowed.
</span><del>- if (is<StyleRuleImport>(*rule))
</del><ins>+ if (is<StyleRuleImport>(rule))
</ins><span class="cx"> return false;
</span><span class="cx"> childVectorIndex -= m_importRules.size();
</span><span class="cx">
</span><span class="cx"> // If the number of selectors would overflow RuleData, we drop the operation.
</span><del>- if (is<StyleRule>(*rule) && downcast<StyleRule>(*rule).selectorList().componentCount() > RuleData::maximumSelectorComponentCount)
</del><ins>+ if (is<StyleRule>(rule) && downcast<StyleRule>(rule.get()).selectorList().componentCount() > RuleData::maximumSelectorComponentCount)
</ins><span class="cx"> return false;
</span><span class="cx">
</span><del>- m_childRules.insert(childVectorIndex, rule);
</del><ins>+ m_childRules.insert(childVectorIndex, WTFMove(rule));
</ins><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleSheetContentsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleSheetContents.h (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleSheetContents.h        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/css/StyleSheetContents.h        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx"> bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValidCSSHeader; }
</span><span class="cx">
</span><span class="cx"> void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri);
</span><del>- void parserAppendRule(PassRefPtr<StyleRuleBase>);
</del><ins>+ void parserAppendRule(Ref<StyleRuleBase>&&);
</ins><span class="cx"> void parserSetEncodingFromCharsetRule(const String& encoding);
</span><span class="cx"> void parserSetUsesRemUnits() { m_usesRemUnits = true; }
</span><span class="cx"> void parserSetUsesStyleBasedEditability() { m_usesStyleBasedEditability = true; }
</span><span class="lines">@@ -127,7 +127,7 @@
</span><span class="cx">
</span><span class="cx"> unsigned estimatedSizeInBytes() const;
</span><span class="cx">
</span><del>- bool wrapperInsertRule(PassRefPtr<StyleRuleBase>, unsigned index);
</del><ins>+ bool wrapperInsertRule(Ref<StyleRuleBase>&&, unsigned index);
</ins><span class="cx"> void wrapperDeleteRule(unsigned index);
</span><span class="cx">
</span><span class="cx"> Ref<StyleSheetContents> copy() const { return adoptRef(*new StyleSheetContents(*this)); }
</span></span></pre></div>
<a id="trunkSourceWebCoredomInlineStyleSheetOwnercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/InlineStyleSheetOwner.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/InlineStyleSheetOwner.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/dom/InlineStyleSheetOwner.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx"> m_loading = true;
</span><span class="cx">
</span><span class="cx"> m_sheet = CSSStyleSheet::createInline(element, URL(), m_startTextPosition, document.encoding());
</span><del>- m_sheet->setMediaQueries(mediaQueries.release());
</del><ins>+ m_sheet->setMediaQueries(mediaQueries.releaseNonNull());
</ins><span class="cx"> m_sheet->setTitle(element.title());
</span><span class="cx"> m_sheet->contents().parseStringAtPosition(text, m_startTextPosition, m_isParsingChildren);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorStyleSheetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp (201317 => 201318)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp        2016-05-24 05:19:00 UTC (rev 201317)
+++ trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp        2016-05-24 05:34:49 UTC (rev 201318)
</span><span class="lines">@@ -45,6 +45,7 @@
</span><span class="cx"> #include "HTMLStyleElement.h"
</span><span class="cx"> #include "InspectorCSSAgent.h"
</span><span class="cx"> #include "InspectorPageAgent.h"
</span><ins>+#include "MediaList.h"
</ins><span class="cx"> #include "Node.h"
</span><span class="cx"> #include "SVGElement.h"
</span><span class="cx"> #include "SVGNames.h"
</span></span></pre>
</div>
</div>
</body>
</html>