<!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>[200098] trunk/Source</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/200098">200098</a></dd>
<dt>Author</dt> <dd>antti@apple.com</dd>
<dt>Date</dt> <dd>2016-04-26 11:20:09 -0700 (Tue, 26 Apr 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>RenderElement::style() should return const RenderStyle
https://bugs.webkit.org/show_bug.cgi?id=157016

Reviewed by Geoff Garen.

Style should be changed via setStyle, not by mutating it directly.

Pulling this string turns RenderStyle const in many places.

* accessibility/AccessibilityObject.cpp:
(WebCore::startOfStyleRange):
* accessibility/atk/WebKitAccessibleInterfaceText.cpp:
(getAttributeSetForAccessibilityObject):
* bindings/objc/DOM.mm:
(-[DOMNode innerFrameQuad]):
(-[DOMNode computedFontSize]):
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::createPositionListForLayer):
(WebCore::positionOffsetValue):
(WebCore::ComputedStyleExtractor::currentColorOrValidColor):
(WebCore::getTransitionPropertyValue):
(WebCore::scrollSnapDestination):
(WebCore::scrollSnapPoints):
(WebCore::scrollSnapCoordinates):
(WebCore::logUnimplementedPropertyID):
(WebCore::fontFamilyFromStyle):
(WebCore::lineHeightFromStyle):
(WebCore::fontSizeFromStyle):
(WebCore::fontStyleFromStyle):
(WebCore::fontVariantFromStyle):
(WebCore::fontWeightFromStyle):
(WebCore::fontSynthesisFromStyle):
(WebCore::zoomAdjustedPaddingOrMarginPixelValue):
(WebCore::paddingOrMarginIsRendererDependent):
(WebCore::convertToRegionBreak):
(WebCore::isLayoutDependent):
(WebCore::updateStyleIfNeededForNode):
(WebCore::computeRenderStyleForProperty):
(WebCore::ComputedStyleExtractor::propertyValue):
(WebCore::CSSComputedStyleDeclaration::length):
(WebCore::CSSComputedStyleDeclaration::item):
(WebCore::ComputedStyleExtractor::propertyMatches):
* css/CSSComputedStyleDeclaration.h:
* css/CSSToLengthConversionData.cpp:
(WebCore::CSSToLengthConversionData::viewportWidthFactor):
(WebCore::CSSToLengthConversionData::viewportHeightFactor):
(WebCore::CSSToLengthConversionData::viewportMinFactor):
(WebCore::CSSToLengthConversionData::viewportMaxFactor):
* css/CSSToLengthConversionData.h:
(WebCore::CSSToLengthConversionData::CSSToLengthConversionData):
(WebCore::CSSToLengthConversionData::style):
(WebCore::CSSToLengthConversionData::rootStyle):
(WebCore::CSSToLengthConversionData::computingFontSize):
(WebCore::CSSToLengthConversionData::copyWithAdjustedZoom):
* css/CSSToStyleMap.cpp:
(WebCore::CSSToStyleMap::style):
(WebCore::CSSToStyleMap::rootElementStyle):
* css/CSSToStyleMap.h:
* css/MediaQueryEvaluator.cpp:
(WebCore::MediaQueryEvaluator::MediaQueryEvaluator):
* css/MediaQueryEvaluator.h:
* css/SVGCSSComputedStyleDeclaration.cpp:
(WebCore::strokeDashArrayToCSSValueList):
(WebCore::ComputedStyleExtractor::adjustSVGPaintForCurrentColor):
(WebCore::ComputedStyleExtractor::svgPropertyValue):
* css/SourceSizeList.cpp:
(WebCore::match):
(WebCore::defaultLength):
(WebCore::computeLength):
(WebCore::parseSizesAttribute):
* css/StyleBuilderCustom.h:
(WebCore::ApplyPropertyBorderImageModifier::applyValue):
(WebCore::ApplyPropertyBorderImageModifier::getValue):
(WebCore::StyleBuilderCustom::applyInheritClip):
(WebCore::StyleBuilderCustom::applyInheritCounter):
(WebCore::StyleBuilderCustom::applyValueContent):
(WebCore::StyleBuilderCustom::applyValueAlt):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::sweepMatchedPropertiesCache):
(WebCore::StyleResolver::State::State):
(WebCore::isAtShadowBoundary):
(WebCore::StyleResolver::styleForElement):
(WebCore::StyleResolver::keyframeStylesForAnimation):
(WebCore::StyleResolver::pseudoStyleForElement):
(WebCore::StyleResolver::applyProperty):
(WebCore::StyleResolver::checkForTextSizeAdjust):
(WebCore::StyleResolver::checkForZoomChange):
(WebCore::StyleResolver::checkForGenericFamilyChange):
* css/StyleResolver.h:
(WebCore::StyleResolver::style):
(WebCore::StyleResolver::parentStyle):
(WebCore::StyleResolver::rootElementStyle):
(WebCore::StyleResolver::element):
(WebCore::StyleResolver::document):
(WebCore::StyleResolver::documentSettings):
(WebCore::StyleResolver::State::State):
(WebCore::StyleResolver::State::takeStyle):
(WebCore::StyleResolver::State::parentStyle):
(WebCore::StyleResolver::State::rootElementStyle):
(WebCore::StyleResolver::State::regionForStyling):
(WebCore::StyleResolver::State::elementLinkState):
* dom/Document.cpp:
(WebCore::Document::updateLayoutIgnorePendingStylesheets):
(WebCore::Document::styleForElementIgnoringPendingStylesheets):
(WebCore::Document::setVisuallyOrdered):
(WebCore::Document::createParser):
* dom/Document.h:
* dom/Element.cpp:
(WebCore::Element::styleResolver):
(WebCore::Element::resolveStyle):
(WebCore::checkForEmptyStyleChange):
(WebCore::checkForSiblingStyleChanges):
(WebCore::beforeOrAfterPseudoElement):
(WebCore::Element::existingComputedStyle):
(WebCore::Element::resolveComputedStyle):
(WebCore::Element::computedStyle):
(WebCore::Element::didDetachRenderers):
(WebCore::Element::resolveCustomStyle):
* dom/Element.h:
* dom/Node.cpp:
(WebCore::computeEditabilityFromComputedStyle):
(WebCore::Node::pseudoAwareLastChild):
(WebCore::Node::computedStyle):
* dom/Node.h:
* dom/NodeRenderStyle.h:
(WebCore::Node::renderStyle):
* dom/PseudoElement.cpp:
(WebCore::PseudoElement::clearHostElement):
(WebCore::PseudoElement::resolveCustomStyle):
* dom/PseudoElement.h:
* editing/ApplyBlockElementCommand.cpp:
(WebCore::isNewLineAtPosition):
(WebCore::ApplyBlockElementCommand::renderStyleOfEnclosingTextNode):
(WebCore::ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded):
(WebCore::ApplyBlockElementCommand::endOfNextParagraphSplittingTextNodesIfNeeded):
* editing/ApplyBlockElementCommand.h:
* editing/EditingStyle.cpp:
(WebCore::EditingStyle::init):
(WebCore::EditingStyle::removeTextFillAndStrokeColorsIfNeeded):
* editing/EditingStyle.h:
* editing/Editor.h:
* editing/SimplifyMarkupCommand.cpp:
(WebCore::SimplifyMarkupCommand::doApply):
* editing/cocoa/EditorCocoa.mm:
(WebCore::Editor::styleForSelectionStart):
(WebCore::Editor::getTextDecorationAttributesRespectingTypingStyle):
* editing/ios/EditorIOS.mm:
(WebCore::Editor::fontForSelection):
(WebCore::Editor::fontAttributesForSelectionStart):
* editing/mac/EditorMac.mm:
(WebCore::Editor::fontForSelection):
(WebCore::Editor::fontAttributesForSelectionStart):
* html/HTMLTitleElement.cpp:
(WebCore::HTMLTitleElement::computedTextWithDirection):
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::FontProxy::fontsNeedUpdate):
(WebCore::CanvasRenderingContext2D::FontProxy::initialize):
(WebCore::CanvasRenderingContext2D::setFont):
(WebCore::CanvasRenderingContext2D::setTextBaseline):
(WebCore::CanvasRenderingContext2D::toTextDirection):
(WebCore::CanvasRenderingContext2D::drawTextInternal):
* html/canvas/CanvasRenderingContext2D.h:
* html/parser/HTMLResourcePreloader.cpp:
(WebCore::HTMLResourcePreloader::preload):
(WebCore::mediaAttributeMatches):
* html/shadow/SliderThumbElement.cpp:
(WebCore::RenderSliderThumb::RenderSliderThumb):
(WebCore::RenderSliderThumb::updateAppearance):
(WebCore::RenderSliderContainer::layout):
(WebCore::SliderThumbElement::hostInput):
(WebCore::SliderThumbElement::resolveCustomStyle):
(WebCore::SliderContainerElement::createElementRenderer):
(WebCore::SliderContainerElement::resolveCustomStyle):
* html/shadow/SliderThumbElement.h:
* html/shadow/TextControlInnerElements.cpp:
(WebCore::TextControlInnerElement::create):
(WebCore::TextControlInnerElement::resolveCustomStyle):
(WebCore::TextControlInnerTextElement::renderer):
(WebCore::TextControlInnerTextElement::resolveCustomStyle):
(WebCore::TextControlPlaceholderElement::TextControlPlaceholderElement):
(WebCore::TextControlPlaceholderElement::resolveCustomStyle):
* html/shadow/TextControlInnerElements.h:
* page/EventHandler.cpp:
(WebCore::EventHandler::selectCursor):
* page/animation/AnimationBase.cpp:
(WebCore::solveStepsFunction):
(WebCore::AnimationBase::AnimationBase):
* page/animation/AnimationBase.h:
(WebCore::AnimationBase::~AnimationBase):
(WebCore::AnimationBase::renderer):
(WebCore::AnimationBase::animation):
(WebCore::AnimationBase::setAnimation):
* page/animation/AnimationController.cpp:
(WebCore::AnimationController::cancelAnimations):
(WebCore::AnimationController::updateAnimations):
* page/animation/AnimationController.h:
* page/animation/CompositeAnimation.cpp:
(WebCore::CompositeAnimation::clearRenderer):
(WebCore::CompositeAnimation::updateTransitions):
(WebCore::CompositeAnimation::updateKeyframeAnimations):
(WebCore::CompositeAnimation::animate):
* page/animation/CompositeAnimation.h:
* page/animation/ImplicitAnimation.cpp:
(WebCore::ImplicitAnimation::ImplicitAnimation):
(WebCore::ImplicitAnimation::shouldSendEventForListener):
(WebCore::ImplicitAnimation::animate):
(WebCore::ImplicitAnimation::sendTransitionEvent):
(WebCore::ImplicitAnimation::reset):
* page/animation/ImplicitAnimation.h:
(WebCore::ImplicitAnimation::create):
* page/animation/KeyframeAnimation.cpp:
(WebCore::KeyframeAnimation::KeyframeAnimation):
(WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty):
(WebCore::KeyframeAnimation::animate):
* page/animation/KeyframeAnimation.h:
* page/ios/FrameIOS.mm:
(WebCore::ancestorRespondingToScrollWheelEvents):
* rendering/FlowThreadController.cpp:
(WebCore::FlowThreadController::styleDidChange):
* rendering/InlineFlowBox.cpp:
(WebCore::clipRectForNinePieceImageStrip):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::styleDidChange):
(WebCore::RenderBlock::lineHeight):
(WebCore::RenderBlock::firstLineBlock):
(WebCore::styleForFirstLetter):
(WebCore::RenderBlock::updateFirstLetterStyle):
(WebCore::RenderBlock::createFirstLetterRenderer):
* rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::adjustBlockChildForPagination):
(WebCore::calculateMinimumPageHeight):
(WebCore::RenderBlockFlow::adjustComputedFontSizes):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::styleDidChange):
(WebCore::RenderBox::borderRadii):
(WebCore::RenderBox::enclosingFloatPaintingLayer):
(WebCore::RenderBox::logicalVisualOverflowRectForPropagation):
(WebCore::RenderBox::visualOverflowRectForPropagation):
(WebCore::RenderBox::logicalLayoutOverflowRectForPropagation):
(WebCore::RenderBox::layoutOverflowRectForPropagation):
* rendering/RenderBox.h:
(WebCore::RenderBox::applyTopLeftLocationOffset):
(WebCore::RenderBox::hasRenderOverflow):
(WebCore::RenderBox::hasVisualOverflow):
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::backgroundRoundedRectAdjustedForBleedAvoidance):
(WebCore::applyBoxShadowForBackground):
* rendering/RenderButton.cpp:
(WebCore::RenderButton::addChild):
(WebCore::RenderButton::styleWillChange):
(WebCore::RenderButton::styleDidChange):
(WebCore::RenderButton::setupInnerStyle):
(WebCore::RenderButton::layout):
* rendering/RenderDeprecatedFlexibleBox.cpp:
(WebCore::RenderDeprecatedFlexibleBox::styleWillChange):
* rendering/RenderElement.cpp:
(WebCore::RenderElement::createFor):
(WebCore::RenderElement::uncachedFirstLineStyle):
(WebCore::RenderElement::cachedFirstLineStyle):
(WebCore::RenderElement::firstLineStyle):
(WebCore::RenderElement::styleWillChange):
(WebCore::RenderElement::addControlStatesForRenderer):
(WebCore::RenderElement::getCachedPseudoStyle):
(WebCore::RenderElement::getMutableCachedPseudoStyle):
(WebCore::RenderElement::getUncachedPseudoStyle):
(WebCore::RenderElement::paintOutline):
* rendering/RenderElement.h:
(WebCore::RenderElement::hasInitializedStyle):
(WebCore::RenderElement::style):
(WebCore::RenderElement::mutableStyle):
(WebCore::RenderElement::element):
(WebCore::RenderObject::isRenderInline):
(WebCore::RenderObject::style):
(WebCore::RenderObject::firstLineStyle):
* rendering/RenderEmbeddedObject.cpp:
(WebCore::RenderEmbeddedObject::layout):
* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::RenderFlowThread):
(WebCore::RenderFlowThread::createFlowThreadStyle):
* rendering/RenderFlowThread.h:
* rendering/RenderImage.cpp:
(WebCore::RenderImage::layoutShadowControls):
* rendering/RenderInline.cpp:
(WebCore::RenderInline::styleDidChange):
(WebCore::RenderInline::updateAlwaysCreateLineBoxes):
(WebCore::RenderInline::paintOutline):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::setupClipPath):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::paintScrollbar):
(WebCore::itemOffsetForAlignment):
(WebCore::RenderListBox::paintItemForeground):
(WebCore::RenderListBox::paintItemBackground):
* rendering/RenderListMarker.cpp:
(WebCore::RenderListMarker::updateMargins):
(WebCore::RenderListMarker::lineHeight):
* rendering/RenderMarquee.cpp:
(WebCore::RenderMarquee::computePosition):
(WebCore::RenderMarquee::updateMarqueeStyle):
* rendering/RenderMenuList.cpp:
(WebCore::RenderMenuList::adjustInnerStyle):
(RenderMenuList::updateOptionsWidth):
(RenderMenuList::itemStyle):
* rendering/RenderMultiColumnFlowThread.cpp:
(WebCore::isValidColumnSpanner):
* rendering/RenderMultiColumnSpannerPlaceholder.cpp:
(WebCore::RenderMultiColumnSpannerPlaceholder::createAnonymous):
* rendering/RenderMultiColumnSpannerPlaceholder.h:
* rendering/RenderNamedFlowFragment.cpp:
(WebCore::RenderNamedFlowFragment::checkRegionStyle):
(WebCore::RenderNamedFlowFragment::computeStyleInRegion):
* rendering/RenderNamedFlowFragment.h:
* rendering/RenderObject.cpp:
(WebCore::RenderObject::innerLineHeight):
(WebCore::decorationColor):
(WebCore::RenderObject::getTextDecorationColorsAndStyles):
* rendering/RenderObject.h:
(WebCore::RenderObject::minPreferredLogicalWidth):
(WebCore::RenderObject::maxPreferredLogicalWidth):
* rendering/RenderTable.cpp:
(WebCore::RenderTable::computePreferredLogicalWidths):
* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::paintRowGroupBorderIfRequired):
(WebCore::physicalBorderForDirection):
* rendering/RenderText.h:
(WebCore::RenderText::characterAt):
(WebCore::RenderText::style):
(WebCore::RenderText::firstLineStyle):
(WebCore::RenderText::getCachedPseudoStyle):
* rendering/RenderTextControl.cpp:
(WebCore::RenderTextControl::styleDidChange):
* rendering/RenderTextControlMultiLine.cpp:
(WebCore::RenderTextControlMultiLine::layoutSpecialExcludedChild):
* rendering/RenderTextControlSingleLine.cpp:
(WebCore::RenderTextControlSingleLine::layout):
(WebCore::RenderTextControlSingleLine::styleDidChange):
* rendering/RenderTextFragment.cpp:
(WebCore::RenderTextFragment::styleDidChange):
* rendering/RenderThemeGtk.cpp:
(WebCore::RenderThemeGtk::paintMediaToggleClosedCaptionsButton):
(WebCore::borderRadiiFromStyle):
(WebCore::RenderThemeGtk::paintMediaSliderTrack):
(WebCore::RenderThemeGtk::paintMediaSliderThumb):
(WebCore::RenderThemeGtk::paintMediaVolumeSliderTrack):
* rendering/SimpleLineLayoutFunctions.cpp:
(WebCore::SimpleLineLayout::paintFlow):
(WebCore::SimpleLineLayout::hitTestFlow):
* rendering/TextAutoSizing.cpp:
(WebCore::TextAutoSizingKey::TextAutoSizingKey):
* rendering/TextAutoSizing.h:
(WebCore::TextAutoSizingKey::style):
(WebCore::TextAutoSizingKey::isDeleted):
* rendering/TextPaintStyle.cpp:
(WebCore::computeTextSelectionPaintStyle):
* rendering/line/BreakingContext.h:
* rendering/mathml/RenderMathMLRoot.cpp:
(WebCore::RenderMathMLRoot::layout):
* rendering/style/RenderStyle.h:
(WebCore::RenderStyle::setColumnRuleWidth):
(WebCore::RenderStyle::resetColumnRule):
(WebCore::RenderStyle::setColumnSpan):
(WebCore::RenderStyle::inheritColumnPropertiesFrom):
(WebCore::RenderStyle::setTransform):
(WebCore::RenderStyle::setTransformOriginX):
(WebCore::RenderStyle::setTransformOriginY):
* rendering/svg/SVGInlineTextBox.cpp:
(WebCore::SVGInlineTextBox::positionForOffset):
(WebCore::SVGInlineTextBox::selectionRectForTextFragment):
(WebCore::SVGInlineTextBox::localSelectionRect):
(WebCore::SVGInlineTextBox::paintSelectionBackground):
(WebCore::SVGInlineTextBox::paint):
(WebCore::SVGInlineTextBox::acquirePaintingResource):
(WebCore::SVGInlineTextBox::releasePaintingResource):
(WebCore::SVGInlineTextBox::prepareGraphicsContextForTextPainting):
(WebCore::SVGInlineTextBox::restoreGraphicsContextAfterTextPainting):
(WebCore::SVGInlineTextBox::constructTextRun):
(WebCore::SVGInlineTextBox::paintDecorationWithStyle):
(WebCore::SVGInlineTextBox::paintTextWithShadows):
(WebCore::SVGInlineTextBox::paintText):
* rendering/svg/SVGInlineTextBox.h:
* rendering/svg/SVGPathData.cpp:
(WebCore::updatePathFromCircleElement):
(WebCore::updatePathFromEllipseElement):
(WebCore::updatePathFromRectElement):
* rendering/svg/SVGRenderingContext.cpp:
(WebCore::SVGRenderingContext::prepareToRenderSVGContent):
* style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::Parent::Parent):
(WebCore::Style::TreeResolver::popScope):
(WebCore::Style::TreeResolver::styleForElement):
(WebCore::Style::TreeResolver::pushParent):
(WebCore::Style::TreeResolver::resolveComposedTree):
* style/StyleTreeResolver.h:
(WebCore::Style::TreeResolver::scope):
* style/StyleUpdate.cpp:
(WebCore::Style::Update::textUpdate):
(WebCore::Style::Update::elementStyle):
(WebCore::Style::Update::addElement):
* style/StyleUpdate.h:
(WebCore::Style::Update::document):
* svg/SVGElement.cpp:
(WebCore::SVGElement::synchronizeSystemLanguage):
(WebCore::SVGElement::resolveCustomStyle):
(WebCore::SVGElement::setUseOverrideComputedStyle):
(WebCore::SVGElement::computedStyle):
* svg/SVGElement.h:
* svg/SVGElementRareData.h:
(WebCore::SVGElementRareData::ensureAnimatedSMILStyleProperties):
(WebCore::SVGElementRareData::overrideComputedStyle):
* svg/SVGGraphicsElement.cpp:
(WebCore::SVGGraphicsElement::animatedLocalTransform):
* svg/SVGLengthContext.cpp:
(WebCore::SVGLengthContext::convertValueFromPercentageToUserUnits):
(WebCore::renderStyleForLengthResolving):
(WebCore::SVGLengthContext::convertValueFromUserUnitsToEMS):
(WebCore::SVGLengthContext::convertValueFromEMSToUserUnits):
(WebCore::SVGLengthContext::convertValueFromUserUnitsToEXS):
(WebCore::SVGLengthContext::convertValueFromEXSToUserUnits):
* svg/SVGStopElement.cpp:
(WebCore::SVGStopElement::stopColorIncludingOpacity):
* svg/SVGTextElement.cpp:
(WebCore::SVGTextElement::animatedLocalTransform):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityObjectcpp">trunk/Source/WebCore/accessibility/AccessibilityObject.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityatkWebKitAccessibleInterfaceTextcpp">trunk/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceText.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityiosWebAccessibilityObjectWrapperIOSmm">trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm</a></li>
<li><a href="#trunkSourceWebCorebindingsobjcDOMmm">trunk/Source/WebCore/bindings/objc/DOM.mm</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="#trunkSourceWebCorecssCSSToLengthConversionDatacpp">trunk/Source/WebCore/css/CSSToLengthConversionData.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSToLengthConversionDatah">trunk/Source/WebCore/css/CSSToLengthConversionData.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="#trunkSourceWebCorecssMediaQueryEvaluatorcpp">trunk/Source/WebCore/css/MediaQueryEvaluator.cpp</a></li>
<li><a href="#trunkSourceWebCorecssMediaQueryEvaluatorh">trunk/Source/WebCore/css/MediaQueryEvaluator.h</a></li>
<li><a href="#trunkSourceWebCorecssSVGCSSComputedStyleDeclarationcpp">trunk/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp</a></li>
<li><a href="#trunkSourceWebCorecssSourceSizeListcpp">trunk/Source/WebCore/css/SourceSizeList.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleBuilderCustomh">trunk/Source/WebCore/css/StyleBuilderCustom.h</a></li>
<li><a href="#trunkSourceWebCorecssStyleResolvercpp">trunk/Source/WebCore/css/StyleResolver.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleResolverh">trunk/Source/WebCore/css/StyleResolver.h</a></li>
<li><a href="#trunkSourceWebCoredomDocumentcpp">trunk/Source/WebCore/dom/Document.cpp</a></li>
<li><a href="#trunkSourceWebCoredomDocumenth">trunk/Source/WebCore/dom/Document.h</a></li>
<li><a href="#trunkSourceWebCoredomElementcpp">trunk/Source/WebCore/dom/Element.cpp</a></li>
<li><a href="#trunkSourceWebCoredomElementh">trunk/Source/WebCore/dom/Element.h</a></li>
<li><a href="#trunkSourceWebCoredomNodecpp">trunk/Source/WebCore/dom/Node.cpp</a></li>
<li><a href="#trunkSourceWebCoredomNodeh">trunk/Source/WebCore/dom/Node.h</a></li>
<li><a href="#trunkSourceWebCoredomNodeRenderStyleh">trunk/Source/WebCore/dom/NodeRenderStyle.h</a></li>
<li><a href="#trunkSourceWebCoredomPseudoElementcpp">trunk/Source/WebCore/dom/PseudoElement.cpp</a></li>
<li><a href="#trunkSourceWebCoredomPseudoElementh">trunk/Source/WebCore/dom/PseudoElement.h</a></li>
<li><a href="#trunkSourceWebCoreeditingApplyBlockElementCommandcpp">trunk/Source/WebCore/editing/ApplyBlockElementCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingApplyBlockElementCommandh">trunk/Source/WebCore/editing/ApplyBlockElementCommand.h</a></li>
<li><a href="#trunkSourceWebCoreeditingEditingStylecpp">trunk/Source/WebCore/editing/EditingStyle.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingEditingStyleh">trunk/Source/WebCore/editing/EditingStyle.h</a></li>
<li><a href="#trunkSourceWebCoreeditingEditorh">trunk/Source/WebCore/editing/Editor.h</a></li>
<li><a href="#trunkSourceWebCoreeditingSimplifyMarkupCommandcpp">trunk/Source/WebCore/editing/SimplifyMarkupCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingcocoaEditorCocoamm">trunk/Source/WebCore/editing/cocoa/EditorCocoa.mm</a></li>
<li><a href="#trunkSourceWebCoreeditingiosEditorIOSmm">trunk/Source/WebCore/editing/ios/EditorIOS.mm</a></li>
<li><a href="#trunkSourceWebCoreeditingmacEditorMacmm">trunk/Source/WebCore/editing/mac/EditorMac.mm</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLTitleElementcpp">trunk/Source/WebCore/html/HTMLTitleElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasCanvasRenderingContext2Dcpp">trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasCanvasRenderingContext2Dh">trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.h</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLResourcePreloadercpp">trunk/Source/WebCore/html/parser/HTMLResourcePreloader.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlshadowSliderThumbElementcpp">trunk/Source/WebCore/html/shadow/SliderThumbElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlshadowSliderThumbElementh">trunk/Source/WebCore/html/shadow/SliderThumbElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlshadowTextControlInnerElementscpp">trunk/Source/WebCore/html/shadow/TextControlInnerElements.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlshadowTextControlInnerElementsh">trunk/Source/WebCore/html/shadow/TextControlInnerElements.h</a></li>
<li><a href="#trunkSourceWebCorepageEventHandlercpp">trunk/Source/WebCore/page/EventHandler.cpp</a></li>
<li><a href="#trunkSourceWebCorepageanimationAnimationBasecpp">trunk/Source/WebCore/page/animation/AnimationBase.cpp</a></li>
<li><a href="#trunkSourceWebCorepageanimationAnimationBaseh">trunk/Source/WebCore/page/animation/AnimationBase.h</a></li>
<li><a href="#trunkSourceWebCorepageanimationAnimationControllercpp">trunk/Source/WebCore/page/animation/AnimationController.cpp</a></li>
<li><a href="#trunkSourceWebCorepageanimationAnimationControllerh">trunk/Source/WebCore/page/animation/AnimationController.h</a></li>
<li><a href="#trunkSourceWebCorepageanimationCompositeAnimationcpp">trunk/Source/WebCore/page/animation/CompositeAnimation.cpp</a></li>
<li><a href="#trunkSourceWebCorepageanimationCompositeAnimationh">trunk/Source/WebCore/page/animation/CompositeAnimation.h</a></li>
<li><a href="#trunkSourceWebCorepageanimationImplicitAnimationcpp">trunk/Source/WebCore/page/animation/ImplicitAnimation.cpp</a></li>
<li><a href="#trunkSourceWebCorepageanimationImplicitAnimationh">trunk/Source/WebCore/page/animation/ImplicitAnimation.h</a></li>
<li><a href="#trunkSourceWebCorepageanimationKeyframeAnimationcpp">trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp</a></li>
<li><a href="#trunkSourceWebCorepageanimationKeyframeAnimationh">trunk/Source/WebCore/page/animation/KeyframeAnimation.h</a></li>
<li><a href="#trunkSourceWebCorepageiosFrameIOSmm">trunk/Source/WebCore/page/ios/FrameIOS.mm</a></li>
<li><a href="#trunkSourceWebCorerenderingFlowThreadControllercpp">trunk/Source/WebCore/rendering/FlowThreadController.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingInlineFlowBoxcpp">trunk/Source/WebCore/rendering/InlineFlowBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBlockcpp">trunk/Source/WebCore/rendering/RenderBlock.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBlockFlowcpp">trunk/Source/WebCore/rendering/RenderBlockFlow.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBoxcpp">trunk/Source/WebCore/rendering/RenderBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBoxh">trunk/Source/WebCore/rendering/RenderBox.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBoxModelObjectcpp">trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderButtoncpp">trunk/Source/WebCore/rendering/RenderButton.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderDeprecatedFlexibleBoxcpp">trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderElementcpp">trunk/Source/WebCore/rendering/RenderElement.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderElementh">trunk/Source/WebCore/rendering/RenderElement.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderEmbeddedObjectcpp">trunk/Source/WebCore/rendering/RenderEmbeddedObject.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderFlowThreadcpp">trunk/Source/WebCore/rendering/RenderFlowThread.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderFlowThreadh">trunk/Source/WebCore/rendering/RenderFlowThread.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderImagecpp">trunk/Source/WebCore/rendering/RenderImage.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderInlinecpp">trunk/Source/WebCore/rendering/RenderInline.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayercpp">trunk/Source/WebCore/rendering/RenderLayer.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderListBoxcpp">trunk/Source/WebCore/rendering/RenderListBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderListMarkercpp">trunk/Source/WebCore/rendering/RenderListMarker.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderMarqueecpp">trunk/Source/WebCore/rendering/RenderMarquee.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderMenuListcpp">trunk/Source/WebCore/rendering/RenderMenuList.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderMultiColumnFlowThreadcpp">trunk/Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderMultiColumnSpannerPlaceholdercpp">trunk/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderMultiColumnSpannerPlaceholderh">trunk/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderNamedFlowFragmentcpp">trunk/Source/WebCore/rendering/RenderNamedFlowFragment.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderNamedFlowFragmenth">trunk/Source/WebCore/rendering/RenderNamedFlowFragment.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderObjectcpp">trunk/Source/WebCore/rendering/RenderObject.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderObjecth">trunk/Source/WebCore/rendering/RenderObject.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderTablecpp">trunk/Source/WebCore/rendering/RenderTable.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderTableSectioncpp">trunk/Source/WebCore/rendering/RenderTableSection.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderTexth">trunk/Source/WebCore/rendering/RenderText.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderTextControlcpp">trunk/Source/WebCore/rendering/RenderTextControl.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderTextControlMultiLinecpp">trunk/Source/WebCore/rendering/RenderTextControlMultiLine.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderTextControlSingleLinecpp">trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderTextFragmentcpp">trunk/Source/WebCore/rendering/RenderTextFragment.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeGtkcpp">trunk/Source/WebCore/rendering/RenderThemeGtk.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeIOSmm">trunk/Source/WebCore/rendering/RenderThemeIOS.mm</a></li>
<li><a href="#trunkSourceWebCorerenderingSimpleLineLayoutFunctionscpp">trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingTextAutoSizingcpp">trunk/Source/WebCore/rendering/TextAutoSizing.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingTextAutoSizingh">trunk/Source/WebCore/rendering/TextAutoSizing.h</a></li>
<li><a href="#trunkSourceWebCorerenderingTextPaintStylecpp">trunk/Source/WebCore/rendering/TextPaintStyle.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderinglineBreakingContexth">trunk/Source/WebCore/rendering/line/BreakingContext.h</a></li>
<li><a href="#trunkSourceWebCorerenderingmathmlRenderMathMLRootcpp">trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingstyleRenderStyleh">trunk/Source/WebCore/rendering/style/RenderStyle.h</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgSVGInlineTextBoxcpp">trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgSVGInlineTextBoxh">trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.h</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgSVGPathDatacpp">trunk/Source/WebCore/rendering/svg/SVGPathData.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgSVGRenderingContextcpp">trunk/Source/WebCore/rendering/svg/SVGRenderingContext.cpp</a></li>
<li><a href="#trunkSourceWebCorestyleStyleTreeResolvercpp">trunk/Source/WebCore/style/StyleTreeResolver.cpp</a></li>
<li><a href="#trunkSourceWebCorestyleStyleTreeResolverh">trunk/Source/WebCore/style/StyleTreeResolver.h</a></li>
<li><a href="#trunkSourceWebCorestyleStyleUpdatecpp">trunk/Source/WebCore/style/StyleUpdate.cpp</a></li>
<li><a href="#trunkSourceWebCorestyleStyleUpdateh">trunk/Source/WebCore/style/StyleUpdate.h</a></li>
<li><a href="#trunkSourceWebCoresvgSVGElementcpp">trunk/Source/WebCore/svg/SVGElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGElementh">trunk/Source/WebCore/svg/SVGElement.h</a></li>
<li><a href="#trunkSourceWebCoresvgSVGElementRareDatah">trunk/Source/WebCore/svg/SVGElementRareData.h</a></li>
<li><a href="#trunkSourceWebCoresvgSVGGraphicsElementcpp">trunk/Source/WebCore/svg/SVGGraphicsElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGLengthContextcpp">trunk/Source/WebCore/svg/SVGLengthContext.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGStopElementcpp">trunk/Source/WebCore/svg/SVGStopElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGTextElementcpp">trunk/Source/WebCore/svg/SVGTextElement.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageiosWebPageIOSmm">trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/ChangeLog        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1,3 +1,428 @@
</span><ins>+2016-04-26  Antti Koivisto  &lt;antti@apple.com&gt;
+
+        RenderElement::style() should return const RenderStyle
+        https://bugs.webkit.org/show_bug.cgi?id=157016
+
+        Reviewed by Geoff Garen.
+
+        Style should be changed via setStyle, not by mutating it directly.
+
+        Pulling this string turns RenderStyle const in many places.
+
+        * accessibility/AccessibilityObject.cpp:
+        (WebCore::startOfStyleRange):
+        * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
+        (getAttributeSetForAccessibilityObject):
+        * bindings/objc/DOM.mm:
+        (-[DOMNode innerFrameQuad]):
+        (-[DOMNode computedFontSize]):
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::createPositionListForLayer):
+        (WebCore::positionOffsetValue):
+        (WebCore::ComputedStyleExtractor::currentColorOrValidColor):
+        (WebCore::getTransitionPropertyValue):
+        (WebCore::scrollSnapDestination):
+        (WebCore::scrollSnapPoints):
+        (WebCore::scrollSnapCoordinates):
+        (WebCore::logUnimplementedPropertyID):
+        (WebCore::fontFamilyFromStyle):
+        (WebCore::lineHeightFromStyle):
+        (WebCore::fontSizeFromStyle):
+        (WebCore::fontStyleFromStyle):
+        (WebCore::fontVariantFromStyle):
+        (WebCore::fontWeightFromStyle):
+        (WebCore::fontSynthesisFromStyle):
+        (WebCore::zoomAdjustedPaddingOrMarginPixelValue):
+        (WebCore::paddingOrMarginIsRendererDependent):
+        (WebCore::convertToRegionBreak):
+        (WebCore::isLayoutDependent):
+        (WebCore::updateStyleIfNeededForNode):
+        (WebCore::computeRenderStyleForProperty):
+        (WebCore::ComputedStyleExtractor::propertyValue):
+        (WebCore::CSSComputedStyleDeclaration::length):
+        (WebCore::CSSComputedStyleDeclaration::item):
+        (WebCore::ComputedStyleExtractor::propertyMatches):
+        * css/CSSComputedStyleDeclaration.h:
+        * css/CSSToLengthConversionData.cpp:
+        (WebCore::CSSToLengthConversionData::viewportWidthFactor):
+        (WebCore::CSSToLengthConversionData::viewportHeightFactor):
+        (WebCore::CSSToLengthConversionData::viewportMinFactor):
+        (WebCore::CSSToLengthConversionData::viewportMaxFactor):
+        * css/CSSToLengthConversionData.h:
+        (WebCore::CSSToLengthConversionData::CSSToLengthConversionData):
+        (WebCore::CSSToLengthConversionData::style):
+        (WebCore::CSSToLengthConversionData::rootStyle):
+        (WebCore::CSSToLengthConversionData::computingFontSize):
+        (WebCore::CSSToLengthConversionData::copyWithAdjustedZoom):
+        * css/CSSToStyleMap.cpp:
+        (WebCore::CSSToStyleMap::style):
+        (WebCore::CSSToStyleMap::rootElementStyle):
+        * css/CSSToStyleMap.h:
+        * css/MediaQueryEvaluator.cpp:
+        (WebCore::MediaQueryEvaluator::MediaQueryEvaluator):
+        * css/MediaQueryEvaluator.h:
+        * css/SVGCSSComputedStyleDeclaration.cpp:
+        (WebCore::strokeDashArrayToCSSValueList):
+        (WebCore::ComputedStyleExtractor::adjustSVGPaintForCurrentColor):
+        (WebCore::ComputedStyleExtractor::svgPropertyValue):
+        * css/SourceSizeList.cpp:
+        (WebCore::match):
+        (WebCore::defaultLength):
+        (WebCore::computeLength):
+        (WebCore::parseSizesAttribute):
+        * css/StyleBuilderCustom.h:
+        (WebCore::ApplyPropertyBorderImageModifier::applyValue):
+        (WebCore::ApplyPropertyBorderImageModifier::getValue):
+        (WebCore::StyleBuilderCustom::applyInheritClip):
+        (WebCore::StyleBuilderCustom::applyInheritCounter):
+        (WebCore::StyleBuilderCustom::applyValueContent):
+        (WebCore::StyleBuilderCustom::applyValueAlt):
+        * css/StyleResolver.cpp:
+        (WebCore::StyleResolver::sweepMatchedPropertiesCache):
+        (WebCore::StyleResolver::State::State):
+        (WebCore::isAtShadowBoundary):
+        (WebCore::StyleResolver::styleForElement):
+        (WebCore::StyleResolver::keyframeStylesForAnimation):
+        (WebCore::StyleResolver::pseudoStyleForElement):
+        (WebCore::StyleResolver::applyProperty):
+        (WebCore::StyleResolver::checkForTextSizeAdjust):
+        (WebCore::StyleResolver::checkForZoomChange):
+        (WebCore::StyleResolver::checkForGenericFamilyChange):
+        * css/StyleResolver.h:
+        (WebCore::StyleResolver::style):
+        (WebCore::StyleResolver::parentStyle):
+        (WebCore::StyleResolver::rootElementStyle):
+        (WebCore::StyleResolver::element):
+        (WebCore::StyleResolver::document):
+        (WebCore::StyleResolver::documentSettings):
+        (WebCore::StyleResolver::State::State):
+        (WebCore::StyleResolver::State::takeStyle):
+        (WebCore::StyleResolver::State::parentStyle):
+        (WebCore::StyleResolver::State::rootElementStyle):
+        (WebCore::StyleResolver::State::regionForStyling):
+        (WebCore::StyleResolver::State::elementLinkState):
+        * dom/Document.cpp:
+        (WebCore::Document::updateLayoutIgnorePendingStylesheets):
+        (WebCore::Document::styleForElementIgnoringPendingStylesheets):
+        (WebCore::Document::setVisuallyOrdered):
+        (WebCore::Document::createParser):
+        * dom/Document.h:
+        * dom/Element.cpp:
+        (WebCore::Element::styleResolver):
+        (WebCore::Element::resolveStyle):
+        (WebCore::checkForEmptyStyleChange):
+        (WebCore::checkForSiblingStyleChanges):
+        (WebCore::beforeOrAfterPseudoElement):
+        (WebCore::Element::existingComputedStyle):
+        (WebCore::Element::resolveComputedStyle):
+        (WebCore::Element::computedStyle):
+        (WebCore::Element::didDetachRenderers):
+        (WebCore::Element::resolveCustomStyle):
+        * dom/Element.h:
+        * dom/Node.cpp:
+        (WebCore::computeEditabilityFromComputedStyle):
+        (WebCore::Node::pseudoAwareLastChild):
+        (WebCore::Node::computedStyle):
+        * dom/Node.h:
+        * dom/NodeRenderStyle.h:
+        (WebCore::Node::renderStyle):
+        * dom/PseudoElement.cpp:
+        (WebCore::PseudoElement::clearHostElement):
+        (WebCore::PseudoElement::resolveCustomStyle):
+        * dom/PseudoElement.h:
+        * editing/ApplyBlockElementCommand.cpp:
+        (WebCore::isNewLineAtPosition):
+        (WebCore::ApplyBlockElementCommand::renderStyleOfEnclosingTextNode):
+        (WebCore::ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded):
+        (WebCore::ApplyBlockElementCommand::endOfNextParagraphSplittingTextNodesIfNeeded):
+        * editing/ApplyBlockElementCommand.h:
+        * editing/EditingStyle.cpp:
+        (WebCore::EditingStyle::init):
+        (WebCore::EditingStyle::removeTextFillAndStrokeColorsIfNeeded):
+        * editing/EditingStyle.h:
+        * editing/Editor.h:
+        * editing/SimplifyMarkupCommand.cpp:
+        (WebCore::SimplifyMarkupCommand::doApply):
+        * editing/cocoa/EditorCocoa.mm:
+        (WebCore::Editor::styleForSelectionStart):
+        (WebCore::Editor::getTextDecorationAttributesRespectingTypingStyle):
+        * editing/ios/EditorIOS.mm:
+        (WebCore::Editor::fontForSelection):
+        (WebCore::Editor::fontAttributesForSelectionStart):
+        * editing/mac/EditorMac.mm:
+        (WebCore::Editor::fontForSelection):
+        (WebCore::Editor::fontAttributesForSelectionStart):
+        * html/HTMLTitleElement.cpp:
+        (WebCore::HTMLTitleElement::computedTextWithDirection):
+        * html/canvas/CanvasRenderingContext2D.cpp:
+        (WebCore::CanvasRenderingContext2D::FontProxy::fontsNeedUpdate):
+        (WebCore::CanvasRenderingContext2D::FontProxy::initialize):
+        (WebCore::CanvasRenderingContext2D::setFont):
+        (WebCore::CanvasRenderingContext2D::setTextBaseline):
+        (WebCore::CanvasRenderingContext2D::toTextDirection):
+        (WebCore::CanvasRenderingContext2D::drawTextInternal):
+        * html/canvas/CanvasRenderingContext2D.h:
+        * html/parser/HTMLResourcePreloader.cpp:
+        (WebCore::HTMLResourcePreloader::preload):
+        (WebCore::mediaAttributeMatches):
+        * html/shadow/SliderThumbElement.cpp:
+        (WebCore::RenderSliderThumb::RenderSliderThumb):
+        (WebCore::RenderSliderThumb::updateAppearance):
+        (WebCore::RenderSliderContainer::layout):
+        (WebCore::SliderThumbElement::hostInput):
+        (WebCore::SliderThumbElement::resolveCustomStyle):
+        (WebCore::SliderContainerElement::createElementRenderer):
+        (WebCore::SliderContainerElement::resolveCustomStyle):
+        * html/shadow/SliderThumbElement.h:
+        * html/shadow/TextControlInnerElements.cpp:
+        (WebCore::TextControlInnerElement::create):
+        (WebCore::TextControlInnerElement::resolveCustomStyle):
+        (WebCore::TextControlInnerTextElement::renderer):
+        (WebCore::TextControlInnerTextElement::resolveCustomStyle):
+        (WebCore::TextControlPlaceholderElement::TextControlPlaceholderElement):
+        (WebCore::TextControlPlaceholderElement::resolveCustomStyle):
+        * html/shadow/TextControlInnerElements.h:
+        * page/EventHandler.cpp:
+        (WebCore::EventHandler::selectCursor):
+        * page/animation/AnimationBase.cpp:
+        (WebCore::solveStepsFunction):
+        (WebCore::AnimationBase::AnimationBase):
+        * page/animation/AnimationBase.h:
+        (WebCore::AnimationBase::~AnimationBase):
+        (WebCore::AnimationBase::renderer):
+        (WebCore::AnimationBase::animation):
+        (WebCore::AnimationBase::setAnimation):
+        * page/animation/AnimationController.cpp:
+        (WebCore::AnimationController::cancelAnimations):
+        (WebCore::AnimationController::updateAnimations):
+        * page/animation/AnimationController.h:
+        * page/animation/CompositeAnimation.cpp:
+        (WebCore::CompositeAnimation::clearRenderer):
+        (WebCore::CompositeAnimation::updateTransitions):
+        (WebCore::CompositeAnimation::updateKeyframeAnimations):
+        (WebCore::CompositeAnimation::animate):
+        * page/animation/CompositeAnimation.h:
+        * page/animation/ImplicitAnimation.cpp:
+        (WebCore::ImplicitAnimation::ImplicitAnimation):
+        (WebCore::ImplicitAnimation::shouldSendEventForListener):
+        (WebCore::ImplicitAnimation::animate):
+        (WebCore::ImplicitAnimation::sendTransitionEvent):
+        (WebCore::ImplicitAnimation::reset):
+        * page/animation/ImplicitAnimation.h:
+        (WebCore::ImplicitAnimation::create):
+        * page/animation/KeyframeAnimation.cpp:
+        (WebCore::KeyframeAnimation::KeyframeAnimation):
+        (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty):
+        (WebCore::KeyframeAnimation::animate):
+        * page/animation/KeyframeAnimation.h:
+        * page/ios/FrameIOS.mm:
+        (WebCore::ancestorRespondingToScrollWheelEvents):
+        * rendering/FlowThreadController.cpp:
+        (WebCore::FlowThreadController::styleDidChange):
+        * rendering/InlineFlowBox.cpp:
+        (WebCore::clipRectForNinePieceImageStrip):
+        * rendering/RenderBlock.cpp:
+        (WebCore::RenderBlock::styleDidChange):
+        (WebCore::RenderBlock::lineHeight):
+        (WebCore::RenderBlock::firstLineBlock):
+        (WebCore::styleForFirstLetter):
+        (WebCore::RenderBlock::updateFirstLetterStyle):
+        (WebCore::RenderBlock::createFirstLetterRenderer):
+        * rendering/RenderBlockFlow.cpp:
+        (WebCore::RenderBlockFlow::adjustBlockChildForPagination):
+        (WebCore::calculateMinimumPageHeight):
+        (WebCore::RenderBlockFlow::adjustComputedFontSizes):
+        * rendering/RenderBox.cpp:
+        (WebCore::RenderBox::styleDidChange):
+        (WebCore::RenderBox::borderRadii):
+        (WebCore::RenderBox::enclosingFloatPaintingLayer):
+        (WebCore::RenderBox::logicalVisualOverflowRectForPropagation):
+        (WebCore::RenderBox::visualOverflowRectForPropagation):
+        (WebCore::RenderBox::logicalLayoutOverflowRectForPropagation):
+        (WebCore::RenderBox::layoutOverflowRectForPropagation):
+        * rendering/RenderBox.h:
+        (WebCore::RenderBox::applyTopLeftLocationOffset):
+        (WebCore::RenderBox::hasRenderOverflow):
+        (WebCore::RenderBox::hasVisualOverflow):
+        * rendering/RenderBoxModelObject.cpp:
+        (WebCore::RenderBoxModelObject::backgroundRoundedRectAdjustedForBleedAvoidance):
+        (WebCore::applyBoxShadowForBackground):
+        * rendering/RenderButton.cpp:
+        (WebCore::RenderButton::addChild):
+        (WebCore::RenderButton::styleWillChange):
+        (WebCore::RenderButton::styleDidChange):
+        (WebCore::RenderButton::setupInnerStyle):
+        (WebCore::RenderButton::layout):
+        * rendering/RenderDeprecatedFlexibleBox.cpp:
+        (WebCore::RenderDeprecatedFlexibleBox::styleWillChange):
+        * rendering/RenderElement.cpp:
+        (WebCore::RenderElement::createFor):
+        (WebCore::RenderElement::uncachedFirstLineStyle):
+        (WebCore::RenderElement::cachedFirstLineStyle):
+        (WebCore::RenderElement::firstLineStyle):
+        (WebCore::RenderElement::styleWillChange):
+        (WebCore::RenderElement::addControlStatesForRenderer):
+        (WebCore::RenderElement::getCachedPseudoStyle):
+        (WebCore::RenderElement::getMutableCachedPseudoStyle):
+        (WebCore::RenderElement::getUncachedPseudoStyle):
+        (WebCore::RenderElement::paintOutline):
+        * rendering/RenderElement.h:
+        (WebCore::RenderElement::hasInitializedStyle):
+        (WebCore::RenderElement::style):
+        (WebCore::RenderElement::mutableStyle):
+        (WebCore::RenderElement::element):
+        (WebCore::RenderObject::isRenderInline):
+        (WebCore::RenderObject::style):
+        (WebCore::RenderObject::firstLineStyle):
+        * rendering/RenderEmbeddedObject.cpp:
+        (WebCore::RenderEmbeddedObject::layout):
+        * rendering/RenderFlowThread.cpp:
+        (WebCore::RenderFlowThread::RenderFlowThread):
+        (WebCore::RenderFlowThread::createFlowThreadStyle):
+        * rendering/RenderFlowThread.h:
+        * rendering/RenderImage.cpp:
+        (WebCore::RenderImage::layoutShadowControls):
+        * rendering/RenderInline.cpp:
+        (WebCore::RenderInline::styleDidChange):
+        (WebCore::RenderInline::updateAlwaysCreateLineBoxes):
+        (WebCore::RenderInline::paintOutline):
+        * rendering/RenderLayer.cpp:
+        (WebCore::RenderLayer::setupClipPath):
+        * rendering/RenderListBox.cpp:
+        (WebCore::RenderListBox::paintScrollbar):
+        (WebCore::itemOffsetForAlignment):
+        (WebCore::RenderListBox::paintItemForeground):
+        (WebCore::RenderListBox::paintItemBackground):
+        * rendering/RenderListMarker.cpp:
+        (WebCore::RenderListMarker::updateMargins):
+        (WebCore::RenderListMarker::lineHeight):
+        * rendering/RenderMarquee.cpp:
+        (WebCore::RenderMarquee::computePosition):
+        (WebCore::RenderMarquee::updateMarqueeStyle):
+        * rendering/RenderMenuList.cpp:
+        (WebCore::RenderMenuList::adjustInnerStyle):
+        (RenderMenuList::updateOptionsWidth):
+        (RenderMenuList::itemStyle):
+        * rendering/RenderMultiColumnFlowThread.cpp:
+        (WebCore::isValidColumnSpanner):
+        * rendering/RenderMultiColumnSpannerPlaceholder.cpp:
+        (WebCore::RenderMultiColumnSpannerPlaceholder::createAnonymous):
+        * rendering/RenderMultiColumnSpannerPlaceholder.h:
+        * rendering/RenderNamedFlowFragment.cpp:
+        (WebCore::RenderNamedFlowFragment::checkRegionStyle):
+        (WebCore::RenderNamedFlowFragment::computeStyleInRegion):
+        * rendering/RenderNamedFlowFragment.h:
+        * rendering/RenderObject.cpp:
+        (WebCore::RenderObject::innerLineHeight):
+        (WebCore::decorationColor):
+        (WebCore::RenderObject::getTextDecorationColorsAndStyles):
+        * rendering/RenderObject.h:
+        (WebCore::RenderObject::minPreferredLogicalWidth):
+        (WebCore::RenderObject::maxPreferredLogicalWidth):
+        * rendering/RenderTable.cpp:
+        (WebCore::RenderTable::computePreferredLogicalWidths):
+        * rendering/RenderTableSection.cpp:
+        (WebCore::RenderTableSection::paintRowGroupBorderIfRequired):
+        (WebCore::physicalBorderForDirection):
+        * rendering/RenderText.h:
+        (WebCore::RenderText::characterAt):
+        (WebCore::RenderText::style):
+        (WebCore::RenderText::firstLineStyle):
+        (WebCore::RenderText::getCachedPseudoStyle):
+        * rendering/RenderTextControl.cpp:
+        (WebCore::RenderTextControl::styleDidChange):
+        * rendering/RenderTextControlMultiLine.cpp:
+        (WebCore::RenderTextControlMultiLine::layoutSpecialExcludedChild):
+        * rendering/RenderTextControlSingleLine.cpp:
+        (WebCore::RenderTextControlSingleLine::layout):
+        (WebCore::RenderTextControlSingleLine::styleDidChange):
+        * rendering/RenderTextFragment.cpp:
+        (WebCore::RenderTextFragment::styleDidChange):
+        * rendering/RenderThemeGtk.cpp:
+        (WebCore::RenderThemeGtk::paintMediaToggleClosedCaptionsButton):
+        (WebCore::borderRadiiFromStyle):
+        (WebCore::RenderThemeGtk::paintMediaSliderTrack):
+        (WebCore::RenderThemeGtk::paintMediaSliderThumb):
+        (WebCore::RenderThemeGtk::paintMediaVolumeSliderTrack):
+        * rendering/SimpleLineLayoutFunctions.cpp:
+        (WebCore::SimpleLineLayout::paintFlow):
+        (WebCore::SimpleLineLayout::hitTestFlow):
+        * rendering/TextAutoSizing.cpp:
+        (WebCore::TextAutoSizingKey::TextAutoSizingKey):
+        * rendering/TextAutoSizing.h:
+        (WebCore::TextAutoSizingKey::style):
+        (WebCore::TextAutoSizingKey::isDeleted):
+        * rendering/TextPaintStyle.cpp:
+        (WebCore::computeTextSelectionPaintStyle):
+        * rendering/line/BreakingContext.h:
+        * rendering/mathml/RenderMathMLRoot.cpp:
+        (WebCore::RenderMathMLRoot::layout):
+        * rendering/style/RenderStyle.h:
+        (WebCore::RenderStyle::setColumnRuleWidth):
+        (WebCore::RenderStyle::resetColumnRule):
+        (WebCore::RenderStyle::setColumnSpan):
+        (WebCore::RenderStyle::inheritColumnPropertiesFrom):
+        (WebCore::RenderStyle::setTransform):
+        (WebCore::RenderStyle::setTransformOriginX):
+        (WebCore::RenderStyle::setTransformOriginY):
+        * rendering/svg/SVGInlineTextBox.cpp:
+        (WebCore::SVGInlineTextBox::positionForOffset):
+        (WebCore::SVGInlineTextBox::selectionRectForTextFragment):
+        (WebCore::SVGInlineTextBox::localSelectionRect):
+        (WebCore::SVGInlineTextBox::paintSelectionBackground):
+        (WebCore::SVGInlineTextBox::paint):
+        (WebCore::SVGInlineTextBox::acquirePaintingResource):
+        (WebCore::SVGInlineTextBox::releasePaintingResource):
+        (WebCore::SVGInlineTextBox::prepareGraphicsContextForTextPainting):
+        (WebCore::SVGInlineTextBox::restoreGraphicsContextAfterTextPainting):
+        (WebCore::SVGInlineTextBox::constructTextRun):
+        (WebCore::SVGInlineTextBox::paintDecorationWithStyle):
+        (WebCore::SVGInlineTextBox::paintTextWithShadows):
+        (WebCore::SVGInlineTextBox::paintText):
+        * rendering/svg/SVGInlineTextBox.h:
+        * rendering/svg/SVGPathData.cpp:
+        (WebCore::updatePathFromCircleElement):
+        (WebCore::updatePathFromEllipseElement):
+        (WebCore::updatePathFromRectElement):
+        * rendering/svg/SVGRenderingContext.cpp:
+        (WebCore::SVGRenderingContext::prepareToRenderSVGContent):
+        * style/StyleTreeResolver.cpp:
+        (WebCore::Style::TreeResolver::Parent::Parent):
+        (WebCore::Style::TreeResolver::popScope):
+        (WebCore::Style::TreeResolver::styleForElement):
+        (WebCore::Style::TreeResolver::pushParent):
+        (WebCore::Style::TreeResolver::resolveComposedTree):
+        * style/StyleTreeResolver.h:
+        (WebCore::Style::TreeResolver::scope):
+        * style/StyleUpdate.cpp:
+        (WebCore::Style::Update::textUpdate):
+        (WebCore::Style::Update::elementStyle):
+        (WebCore::Style::Update::addElement):
+        * style/StyleUpdate.h:
+        (WebCore::Style::Update::document):
+        * svg/SVGElement.cpp:
+        (WebCore::SVGElement::synchronizeSystemLanguage):
+        (WebCore::SVGElement::resolveCustomStyle):
+        (WebCore::SVGElement::setUseOverrideComputedStyle):
+        (WebCore::SVGElement::computedStyle):
+        * svg/SVGElement.h:
+        * svg/SVGElementRareData.h:
+        (WebCore::SVGElementRareData::ensureAnimatedSMILStyleProperties):
+        (WebCore::SVGElementRareData::overrideComputedStyle):
+        * svg/SVGGraphicsElement.cpp:
+        (WebCore::SVGGraphicsElement::animatedLocalTransform):
+        * svg/SVGLengthContext.cpp:
+        (WebCore::SVGLengthContext::convertValueFromPercentageToUserUnits):
+        (WebCore::renderStyleForLengthResolving):
+        (WebCore::SVGLengthContext::convertValueFromUserUnitsToEMS):
+        (WebCore::SVGLengthContext::convertValueFromEMSToUserUnits):
+        (WebCore::SVGLengthContext::convertValueFromUserUnitsToEXS):
+        (WebCore::SVGLengthContext::convertValueFromEXSToUserUnits):
+        * svg/SVGStopElement.cpp:
+        (WebCore::SVGStopElement::stopColorIncludingOpacity):
+        * svg/SVGTextElement.cpp:
+        (WebCore::SVGTextElement::animatedLocalTransform):
+
</ins><span class="cx"> 2016-04-26  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Make FontPlatformData immutable
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityObject.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityObject.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1134,7 +1134,7 @@
</span><span class="cx"> {
</span><span class="cx">     RenderObject* renderer = visiblePos.deepEquivalent().deprecatedNode()-&gt;renderer();
</span><span class="cx">     RenderObject* startRenderer = renderer;
</span><del>-    RenderStyle* style = &amp;renderer-&gt;style();
</del><ins>+    auto* style = &amp;renderer-&gt;style();
</ins><span class="cx"> 
</span><span class="cx">     // traverse backward by renderer to look for style change
</span><span class="cx">     for (RenderObject* r = renderer-&gt;previousInPreOrder(); r; r = r-&gt;previousInPreOrder()) {
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityatkWebKitAccessibleInterfaceTextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceText.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceText.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceText.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx">         return 0;
</span><span class="cx"> 
</span><span class="cx">     RenderObject* renderer = object-&gt;renderer();
</span><del>-    RenderStyle* style = &amp;renderer-&gt;style();
</del><ins>+    auto* style = &amp;renderer-&gt;style();
</ins><span class="cx"> 
</span><span class="cx">     AtkAttributeSet* result = nullptr;
</span><span class="cx">     GUniquePtr&lt;gchar&gt; buffer(g_strdup_printf(&quot;%i&quot;, style-&gt;fontSize()));
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityiosWebAccessibilityObjectWrapperIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1990,7 +1990,7 @@
</span><span class="cx"> 
</span><span class="cx"> static void AXAttributeStringSetStyle(NSMutableAttributedString* attrString, RenderObject* renderer, NSRange range)
</span><span class="cx"> {
</span><del>-    RenderStyle&amp; style = renderer-&gt;style();
</del><ins>+    auto&amp; style = renderer-&gt;style();
</ins><span class="cx">     
</span><span class="cx">     // set basic font info
</span><span class="cx">     AXAttributeStringSetFont(attrString, style.fontCascade().primaryFont().getCTFont(), range);
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsobjcDOMmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/objc/DOM.mm (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/objc/DOM.mm        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/bindings/objc/DOM.mm        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -499,7 +499,7 @@
</span><span class="cx">     if (!renderer)
</span><span class="cx">         return emptyQuad();
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = renderer-&gt;style();
</del><ins>+    auto&amp; style = renderer-&gt;style();
</ins><span class="cx">     IntRect boundingBox = renderer-&gt;absoluteBoundingBoxRect(true /* use transforms*/);
</span><span class="cx"> 
</span><span class="cx">     boundingBox.move(style.borderLeftWidth(), style.borderTopWidth());
</span><span class="lines">@@ -513,7 +513,7 @@
</span><span class="cx"> - (float)computedFontSize
</span><span class="cx"> {
</span><span class="cx">     WebCore::Node *node = core(self);
</span><del>-    RenderStyle *style = node-&gt;renderStyle();
</del><ins>+    auto *style = node-&gt;renderStyle();
</ins><span class="cx">     if (!style)
</span><span class="cx">         return 0.0f;
</span><span class="cx">     return style-&gt;fontDescription().computedSize();
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -700,7 +700,7 @@
</span><span class="cx">     return positionList;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static RefPtr&lt;CSSValue&gt; positionOffsetValue(RenderStyle&amp; style, CSSPropertyID propertyID)
</del><ins>+static RefPtr&lt;CSSValue&gt; positionOffsetValue(const RenderStyle&amp; style, CSSPropertyID propertyID)
</ins><span class="cx"> {
</span><span class="cx">     Length length;
</span><span class="cx">     switch (propertyID) {
</span><span class="lines">@@ -737,7 +737,7 @@
</span><span class="cx">     return CSSValuePool::singleton().createIdentifierValue(CSSValueAuto);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;CSSPrimitiveValue&gt; ComputedStyleExtractor::currentColorOrValidColor(RenderStyle* style, const Color&amp; color) const
</del><ins>+RefPtr&lt;CSSPrimitiveValue&gt; ComputedStyleExtractor::currentColorOrValidColor(const RenderStyle* style, const Color&amp; 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">@@ -1143,7 +1143,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_SCROLL_SNAP)
</span><del>-static Ref&lt;CSSValueList&gt; scrollSnapDestination(RenderStyle&amp; style, const LengthSize&amp; destination)
</del><ins>+static Ref&lt;CSSValueList&gt; scrollSnapDestination(const RenderStyle&amp; style, const LengthSize&amp; destination)
</ins><span class="cx"> {
</span><span class="cx">     auto list = CSSValueList::createSpaceSeparated();
</span><span class="cx">     list.get().append(zoomAdjustedPixelValueForLength(destination.width(), style));
</span><span class="lines">@@ -1151,7 +1151,7 @@
</span><span class="cx">     return list;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSValue&gt; scrollSnapPoints(RenderStyle&amp; style, const ScrollSnapPoints* points)
</del><ins>+static Ref&lt;CSSValue&gt; scrollSnapPoints(const RenderStyle&amp; style, const ScrollSnapPoints* points)
</ins><span class="cx"> {
</span><span class="cx">     if (!points)
</span><span class="cx">         return CSSValuePool::singleton().createIdentifierValue(CSSValueNone);
</span><span class="lines">@@ -1166,7 +1166,7 @@
</span><span class="cx">     return WTFMove(list);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSValue&gt; scrollSnapCoordinates(RenderStyle&amp; style, const Vector&lt;LengthSize&gt;&amp; coordinates)
</del><ins>+static Ref&lt;CSSValue&gt; scrollSnapCoordinates(const RenderStyle&amp; style, const Vector&lt;LengthSize&gt;&amp; coordinates)
</ins><span class="cx"> {
</span><span class="cx">     if (coordinates.isEmpty())
</span><span class="cx">         return CSSValuePool::singleton().createIdentifierValue(CSSValueNone);
</span><span class="lines">@@ -1807,7 +1807,7 @@
</span><span class="cx">     LOG_ERROR(&quot;WebKit does not yet implement getComputedStyle for '%s'.&quot;, getPropertyName(propertyID));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSValueList&gt; fontFamilyFromStyle(RenderStyle* style)
</del><ins>+static Ref&lt;CSSValueList&gt; fontFamilyFromStyle(const RenderStyle* style)
</ins><span class="cx"> {
</span><span class="cx">     auto list = CSSValueList::createCommaSeparated();
</span><span class="cx">     for (unsigned i = 0; i &lt; style-&gt;fontCascade().familyCount(); ++i)
</span><span class="lines">@@ -1815,7 +1815,7 @@
</span><span class="cx">     return list;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSPrimitiveValue&gt; lineHeightFromStyle(RenderStyle&amp; style)
</del><ins>+static Ref&lt;CSSPrimitiveValue&gt; lineHeightFromStyle(const RenderStyle&amp; style)
</ins><span class="cx"> {
</span><span class="cx">     Length length = style.lineHeight();
</span><span class="cx">     if (length.isNegative()) // If true, line-height not set; use the font's line spacing.
</span><span class="lines">@@ -1830,19 +1830,19 @@
</span><span class="cx">     return zoomAdjustedPixelValue(floatValueForLength(length, 0), style);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSPrimitiveValue&gt; fontSizeFromStyle(RenderStyle&amp; style)
</del><ins>+static Ref&lt;CSSPrimitiveValue&gt; fontSizeFromStyle(const RenderStyle&amp; style)
</ins><span class="cx"> {
</span><span class="cx">     return zoomAdjustedPixelValue(style.fontDescription().computedSize(), style);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSPrimitiveValue&gt; fontStyleFromStyle(RenderStyle* style)
</del><ins>+static Ref&lt;CSSPrimitiveValue&gt; fontStyleFromStyle(const RenderStyle* style)
</ins><span class="cx"> {
</span><span class="cx">     if (style-&gt;fontDescription().italic())
</span><span class="cx">         return CSSValuePool::singleton().createIdentifierValue(CSSValueItalic);
</span><span class="cx">     return CSSValuePool::singleton().createIdentifierValue(CSSValueNormal);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSValue&gt; fontVariantFromStyle(RenderStyle* style)
</del><ins>+static Ref&lt;CSSValue&gt; fontVariantFromStyle(const RenderStyle* style)
</ins><span class="cx"> {
</span><span class="cx">     if (style-&gt;fontDescription().variantSettings().isAllNormal())
</span><span class="cx">         return CSSValuePool::singleton().createIdentifierValue(CSSValueNormal);
</span><span class="lines">@@ -2029,7 +2029,7 @@
</span><span class="cx">     return WTFMove(list);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSPrimitiveValue&gt; fontWeightFromStyle(RenderStyle* style)
</del><ins>+static Ref&lt;CSSPrimitiveValue&gt; fontWeightFromStyle(const RenderStyle* style)
</ins><span class="cx"> {
</span><span class="cx">     switch (style-&gt;fontDescription().weight()) {
</span><span class="cx">     case FontWeight100:
</span><span class="lines">@@ -2055,7 +2055,7 @@
</span><span class="cx">     return CSSValuePool::singleton().createIdentifierValue(CSSValueNormal);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSValue&gt; fontSynthesisFromStyle(RenderStyle&amp; style)
</del><ins>+static Ref&lt;CSSValue&gt; fontSynthesisFromStyle(const RenderStyle&amp; style)
</ins><span class="cx"> {
</span><span class="cx">     if (style.fontDescription().fontSynthesis() == FontSynthesisNone)
</span><span class="cx">         return CSSValuePool::singleton().createIdentifierValue(CSSValueNone);
</span><span class="lines">@@ -2072,7 +2072,7 @@
</span><span class="cx"> typedef LayoutUnit (RenderBoxModelObject::*RenderBoxComputedCSSValueGetter)() const;
</span><span class="cx"> 
</span><span class="cx"> template&lt;RenderStyleLengthGetter lengthGetter, RenderBoxComputedCSSValueGetter computedCSSValueGetter&gt;
</span><del>-inline RefPtr&lt;CSSValue&gt; zoomAdjustedPaddingOrMarginPixelValue(RenderStyle&amp; style, RenderObject* renderer)
</del><ins>+inline RefPtr&lt;CSSValue&gt; zoomAdjustedPaddingOrMarginPixelValue(const RenderStyle&amp; style, RenderObject* renderer)
</ins><span class="cx"> {
</span><span class="cx">     Length unzoomzedLength = (style.*lengthGetter)();
</span><span class="cx">     if (!is&lt;RenderBox&gt;(renderer) || unzoomzedLength.isFixed())
</span><span class="lines">@@ -2081,7 +2081,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;RenderStyleLengthGetter lengthGetter&gt;
</span><del>-inline bool paddingOrMarginIsRendererDependent(RenderStyle* style, RenderObject* renderer)
</del><ins>+inline bool paddingOrMarginIsRendererDependent(const RenderStyle* style, RenderObject* renderer)
</ins><span class="cx"> {
</span><span class="cx">     if (!renderer || !renderer-&gt;isBox())
</span><span class="cx">         return false;
</span><span class="lines">@@ -2139,7 +2139,7 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">     
</span><del>-static bool isLayoutDependent(CSSPropertyID propertyID, RenderStyle* style, RenderObject* renderer)
</del><ins>+static bool isLayoutDependent(CSSPropertyID propertyID, const RenderStyle* style, RenderObject* renderer)
</ins><span class="cx"> {
</span><span class="cx">     switch (propertyID) {
</span><span class="cx">     case CSSPropertyWidth:
</span><span class="lines">@@ -2267,7 +2267,7 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static inline RenderStyle* computeRenderStyleForProperty(Node* styledNode, PseudoId pseudoElementSpecifier, CSSPropertyID propertyID, std::unique_ptr&lt;RenderStyle&gt;&amp; ownedStyle)
</del><ins>+static inline const RenderStyle* computeRenderStyleForProperty(Node* styledNode, PseudoId pseudoElementSpecifier, CSSPropertyID propertyID, std::unique_ptr&lt;RenderStyle&gt;&amp; ownedStyle)
</ins><span class="cx"> {
</span><span class="cx">     RenderObject* renderer = styledNode-&gt;renderer();
</span><span class="cx"> 
</span><span class="lines">@@ -2373,7 +2373,7 @@
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span><span class="cx">     std::unique_ptr&lt;RenderStyle&gt; ownedStyle;
</span><del>-    RenderStyle* style = nullptr;
</del><ins>+    const RenderStyle* style = nullptr;
</ins><span class="cx">     RenderObject* renderer = nullptr;
</span><span class="cx">     bool forceFullLayout = false;
</span><span class="cx">     if (updateLayout) {
</span><span class="lines">@@ -3861,7 +3861,7 @@
</span><span class="cx">     if (!node)
</span><span class="cx">         return 0;
</span><span class="cx"> 
</span><del>-    RenderStyle* style = node-&gt;computedStyle(m_pseudoElementSpecifier);
</del><ins>+    auto* style = node-&gt;computedStyle(m_pseudoElementSpecifier);
</ins><span class="cx">     if (!style)
</span><span class="cx">         return 0;
</span><span class="cx"> 
</span><span class="lines">@@ -3880,7 +3880,7 @@
</span><span class="cx">     if (!node)
</span><span class="cx">         return emptyString();
</span><span class="cx"> 
</span><del>-    RenderStyle* style = node-&gt;computedStyle(m_pseudoElementSpecifier);
</del><ins>+    auto* style = node-&gt;computedStyle(m_pseudoElementSpecifier);
</ins><span class="cx">     if (!style)
</span><span class="cx">         return emptyString();
</span><span class="cx">     
</span><span class="lines">@@ -3899,7 +3899,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (propertyID == CSSPropertyFontSize &amp;&amp; is&lt;CSSPrimitiveValue&gt;(*value) &amp;&amp; m_node) {
</span><span class="cx">         m_node-&gt;document().updateLayoutIgnorePendingStylesheets();
</span><del>-        if (RenderStyle* style = m_node-&gt;computedStyle(m_pseudoElementSpecifier)) {
</del><ins>+        if (auto* style = m_node-&gt;computedStyle(m_pseudoElementSpecifier)) {
</ins><span class="cx">             if (CSSValueID sizeIdentifier = style-&gt;fontDescription().keywordSizeAsIdentifier()) {
</span><span class="cx">                 auto&amp; primitiveValue = downcast&lt;CSSPrimitiveValue&gt;(*value);
</span><span class="cx">                 if (primitiveValue.isValueID() &amp;&amp; primitiveValue.getValueID() == sizeIdentifier)
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -70,10 +70,10 @@
</span><span class="cx">     Node* styledNode() const;
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;CSSValue&gt; svgPropertyValue(CSSPropertyID, EUpdateLayout) const;
</span><del>-    RefPtr&lt;SVGPaint&gt; adjustSVGPaintForCurrentColor(PassRefPtr&lt;SVGPaint&gt;, RenderStyle*) const;
</del><ins>+    RefPtr&lt;SVGPaint&gt; adjustSVGPaintForCurrentColor(PassRefPtr&lt;SVGPaint&gt;, const RenderStyle*) const;
</ins><span class="cx"> 
</span><span class="cx">     static Ref&lt;CSSValue&gt; valueForShadow(const ShadowData*, CSSPropertyID, const RenderStyle&amp;, AdjustPixelValuesForComputedStyle = AdjustPixelValues);
</span><del>-    RefPtr&lt;CSSPrimitiveValue&gt; currentColorOrValidColor(RenderStyle*, const Color&amp;) const;
</del><ins>+    RefPtr&lt;CSSPrimitiveValue&gt; currentColorOrValidColor(const RenderStyle*, const Color&amp;) const;
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;CSSValueList&gt; getCSSPropertyValuesForShorthandProperties(const StylePropertyShorthand&amp;) const;
</span><span class="cx">     RefPtr&lt;CSSValueList&gt; getCSSPropertyValuesForSidesShorthand(const StylePropertyShorthand&amp;) const;
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSToLengthConversionDatacpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSToLengthConversionData.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSToLengthConversionData.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/CSSToLengthConversionData.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx"> double CSSToLengthConversionData::viewportWidthFactor() const
</span><span class="cx"> {
</span><span class="cx">     if (m_style &amp;&amp; !m_computingFontSize)
</span><del>-        m_style-&gt;setHasViewportUnits();
</del><ins>+        const_cast&lt;RenderStyle*&gt;(m_style)-&gt;setHasViewportUnits();
</ins><span class="cx"> 
</span><span class="cx">     if (!m_renderView)
</span><span class="cx">         return 0;
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx"> double CSSToLengthConversionData::viewportHeightFactor() const
</span><span class="cx"> {
</span><span class="cx">     if (m_style &amp;&amp; !m_computingFontSize)
</span><del>-        m_style-&gt;setHasViewportUnits();
</del><ins>+        const_cast&lt;RenderStyle*&gt;(m_style)-&gt;setHasViewportUnits();
</ins><span class="cx"> 
</span><span class="cx">     if (!m_renderView)
</span><span class="cx">         return 0;
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx"> double CSSToLengthConversionData::viewportMinFactor() const
</span><span class="cx"> {
</span><span class="cx">     if (m_style &amp;&amp; !m_computingFontSize)
</span><del>-        m_style-&gt;setHasViewportUnits();
</del><ins>+        const_cast&lt;RenderStyle*&gt;(m_style)-&gt;setHasViewportUnits();
</ins><span class="cx"> 
</span><span class="cx">     if (!m_renderView)
</span><span class="cx">         return 0;
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx"> double CSSToLengthConversionData::viewportMaxFactor() const
</span><span class="cx"> {
</span><span class="cx">     if (m_style &amp;&amp; !m_computingFontSize)
</span><del>-        m_style-&gt;setHasViewportUnits();
</del><ins>+        const_cast&lt;RenderStyle*&gt;(m_style)-&gt;setHasViewportUnits();
</ins><span class="cx"> 
</span><span class="cx">     if (!m_renderView)
</span><span class="cx">         return 0;
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSToLengthConversionDatah"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSToLengthConversionData.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSToLengthConversionData.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/CSSToLengthConversionData.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> 
</span><span class="cx"> class CSSToLengthConversionData {
</span><span class="cx"> public:
</span><del>-    CSSToLengthConversionData(RenderStyle* style, const RenderStyle* rootStyle, const RenderView* renderView, float zoom, bool computingFontSize = false)
</del><ins>+    CSSToLengthConversionData(const RenderStyle* style, const RenderStyle* rootStyle, const RenderView* renderView, float zoom, bool computingFontSize = false)
</ins><span class="cx">         : m_style(style)
</span><span class="cx">         , m_rootStyle(rootStyle)
</span><span class="cx">         , m_renderView(renderView)
</span><span class="lines">@@ -52,7 +52,7 @@
</span><span class="cx">         ASSERT(zoom &gt; 0);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    CSSToLengthConversionData(RenderStyle* style, const RenderStyle* rootStyle, const RenderView* renderView, bool computingFontSize = false)
</del><ins>+    CSSToLengthConversionData(const RenderStyle* style, const RenderStyle* rootStyle, const RenderView* renderView, bool computingFontSize = false)
</ins><span class="cx">         : m_style(style)
</span><span class="cx">         , m_rootStyle(rootStyle)
</span><span class="cx">         , m_renderView(renderView)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx">     {
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    RenderStyle* style() const { return m_style; }
</del><ins>+    const RenderStyle* style() const { return m_style; }
</ins><span class="cx">     const RenderStyle* rootStyle() const { return m_rootStyle; }
</span><span class="cx">     float zoom() const;
</span><span class="cx">     bool computingFontSize() const { return m_computingFontSize; }
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    RenderStyle* m_style;
</del><ins>+    const RenderStyle* m_style;
</ins><span class="cx">     const RenderStyle* m_rootStyle;
</span><span class="cx">     const RenderView* m_renderView;
</span><span class="cx">     float m_zoom;
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSToStyleMapcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSToStyleMap.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSToStyleMap.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/CSSToStyleMap.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx">     return m_resolver-&gt;style();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle* CSSToStyleMap::rootElementStyle() const
</del><ins>+const RenderStyle* CSSToStyleMap::rootElementStyle() const
</ins><span class="cx"> {
</span><span class="cx">     return m_resolver-&gt;rootElementStyle();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSToStyleMaph"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSToStyleMap.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSToStyleMap.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/CSSToStyleMap.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx">     // similar to how PaintInfo/LayoutState cache values needed for
</span><span class="cx">     // the current paint/layout.
</span><span class="cx">     RenderStyle* style() const;
</span><del>-    RenderStyle* rootElementStyle() const;
</del><ins>+    const RenderStyle* rootElementStyle() const;
</ins><span class="cx">     bool useSVGZoomRules() const;
</span><span class="cx"> 
</span><span class="cx">     // FIXME: This should be part of some sort of StyleImageCache object which
</span></span></pre></div>
<a id="trunkSourceWebCorecssMediaQueryEvaluatorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/MediaQueryEvaluator.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/MediaQueryEvaluator.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/MediaQueryEvaluator.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -85,10 +85,10 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-MediaQueryEvaluator::MediaQueryEvaluator(const String&amp; acceptedMediaType, Frame* frame, RenderStyle* style)
</del><ins>+MediaQueryEvaluator::MediaQueryEvaluator(const String&amp; acceptedMediaType, Frame* frame, const RenderStyle* style)
</ins><span class="cx">     : m_mediaType(acceptedMediaType)
</span><span class="cx">     , m_frame(frame)
</span><del>-    , m_style(WTFMove(style))
</del><ins>+    , m_style(style)
</ins><span class="cx">     , m_expResult(false) // doesn't matter when we have m_frame and m_style
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssMediaQueryEvaluatorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/MediaQueryEvaluator.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/MediaQueryEvaluator.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/MediaQueryEvaluator.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx"> 
</span><span class="cx">     /** Creates evaluator which evaluates full media queries
</span><span class="cx">      */
</span><del>-    MediaQueryEvaluator(const String&amp; acceptedMediaType, Frame*, RenderStyle*);
</del><ins>+    MediaQueryEvaluator(const String&amp; acceptedMediaType, Frame*, const RenderStyle*);
</ins><span class="cx"> 
</span><span class="cx">     ~MediaQueryEvaluator();
</span><span class="cx"> 
</span><span class="lines">@@ -99,7 +99,7 @@
</span><span class="cx"> private:
</span><span class="cx">     String m_mediaType;
</span><span class="cx">     Frame* m_frame { nullptr }; // not owned
</span><del>-    RenderStyle* m_style { nullptr };
</del><ins>+    const RenderStyle* m_style { nullptr };
</ins><span class="cx">     bool m_expResult;
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorecssSVGCSSComputedStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -93,7 +93,7 @@
</span><span class="cx">     return list;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;SVGPaint&gt; ComputedStyleExtractor::adjustSVGPaintForCurrentColor(PassRefPtr&lt;SVGPaint&gt; newPaint, RenderStyle* style) const
</del><ins>+RefPtr&lt;SVGPaint&gt; ComputedStyleExtractor::adjustSVGPaintForCurrentColor(PassRefPtr&lt;SVGPaint&gt; newPaint, const RenderStyle* style) const
</ins><span class="cx"> {
</span><span class="cx">     RefPtr&lt;SVGPaint&gt; paint = newPaint;
</span><span class="cx">     if (paint-&gt;paintType() == SVGPaint::SVG_PAINTTYPE_CURRENTCOLOR || paint-&gt;paintType() == SVGPaint::SVG_PAINTTYPE_URI_CURRENTCOLOR)
</span><span class="lines">@@ -111,7 +111,7 @@
</span><span class="cx">     if (updateLayout)
</span><span class="cx">         node-&gt;document().updateLayout();
</span><span class="cx"> 
</span><del>-    RenderStyle* style = node-&gt;computedStyle();
</del><ins>+    auto* style = node-&gt;computedStyle();
</ins><span class="cx">     if (!style)
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorecssSourceSizeListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/SourceSizeList.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/SourceSizeList.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/SourceSizeList.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-static bool match(std::unique_ptr&lt;MediaQueryExp&gt;&amp;&amp; expression, RenderStyle&amp; style, Frame* frame)
</del><ins>+static bool match(std::unique_ptr&lt;MediaQueryExp&gt;&amp;&amp; expression, const RenderStyle&amp; style, Frame* frame)
</ins><span class="cx"> {
</span><span class="cx">     if (expression-&gt;mediaFeature().isEmpty())
</span><span class="cx">         return true;
</span><span class="lines">@@ -47,12 +47,12 @@
</span><span class="cx">     return mediaQueryEvaluator.eval(mediaQuerySet.get());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static float defaultLength(RenderStyle&amp; style, RenderView* view)
</del><ins>+static float defaultLength(const RenderStyle&amp; style, RenderView* view)
</ins><span class="cx"> {
</span><span class="cx">     return clampTo&lt;float&gt;(CSSPrimitiveValue::computeNonCalcLengthDouble(CSSToLengthConversionData(&amp;style, &amp;style, view), CSSPrimitiveValue::CSS_VW, 100.0));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static float computeLength(CSSValue* value, RenderStyle&amp; style, RenderView* view)
</del><ins>+static float computeLength(CSSValue* value, const RenderStyle&amp; style, RenderView* view)
</ins><span class="cx"> {
</span><span class="cx">     CSSToLengthConversionData conversionData(&amp;style, &amp;style, view);
</span><span class="cx">     if (is&lt;CSSPrimitiveValue&gt;(value)) {
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!view)
</span><span class="cx">         return 0;
</span><del>-    RenderStyle&amp; style = view-&gt;style();
</del><ins>+    auto&amp; style = view-&gt;style();
</ins><span class="cx">     for (auto&amp; sourceSize : CSSParser(CSSStrictMode).parseSizesAttribute(sizesAttribute)) {
</span><span class="cx">         if (match(WTFMove(sourceSize.expression), style, frame))
</span><span class="cx">             return computeLength(sourceSize.length.get(), style, view);
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleBuilderCustomh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleBuilderCustom.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleBuilderCustom.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/StyleBuilderCustom.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -575,7 +575,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    static const NinePieceImage&amp; getValue(RenderStyle* style)
</del><ins>+    static const NinePieceImage&amp; getValue(const RenderStyle* style)
</ins><span class="cx">     {
</span><span class="cx">         return type == BorderImage ? style-&gt;borderImage() : style-&gt;maskBoxImage();
</span><span class="cx">     }
</span><span class="lines">@@ -664,7 +664,7 @@
</span><span class="cx"> 
</span><span class="cx"> inline void StyleBuilderCustom::applyInheritClip(StyleResolver&amp; styleResolver)
</span><span class="cx"> {
</span><del>-    RenderStyle* parentStyle = styleResolver.parentStyle();
</del><ins>+    auto* parentStyle = styleResolver.parentStyle();
</ins><span class="cx">     if (!parentStyle-&gt;hasClip())
</span><span class="cx">         return applyInitialClip(styleResolver);
</span><span class="cx">     styleResolver.style()-&gt;setClip(parentStyle-&gt;clipTop(), parentStyle-&gt;clipRight(), parentStyle-&gt;clipBottom(), parentStyle-&gt;clipLeft());
</span><span class="lines">@@ -1052,7 +1052,7 @@
</span><span class="cx"> inline void StyleBuilderCustom::applyInheritCounter(StyleResolver&amp; styleResolver)
</span><span class="cx"> {
</span><span class="cx">     CounterDirectiveMap&amp; map = styleResolver.style()-&gt;accessCounterDirectives();
</span><del>-    for (auto&amp; keyValue : styleResolver.parentStyle()-&gt;accessCounterDirectives()) {
</del><ins>+    for (auto&amp; keyValue : const_cast&lt;RenderStyle*&gt;(styleResolver.parentStyle())-&gt;accessCounterDirectives()) {
</ins><span class="cx">         CounterDirectives&amp; directives = map.add(keyValue.key, CounterDirectives()).iterator-&gt;value;
</span><span class="cx">         if (counterBehavior == Reset)
</span><span class="cx">             directives.inheritReset(keyValue.value);
</span><span class="lines">@@ -1337,7 +1337,7 @@
</span><span class="cx">             if (styleResolver.style()-&gt;styleType() == NOPSEUDO)
</span><span class="cx">                 styleResolver.style()-&gt;setUnique();
</span><span class="cx">             else
</span><del>-                styleResolver.parentStyle()-&gt;setUnique();
</del><ins>+                const_cast&lt;RenderStyle*&gt;(styleResolver.parentStyle())-&gt;setUnique();
</ins><span class="cx">             QualifiedName attr(nullAtom, contentValue.getStringValue().impl(), nullAtom);
</span><span class="cx">             const AtomicString&amp; value = styleResolver.element()-&gt;getAttribute(attr);
</span><span class="cx">             styleResolver.style()-&gt;setContent(value.isNull() ? emptyAtom : value.impl(), didSet);
</span><span class="lines">@@ -1706,7 +1706,7 @@
</span><span class="cx">         if (styleResolver.style()-&gt;styleType() == NOPSEUDO)
</span><span class="cx">             styleResolver.style()-&gt;setUnique();
</span><span class="cx">         else
</span><del>-            styleResolver.parentStyle()-&gt;setUnique();
</del><ins>+            const_cast&lt;RenderStyle*&gt;(styleResolver.parentStyle())-&gt;setUnique();
</ins><span class="cx"> 
</span><span class="cx">         QualifiedName attr(nullAtom, primitiveValue.getStringValue(), nullAtom);
</span><span class="cx">         const AtomicString&amp; value = styleResolver.element()-&gt;getAttribute(attr);
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleResolvercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleResolver.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleResolver.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/StyleResolver.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -336,7 +336,7 @@
</span><span class="cx">     m_matchedPropertiesCacheAdditionsSinceLastSweep = 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-StyleResolver::State::State(const Element&amp; element, RenderStyle* parentStyle, RenderStyle* documentElementStyle, const RenderRegion* regionForStyling, const SelectorFilter* selectorFilter)
</del><ins>+StyleResolver::State::State(const Element&amp; element, const RenderStyle* parentStyle, const RenderStyle* documentElementStyle, const RenderRegion* regionForStyling, const SelectorFilter* selectorFilter)
</ins><span class="cx">     : m_element(&amp;element)
</span><span class="cx">     , m_parentStyle(parentStyle)
</span><span class="cx">     , m_regionForStyling(regionForStyling)
</span><span class="lines">@@ -380,7 +380,7 @@
</span><span class="cx">     return parentNode &amp;&amp; parentNode-&gt;isShadowRoot();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-ElementStyle StyleResolver::styleForElement(const Element&amp; element, RenderStyle* parentStyle, RuleMatchingBehavior matchingBehavior, const RenderRegion* regionForStyling, const SelectorFilter* selectorFilter)
</del><ins>+ElementStyle StyleResolver::styleForElement(const Element&amp; element, const RenderStyle* parentStyle, RuleMatchingBehavior matchingBehavior, const RenderRegion* regionForStyling, const SelectorFilter* selectorFilter)
</ins><span class="cx"> {
</span><span class="cx">     RELEASE_ASSERT(!m_inLoadPendingImages);
</span><span class="cx"> 
</span><span class="lines">@@ -558,7 +558,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-std::unique_ptr&lt;RenderStyle&gt; StyleResolver::pseudoStyleForElement(const Element&amp; element, const PseudoStyleRequest&amp; pseudoStyleRequest, RenderStyle&amp; parentStyle)
</del><ins>+std::unique_ptr&lt;RenderStyle&gt; StyleResolver::pseudoStyleForElement(const Element&amp; element, const PseudoStyleRequest&amp; pseudoStyleRequest, const RenderStyle&amp; parentStyle)
</ins><span class="cx"> {
</span><span class="cx">     m_state = State(element, &amp;parentStyle);
</span><span class="cx"> 
</span><span class="lines">@@ -1631,7 +1631,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (isInherit &amp;&amp; !state.parentStyle()-&gt;hasExplicitlyInheritedProperties() &amp;&amp; !CSSProperty::isInheritedProperty(id))
</span><del>-        state.parentStyle()-&gt;setHasExplicitlyInheritedProperties();
</del><ins>+        const_cast&lt;RenderStyle*&gt;(state.parentStyle())-&gt;setHasExplicitlyInheritedProperties();
</ins><span class="cx">     
</span><span class="cx">     if (id == CSSPropertyCustom) {
</span><span class="cx">         CSSCustomPropertyValue* customProperty = &amp;downcast&lt;CSSCustomPropertyValue&gt;(*valueToApply);
</span><span class="lines">@@ -1734,7 +1734,7 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-void StyleResolver::checkForZoomChange(RenderStyle* style, RenderStyle* parentStyle)
</del><ins>+void StyleResolver::checkForZoomChange(RenderStyle* style, const RenderStyle* parentStyle)
</ins><span class="cx"> {
</span><span class="cx">     if (!parentStyle)
</span><span class="cx">         return;
</span><span class="lines">@@ -1748,7 +1748,7 @@
</span><span class="cx">     style-&gt;setFontDescription(newFontDescription);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void StyleResolver::checkForGenericFamilyChange(RenderStyle* style, RenderStyle* parentStyle)
</del><ins>+void StyleResolver::checkForGenericFamilyChange(RenderStyle* style, const RenderStyle* parentStyle)
</ins><span class="cx"> {
</span><span class="cx">     const auto&amp; childFont = style-&gt;fontDescription();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleResolverh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleResolver.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleResolver.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/css/StyleResolver.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -141,18 +141,18 @@
</span><span class="cx">     StyleResolver(Document&amp;);
</span><span class="cx">     ~StyleResolver();
</span><span class="cx"> 
</span><del>-    ElementStyle styleForElement(const Element&amp;, RenderStyle* parentStyle, RuleMatchingBehavior = MatchAllRules, const RenderRegion* regionForStyling = nullptr, const SelectorFilter* = nullptr);
</del><ins>+    ElementStyle styleForElement(const Element&amp;, const RenderStyle* parentStyle, RuleMatchingBehavior = MatchAllRules, const RenderRegion* regionForStyling = nullptr, const SelectorFilter* = nullptr);
</ins><span class="cx"> 
</span><span class="cx">     void keyframeStylesForAnimation(const Element&amp;, const RenderStyle*, KeyframeList&amp;);
</span><span class="cx"> 
</span><del>-    std::unique_ptr&lt;RenderStyle&gt; pseudoStyleForElement(const Element&amp;, const PseudoStyleRequest&amp;, RenderStyle&amp; parentStyle);
</del><ins>+    std::unique_ptr&lt;RenderStyle&gt; pseudoStyleForElement(const Element&amp;, const PseudoStyleRequest&amp;, const RenderStyle&amp; parentStyle);
</ins><span class="cx"> 
</span><span class="cx">     std::unique_ptr&lt;RenderStyle&gt; styleForPage(int pageIndex);
</span><span class="cx">     std::unique_ptr&lt;RenderStyle&gt; defaultStyleForElement();
</span><span class="cx"> 
</span><span class="cx">     RenderStyle* style() const { return m_state.style(); }
</span><del>-    RenderStyle* parentStyle() const { return m_state.parentStyle(); }
-    RenderStyle* rootElementStyle() const { return m_state.rootElementStyle(); }
</del><ins>+    const RenderStyle* parentStyle() const { return m_state.parentStyle(); }
+    const RenderStyle* rootElementStyle() const { return m_state.rootElementStyle(); }
</ins><span class="cx">     const Element* element() { return m_state.element(); }
</span><span class="cx">     Document&amp; document() { return m_document; }
</span><span class="cx">     Settings* documentSettings() { return m_document.settings(); }
</span><span class="lines">@@ -317,8 +317,8 @@
</span><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     // This function fixes up the default font size if it detects that the current generic font family has changed. -dwh
</span><del>-    void checkForGenericFamilyChange(RenderStyle*, RenderStyle* parentStyle);
-    void checkForZoomChange(RenderStyle*, RenderStyle* parentStyle);
</del><ins>+    void checkForGenericFamilyChange(RenderStyle*, const RenderStyle* parentStyle);
+    void checkForZoomChange(RenderStyle*, const RenderStyle* parentStyle);
</ins><span class="cx"> #if ENABLE(IOS_TEXT_AUTOSIZING)
</span><span class="cx">     void checkForTextSizeAdjust(RenderStyle*);
</span><span class="cx"> #endif
</span><span class="lines">@@ -361,7 +361,7 @@
</span><span class="cx">     class State {
</span><span class="cx">     public:
</span><span class="cx">         State() { }
</span><del>-        State(const Element&amp;, RenderStyle* parentStyle, RenderStyle* documentElementStyle = nullptr, const RenderRegion* regionForStyling = nullptr, const SelectorFilter* = nullptr);
</del><ins>+        State(const Element&amp;, const RenderStyle* parentStyle, const RenderStyle* documentElementStyle = nullptr, const RenderRegion* regionForStyling = nullptr, const SelectorFilter* = nullptr);
</ins><span class="cx"> 
</span><span class="cx">     public:
</span><span class="cx">         void clear();
</span><span class="lines">@@ -374,8 +374,8 @@
</span><span class="cx">         std::unique_ptr&lt;RenderStyle&gt; takeStyle() { return WTFMove(m_style); }
</span><span class="cx"> 
</span><span class="cx">         void setParentStyle(std::unique_ptr&lt;RenderStyle&gt;);
</span><del>-        RenderStyle* parentStyle() const { return m_parentStyle; }
-        RenderStyle* rootElementStyle() const { return m_rootElementStyle; }
</del><ins>+        const RenderStyle* parentStyle() const { return m_parentStyle; }
+        const RenderStyle* rootElementStyle() const { return m_rootElementStyle; }
</ins><span class="cx"> 
</span><span class="cx">         const RenderRegion* regionForStyling() const { return m_regionForStyling; }
</span><span class="cx">         EInsideLink elementLinkState() const { return m_elementLinkState; }
</span><span class="lines">@@ -427,9 +427,9 @@
</span><span class="cx"> 
</span><span class="cx">         const Element* m_element { nullptr };
</span><span class="cx">         std::unique_ptr&lt;RenderStyle&gt; m_style;
</span><del>-        RenderStyle* m_parentStyle { nullptr };
</del><ins>+        const RenderStyle* m_parentStyle { nullptr };
</ins><span class="cx">         std::unique_ptr&lt;RenderStyle&gt; m_ownedParentStyle;
</span><del>-        RenderStyle* m_rootElementStyle { nullptr };
</del><ins>+        const RenderStyle* m_rootElementStyle { nullptr };
</ins><span class="cx"> 
</span><span class="cx">         const RenderRegion* m_regionForStyling { nullptr };
</span><span class="cx">         
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/dom/Document.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -2004,7 +2004,7 @@
</span><span class="cx">     m_ignorePendingStylesheets = oldIgnore;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-std::unique_ptr&lt;RenderStyle&gt; Document::styleForElementIgnoringPendingStylesheets(Element&amp; element, RenderStyle* parentStyle)
</del><ins>+std::unique_ptr&lt;RenderStyle&gt; Document::styleForElementIgnoringPendingStylesheets(Element&amp; element, const RenderStyle* parentStyle)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(&amp;element.document() == this);
</span><span class="cx"> 
</span><span class="lines">@@ -2511,7 +2511,7 @@
</span><span class="cx"> {
</span><span class="cx">     m_visuallyOrdered = true;
</span><span class="cx">     if (renderView())
</span><del>-        renderView()-&gt;style().setRTLOrdering(VisualOrder);
</del><ins>+        renderView()-&gt;mutableStyle().setRTLOrdering(VisualOrder);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Ref&lt;DocumentParser&gt; Document::createParser()
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/dom/Document.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -571,7 +571,7 @@
</span><span class="cx">     };
</span><span class="cx">     WEBCORE_EXPORT void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayoutTasks::Asynchronously);
</span><span class="cx"> 
</span><del>-    std::unique_ptr&lt;RenderStyle&gt; styleForElementIgnoringPendingStylesheets(Element&amp;, RenderStyle* parentStyle);
</del><ins>+    std::unique_ptr&lt;RenderStyle&gt; styleForElementIgnoringPendingStylesheets(Element&amp;, const RenderStyle* parentStyle);
</ins><span class="cx"> 
</span><span class="cx">     // Returns true if page box (margin boxes and page borders) is visible.
</span><span class="cx">     WEBCORE_EXPORT bool isPageBoxVisible(int pageIndex);
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Element.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Element.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/dom/Element.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1370,7 +1370,7 @@
</span><span class="cx">     return document().ensureStyleResolver();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-ElementStyle Element::resolveStyle(RenderStyle* parentStyle)
</del><ins>+ElementStyle Element::resolveStyle(const RenderStyle* parentStyle)
</ins><span class="cx"> {
</span><span class="cx">     return styleResolver().styleForElement(*this, parentStyle);
</span><span class="cx"> }
</span><span class="lines">@@ -1758,7 +1758,7 @@
</span><span class="cx"> static void checkForEmptyStyleChange(Element&amp; element)
</span><span class="cx"> {
</span><span class="cx">     if (element.styleAffectedByEmpty()) {
</span><del>-        RenderStyle* style = element.renderStyle();
</del><ins>+        auto* style = element.renderStyle();
</ins><span class="cx">         if (!style || (!style-&gt;emptyState() || element.hasChildNodes()))
</span><span class="cx">             element.setNeedsStyleRecalc();
</span><span class="cx">     }
</span><span class="lines">@@ -1784,14 +1784,14 @@
</span><span class="cx"> 
</span><span class="cx">         // This is the insert/append case.
</span><span class="cx">         if (newFirstElement != elementAfterChange) {
</span><del>-            RenderStyle* style = elementAfterChange-&gt;renderStyle();
</del><ins>+            auto* style = elementAfterChange-&gt;renderStyle();
</ins><span class="cx">             if (!style || style-&gt;firstChildState())
</span><span class="cx">                 elementAfterChange-&gt;setNeedsStyleRecalc();
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         // We also have to handle node removal.
</span><span class="cx">         if (checkType == SiblingElementRemoved &amp;&amp; newFirstElement == elementAfterChange &amp;&amp; newFirstElement) {
</span><del>-            RenderStyle* style = newFirstElement-&gt;renderStyle();
</del><ins>+            auto* style = newFirstElement-&gt;renderStyle();
</ins><span class="cx">             if (!style || !style-&gt;firstChildState())
</span><span class="cx">                 newFirstElement-&gt;setNeedsStyleRecalc();
</span><span class="cx">         }
</span><span class="lines">@@ -1804,7 +1804,7 @@
</span><span class="cx">         Element* newLastElement = ElementTraversal::lastChild(parent);
</span><span class="cx"> 
</span><span class="cx">         if (newLastElement != elementBeforeChange) {
</span><del>-            RenderStyle* style = elementBeforeChange-&gt;renderStyle();
</del><ins>+            auto* style = elementBeforeChange-&gt;renderStyle();
</ins><span class="cx">             if (!style || style-&gt;lastChildState())
</span><span class="cx">                 elementBeforeChange-&gt;setNeedsStyleRecalc();
</span><span class="cx">         }
</span><span class="lines">@@ -1812,7 +1812,7 @@
</span><span class="cx">         // We also have to handle node removal.  The parser callback case is similar to node removal as well in that we need to change the last child
</span><span class="cx">         // to match now.
</span><span class="cx">         if ((checkType == SiblingElementRemoved || checkType == FinishedParsingChildren) &amp;&amp; newLastElement == elementBeforeChange &amp;&amp; newLastElement) {
</span><del>-            RenderStyle* style = newLastElement-&gt;renderStyle();
</del><ins>+            auto* style = newLastElement-&gt;renderStyle();
</ins><span class="cx">             if (!style || !style-&gt;lastChildState())
</span><span class="cx">                 newLastElement-&gt;setNeedsStyleRecalc();
</span><span class="cx">         }
</span><span class="lines">@@ -2459,7 +2459,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle* Element::existingComputedStyle()
</del><ins>+const RenderStyle* Element::existingComputedStyle()
</ins><span class="cx"> {
</span><span class="cx">     if (auto* renderTreeStyle = renderStyle())
</span><span class="cx">         return renderTreeStyle;
</span><span class="lines">@@ -2470,13 +2470,13 @@
</span><span class="cx">     return nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle&amp; Element::resolveComputedStyle()
</del><ins>+const RenderStyle&amp; Element::resolveComputedStyle()
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(inDocument());
</span><span class="cx">     ASSERT(!existingComputedStyle());
</span><span class="cx"> 
</span><span class="cx">     Deque&lt;Element*, 32&gt; elementsRequiringComputedStyle({ this });
</span><del>-    RenderStyle* computedStyle = nullptr;
</del><ins>+    const RenderStyle* computedStyle = nullptr;
</ins><span class="cx"> 
</span><span class="cx">     // Collect ancestors until we find one that has style.
</span><span class="cx">     auto composedAncestors = composedTreeAncestors(*this);
</span><span class="lines">@@ -2499,7 +2499,7 @@
</span><span class="cx">     return *computedStyle;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier)
</del><ins>+const RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier)
</ins><span class="cx"> {
</span><span class="cx">     if (PseudoElement* pseudoElement = beforeOrAfterPseudoElement(*this, pseudoElementSpecifier))
</span><span class="cx">         return pseudoElement-&gt;computedStyle();
</span><span class="lines">@@ -3293,7 +3293,7 @@
</span><span class="cx">     ASSERT(hasCustomStyleResolveCallbacks());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Optional&lt;ElementStyle&gt; Element::resolveCustomStyle(RenderStyle&amp;, RenderStyle*)
</del><ins>+Optional&lt;ElementStyle&gt; Element::resolveCustomStyle(const RenderStyle&amp;, const RenderStyle*)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(hasCustomStyleResolveCallbacks());
</span><span class="cx">     return Nullopt;
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Element.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Element.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/dom/Element.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -279,7 +279,7 @@
</span><span class="cx">     void setTabIndex(int);
</span><span class="cx">     virtual Element* focusDelegate();
</span><span class="cx"> 
</span><del>-    RenderStyle* computedStyle(PseudoId = NOPSEUDO) override;
</del><ins>+    const RenderStyle* computedStyle(PseudoId = NOPSEUDO) override;
</ins><span class="cx"> 
</span><span class="cx">     bool needsStyleInvalidation() const;
</span><span class="cx"> 
</span><span class="lines">@@ -480,7 +480,7 @@
</span><span class="cx">     virtual void didAttachRenderers();
</span><span class="cx">     virtual void willDetachRenderers();
</span><span class="cx">     virtual void didDetachRenderers();
</span><del>-    virtual Optional&lt;ElementStyle&gt; resolveCustomStyle(RenderStyle&amp; parentStyle, RenderStyle* shadowHostStyle);
</del><ins>+    virtual Optional&lt;ElementStyle&gt; resolveCustomStyle(const RenderStyle&amp; parentStyle, const RenderStyle* shadowHostStyle);
</ins><span class="cx"> 
</span><span class="cx">     LayoutRect absoluteEventHandlerBounds(bool&amp; includesFixedPositionElements) override;
</span><span class="cx"> 
</span><span class="lines">@@ -499,7 +499,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     StyleResolver&amp; styleResolver();
</span><del>-    ElementStyle resolveStyle(RenderStyle* parentStyle);
</del><ins>+    ElementStyle resolveStyle(const RenderStyle* parentStyle);
</ins><span class="cx"> 
</span><span class="cx">     bool hasDisplayContents() const;
</span><span class="cx">     void setHasDisplayContents(bool);
</span><span class="lines">@@ -592,8 +592,8 @@
</span><span class="cx"> 
</span><span class="cx">     void removeShadowRoot();
</span><span class="cx"> 
</span><del>-    RenderStyle* existingComputedStyle();
-    RenderStyle&amp; resolveComputedStyle();
</del><ins>+    const RenderStyle* existingComputedStyle();
+    const RenderStyle&amp; resolveComputedStyle();
</ins><span class="cx"> 
</span><span class="cx">     bool rareDataStyleAffectedByEmpty() const;
</span><span class="cx">     bool rareDataChildrenAffectedByHover() const;
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/dom/Node.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -659,7 +659,7 @@
</span><span class="cx">     // would fire in the middle of Document::setFocusedElement().
</span><span class="cx"> 
</span><span class="cx">     for (const Node* node = &amp;startNode; node; node = node-&gt;parentNode()) {
</span><del>-        RenderStyle* style = node-&gt;isDocumentNode() ? node-&gt;renderStyle() : const_cast&lt;Node*&gt;(node)-&gt;computedStyle();
</del><ins>+        auto* style = node-&gt;isDocumentNode() ? node-&gt;renderStyle() : const_cast&lt;Node*&gt;(node)-&gt;computedStyle();
</ins><span class="cx">         if (!style)
</span><span class="cx">             continue;
</span><span class="cx">         if (style-&gt;display() == NONE)
</span><span class="lines">@@ -1006,7 +1006,7 @@
</span><span class="cx">     return lastChild();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle* Node::computedStyle(PseudoId pseudoElementSpecifier)
</del><ins>+const RenderStyle* Node::computedStyle(PseudoId pseudoElementSpecifier)
</ins><span class="cx"> {
</span><span class="cx">     auto* composedParent = composedTreeAncestors(*this).first();
</span><span class="cx">     if (!composedParent)
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/dom/Node.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -443,9 +443,9 @@
</span><span class="cx">     RenderBoxModelObject* renderBoxModelObject() const;
</span><span class="cx">     
</span><span class="cx">     // Wrapper for nodes that don't have a renderer, but still cache the style (like HTMLOptionElement).
</span><del>-    RenderStyle* renderStyle() const;
</del><ins>+    const RenderStyle* renderStyle() const;
</ins><span class="cx"> 
</span><del>-    virtual RenderStyle* computedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO);
</del><ins>+    virtual const RenderStyle* computedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO);
</ins><span class="cx"> 
</span><span class="cx">     // -----------------------------------------------------------------------------
</span><span class="cx">     // Notification of document structure changes (see ContainerNode.h for more notification methods)
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodeRenderStyleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/NodeRenderStyle.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/NodeRenderStyle.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/dom/NodeRenderStyle.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-inline RenderStyle* Node::renderStyle() const
</del><ins>+inline const RenderStyle* Node::renderStyle() const
</ins><span class="cx"> {
</span><span class="cx">     auto* renderer = this-&gt;renderer();
</span><span class="cx">     if (!renderer)
</span></span></pre></div>
<a id="trunkSourceWebCoredomPseudoElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PseudoElement.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PseudoElement.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/dom/PseudoElement.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -77,7 +77,7 @@
</span><span class="cx">     m_hostElement = nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Optional&lt;ElementStyle&gt; PseudoElement::resolveCustomStyle(RenderStyle&amp; parentStyle, RenderStyle*)
</del><ins>+Optional&lt;ElementStyle&gt; PseudoElement::resolveCustomStyle(const RenderStyle&amp; parentStyle, const RenderStyle*)
</ins><span class="cx"> {
</span><span class="cx">     auto* style = m_hostElement-&gt;renderer()-&gt;getCachedPseudoStyle(m_pseudoId, &amp;parentStyle);
</span><span class="cx">     if (!style)
</span></span></pre></div>
<a id="trunkSourceWebCoredomPseudoElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PseudoElement.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PseudoElement.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/dom/PseudoElement.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx">     Element* hostElement() const { return m_hostElement; }
</span><span class="cx">     void clearHostElement();
</span><span class="cx"> 
</span><del>-    Optional&lt;ElementStyle&gt; resolveCustomStyle(RenderStyle&amp; parentStyle, RenderStyle* shadowHostStyle) override;
</del><ins>+    Optional&lt;ElementStyle&gt; resolveCustomStyle(const RenderStyle&amp; parentStyle, const RenderStyle* shadowHostStyle) override;
</ins><span class="cx">     void didAttachRenderers() override;
</span><span class="cx">     void didRecalcStyle(Style::Change) override;
</span><span class="cx">     bool rendererIsNeeded(const RenderStyle&amp;) override;
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingApplyBlockElementCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/ApplyBlockElementCommand.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/ApplyBlockElementCommand.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/editing/ApplyBlockElementCommand.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -179,18 +179,18 @@
</span><span class="cx">     return textAtPosition[0] == '\n';
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle* ApplyBlockElementCommand::renderStyleOfEnclosingTextNode(const Position&amp; position)
</del><ins>+const RenderStyle* ApplyBlockElementCommand::renderStyleOfEnclosingTextNode(const Position&amp; position)
</ins><span class="cx"> {
</span><span class="cx">     if (position.anchorType() != Position::PositionIsOffsetInAnchor
</span><span class="cx">         || !position.containerNode()
</span><span class="cx">         || !position.containerNode()-&gt;isTextNode())
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     document().updateStyleIfNeeded();
</span><span class="cx"> 
</span><span class="cx">     RenderObject* renderer = position.containerNode()-&gt;renderer();
</span><span class="cx">     if (!renderer)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     return &amp;renderer-&gt;style();
</span><span class="cx"> }
</span><span class="lines">@@ -201,7 +201,7 @@
</span><span class="cx">     end = endOfCurrentParagraph.deepEquivalent();
</span><span class="cx"> 
</span><span class="cx">     bool isStartAndEndOnSameNode = false;
</span><del>-    if (RenderStyle* startStyle = renderStyleOfEnclosingTextNode(start)) {
</del><ins>+    if (auto* startStyle = renderStyleOfEnclosingTextNode(start)) {
</ins><span class="cx">         isStartAndEndOnSameNode = renderStyleOfEnclosingTextNode(end) &amp;&amp; start.containerNode() == end.containerNode();
</span><span class="cx">         bool isStartAndEndOfLastParagraphOnSameNode = renderStyleOfEnclosingTextNode(m_endOfLastParagraph) &amp;&amp; start.containerNode() == m_endOfLastParagraph.containerNode();
</span><span class="cx"> 
</span><span class="lines">@@ -226,7 +226,7 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (RenderStyle* endStyle = renderStyleOfEnclosingTextNode(end)) {
</del><ins>+    if (auto* endStyle = renderStyleOfEnclosingTextNode(end)) {
</ins><span class="cx">         bool isEndAndEndOfLastParagraphOnSameNode = renderStyleOfEnclosingTextNode(m_endOfLastParagraph) &amp;&amp; end.deprecatedNode() == m_endOfLastParagraph.deprecatedNode();
</span><span class="cx">         // Include \n at the end of line if we're at an empty paragraph
</span><span class="cx">         if (endStyle-&gt;preserveNewline() &amp;&amp; start == end &amp;&amp; end.offsetInContainerNode() &lt; end.containerNode()-&gt;maxCharacterOffset()) {
</span><span class="lines">@@ -258,7 +258,7 @@
</span><span class="cx"> {
</span><span class="cx">     VisiblePosition endOfNextParagraph = endOfParagraph(endOfCurrentParagraph.next());
</span><span class="cx">     Position position = endOfNextParagraph.deepEquivalent();
</span><del>-    RenderStyle* style = renderStyleOfEnclosingTextNode(position);
</del><ins>+    auto* style = renderStyleOfEnclosingTextNode(position);
</ins><span class="cx">     if (!style)
</span><span class="cx">         return endOfNextParagraph;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingApplyBlockElementCommandh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/ApplyBlockElementCommand.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/ApplyBlockElementCommand.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/editing/ApplyBlockElementCommand.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx"> private:
</span><span class="cx">     void doApply() override;
</span><span class="cx">     virtual void formatRange(const Position&amp; start, const Position&amp; end, const Position&amp; endOfSelection, RefPtr&lt;Element&gt;&amp;) = 0;
</span><del>-    RenderStyle* renderStyleOfEnclosingTextNode(const Position&amp;);
</del><ins>+    const RenderStyle* renderStyleOfEnclosingTextNode(const Position&amp;);
</ins><span class="cx">     void rangeForParagraphSplittingTextNodesIfNeeded(const VisiblePosition&amp;, Position&amp;, Position&amp;);
</span><span class="cx">     VisiblePosition endOfNextParagraphSplittingTextNodesIfNeeded(VisiblePosition&amp;, Position&amp;, Position&amp;);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditingStylecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/EditingStyle.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/EditingStyle.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/editing/EditingStyle.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -461,7 +461,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (node &amp;&amp; node-&gt;computedStyle()) {
</span><del>-        RenderStyle* renderStyle = node-&gt;computedStyle();
</del><ins>+        auto* renderStyle = node-&gt;computedStyle();
</ins><span class="cx">         removeTextFillAndStrokeColorsIfNeeded(renderStyle);
</span><span class="cx">         if (renderStyle-&gt;fontDescription().keywordSize())
</span><span class="cx">             m_mutableStyle-&gt;setProperty(CSSPropertyFontSize, computedStyleAtPosition.getFontSizeCSSValuePreferringKeyword()-&gt;cssText());
</span><span class="lines">@@ -471,7 +471,7 @@
</span><span class="cx">     extractFontSizeDelta();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void EditingStyle::removeTextFillAndStrokeColorsIfNeeded(RenderStyle* renderStyle)
</del><ins>+void EditingStyle::removeTextFillAndStrokeColorsIfNeeded(const RenderStyle* renderStyle)
</ins><span class="cx"> {
</span><span class="cx">     // If a node's text fill color is invalid, then its children use 
</span><span class="cx">     // their font-color as their text fill color (they don't
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditingStyleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/EditingStyle.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/EditingStyle.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/editing/EditingStyle.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -178,7 +178,7 @@
</span><span class="cx">     EditingStyle(CSSPropertyID, const String&amp; value);
</span><span class="cx">     EditingStyle(CSSPropertyID, CSSValueID);
</span><span class="cx">     void init(Node*, PropertiesToInclude);
</span><del>-    void removeTextFillAndStrokeColorsIfNeeded(RenderStyle*);
</del><ins>+    void removeTextFillAndStrokeColorsIfNeeded(const RenderStyle*);
</ins><span class="cx">     void setProperty(CSSPropertyID, const String&amp; value, bool important = false);
</span><span class="cx">     void extractFontSizeDelta();
</span><span class="cx">     template&lt;typename T&gt; TriState triStateOfStyle(T&amp; styleToCompare, ShouldIgnoreTextOnlyProperties) const;
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/Editor.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/Editor.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/editing/Editor.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -430,8 +430,8 @@
</span><span class="cx">     RefPtr&lt;DocumentFragment&gt; webContentFromPasteboard(Pasteboard&amp;, Range&amp; context, bool allowPlainText, bool&amp; chosePlainText);
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(COCOA)
</span><del>-    WEBCORE_EXPORT static RenderStyle* styleForSelectionStart(Frame* , Node *&amp;nodeToRemove);
-    void getTextDecorationAttributesRespectingTypingStyle(RenderStyle&amp;, NSMutableDictionary*) const;
</del><ins>+    WEBCORE_EXPORT static const RenderStyle* styleForSelectionStart(Frame* , Node *&amp;nodeToRemove);
+    void getTextDecorationAttributesRespectingTypingStyle(const RenderStyle&amp;, NSMutableDictionary*) const;
</ins><span class="cx">     WEBCORE_EXPORT const Font* fontForSelection(bool&amp;) const;
</span><span class="cx">     WEBCORE_EXPORT NSDictionary *fontAttributesForSelectionStart() const;
</span><span class="cx">     WEBCORE_EXPORT String stringSelectionForPasteboard();
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingSimplifyMarkupCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/SimplifyMarkupCommand.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/SimplifyMarkupCommand.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/editing/SimplifyMarkupCommand.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx">             continue;
</span><span class="cx">         
</span><span class="cx">         Node* startingNode = node-&gt;parentNode();
</span><del>-        RenderStyle* startingStyle = startingNode-&gt;renderStyle();
</del><ins>+        auto* startingStyle = startingNode-&gt;renderStyle();
</ins><span class="cx">         if (!startingStyle)
</span><span class="cx">             continue;
</span><span class="cx">         Node* currentNode = startingNode;
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingcocoaEditorCocoamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/cocoa/EditorCocoa.mm (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/cocoa/EditorCocoa.mm        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/editing/cocoa/EditorCocoa.mm        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> // FIXME: This figures out the current style by inserting a &lt;span&gt;!
</span><del>-RenderStyle* Editor::styleForSelectionStart(Frame* frame, Node *&amp;nodeToRemove)
</del><ins>+const RenderStyle* Editor::styleForSelectionStart(Frame* frame, Node *&amp;nodeToRemove)
</ins><span class="cx"> {
</span><span class="cx">     nodeToRemove = nullptr;
</span><span class="cx">     
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx">     return styleElement-&gt;renderer() ? &amp;styleElement-&gt;renderer()-&gt;style() : nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void Editor::getTextDecorationAttributesRespectingTypingStyle(RenderStyle&amp; style, NSMutableDictionary* result) const
</del><ins>+void Editor::getTextDecorationAttributesRespectingTypingStyle(const RenderStyle&amp; style, NSMutableDictionary* result) const
</ins><span class="cx"> {
</span><span class="cx">     RefPtr&lt;EditingStyle&gt; typingStyle = m_frame.selection().typingStyle();
</span><span class="cx">     if (typingStyle &amp;&amp; typingStyle-&gt;style()) {
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingiosEditorIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/ios/EditorIOS.mm (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/ios/EditorIOS.mm        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/editing/ios/EditorIOS.mm        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -181,7 +181,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_frame.selection().isRange()) {
</span><span class="cx">         Node* nodeToRemove;
</span><del>-        RenderStyle* style = styleForSelectionStart(&amp;m_frame, nodeToRemove); // sets nodeToRemove
</del><ins>+        auto* style = styleForSelectionStart(&amp;m_frame, nodeToRemove); // sets nodeToRemove
</ins><span class="cx"> 
</span><span class="cx">         const Font* result = nullptr;
</span><span class="cx">         if (style) {
</span><span class="lines">@@ -220,7 +220,7 @@
</span><span class="cx"> NSDictionary* Editor::fontAttributesForSelectionStart() const
</span><span class="cx"> {
</span><span class="cx">     Node* nodeToRemove;
</span><del>-    RenderStyle* style = styleForSelectionStart(&amp;m_frame, nodeToRemove);
</del><ins>+    auto* style = styleForSelectionStart(&amp;m_frame, nodeToRemove);
</ins><span class="cx">     if (!style)
</span><span class="cx">         return nil;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingmacEditorMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/mac/EditorMac.mm (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/mac/EditorMac.mm        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/editing/mac/EditorMac.mm        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -107,7 +107,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_frame.selection().isRange()) {
</span><span class="cx">         Node* nodeToRemove;
</span><del>-        RenderStyle* style = styleForSelectionStart(&amp;m_frame, nodeToRemove); // sets nodeToRemove
</del><ins>+        auto* style = styleForSelectionStart(&amp;m_frame, nodeToRemove); // sets nodeToRemove
</ins><span class="cx"> 
</span><span class="cx">         const Font* result = nullptr;
</span><span class="cx">         if (style) {
</span><span class="lines">@@ -146,7 +146,7 @@
</span><span class="cx"> NSDictionary* Editor::fontAttributesForSelectionStart() const
</span><span class="cx"> {
</span><span class="cx">     Node* nodeToRemove;
</span><del>-    RenderStyle* style = styleForSelectionStart(&amp;m_frame, nodeToRemove);
</del><ins>+    auto* style = styleForSelectionStart(&amp;m_frame, nodeToRemove);
</ins><span class="cx">     if (!style)
</span><span class="cx">         return nil;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTitleElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTitleElement.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTitleElement.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/html/HTMLTitleElement.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> StringWithDirection HTMLTitleElement::computedTextWithDirection()
</span><span class="cx"> {
</span><span class="cx">     TextDirection direction = LTR;
</span><del>-    if (RenderStyle* computedStyle = this-&gt;computedStyle())
</del><ins>+    if (auto* computedStyle = this-&gt;computedStyle())
</ins><span class="cx">         direction = computedStyle-&gt;direction();
</span><span class="cx">     else {
</span><span class="cx">         auto style = styleResolver().styleForElement(*this, parentElement() ? parentElement()-&gt;renderStyle() : nullptr).renderStyle;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasCanvasRenderingContext2Dcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -320,7 +320,7 @@
</span><span class="cx">     update(selector);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-inline void CanvasRenderingContext2D::FontProxy::initialize(FontSelector&amp; fontSelector, RenderStyle&amp; newStyle)
</del><ins>+inline void CanvasRenderingContext2D::FontProxy::initialize(FontSelector&amp; fontSelector, const RenderStyle&amp; newStyle)
</ins><span class="cx"> {
</span><span class="cx">     // Beware! m_font.fontSelector() might not point to document.fontSelector()!
</span><span class="cx">     ASSERT(newStyle.fontCascade().fontSelector() == &amp;fontSelector);
</span><span class="lines">@@ -2196,7 +2196,7 @@
</span><span class="cx">     Document&amp; document = canvas()-&gt;document();
</span><span class="cx">     document.updateStyleIfNeeded();
</span><span class="cx"> 
</span><del>-    if (RenderStyle* computedStyle = canvas()-&gt;computedStyle())
</del><ins>+    if (auto* computedStyle = canvas()-&gt;computedStyle())
</ins><span class="cx">         newStyle-&gt;setFontDescription(computedStyle-&gt;fontDescription());
</span><span class="cx">     else {
</span><span class="cx">         FontCascadeDescription defaultFontDescription;
</span><span class="lines">@@ -2259,9 +2259,9 @@
</span><span class="cx">     modifiableState().textBaseline = baseline;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-inline TextDirection CanvasRenderingContext2D::toTextDirection(Direction direction, RenderStyle** computedStyle) const
</del><ins>+inline TextDirection CanvasRenderingContext2D::toTextDirection(Direction direction, const RenderStyle** computedStyle) const
</ins><span class="cx"> {
</span><del>-    RenderStyle* style = (computedStyle || direction == Direction::Inherit) ? canvas()-&gt;computedStyle() : nullptr;
</del><ins>+    auto* style = (computedStyle || direction == Direction::Inherit) ? canvas()-&gt;computedStyle() : nullptr;
</ins><span class="cx">     if (computedStyle)
</span><span class="cx">         *computedStyle = style;
</span><span class="cx">     switch (direction) {
</span><span class="lines">@@ -2384,7 +2384,7 @@
</span><span class="cx"> 
</span><span class="cx">     // FIXME: Need to turn off font smoothing.
</span><span class="cx"> 
</span><del>-    RenderStyle* computedStyle;
</del><ins>+    const RenderStyle* computedStyle;
</ins><span class="cx">     TextDirection direction = toTextDirection(state().direction, &amp;computedStyle);
</span><span class="cx">     bool isRTL = direction == RTL;
</span><span class="cx">     bool override = computedStyle ? isOverride(computedStyle-&gt;unicodeBidi()) : false;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasCanvasRenderingContext2Dh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -255,7 +255,7 @@
</span><span class="cx">         FontProxy&amp; operator=(const FontProxy&amp;);
</span><span class="cx"> 
</span><span class="cx">         bool realized() const { return m_font.fontSelector(); }
</span><del>-        void initialize(FontSelector&amp;, RenderStyle&amp;);
</del><ins>+        void initialize(FontSelector&amp;, const RenderStyle&amp;);
</ins><span class="cx">         FontMetrics fontMetrics() const;
</span><span class="cx">         const FontCascadeDescription&amp; fontDescription() const;
</span><span class="cx">         float width(const TextRun&amp;) const;
</span><span class="lines">@@ -382,7 +382,7 @@
</span><span class="cx">     bool isAccelerated() const override;
</span><span class="cx"> 
</span><span class="cx">     bool hasInvertibleTransform() const override { return state().hasInvertibleTransform; }
</span><del>-    TextDirection toTextDirection(Direction, RenderStyle** computedStyle = nullptr) const;
</del><ins>+    TextDirection toTextDirection(Direction, const RenderStyle** computedStyle = nullptr) const;
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(ACCELERATED_2D_CANVAS)
</span><span class="cx">     PlatformLayer* platformLayer() const override;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLResourcePreloadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLResourcePreloader.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLResourcePreloader.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/html/parser/HTMLResourcePreloader.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -58,7 +58,7 @@
</span><span class="cx">         preload(WTFMove(request));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static bool mediaAttributeMatches(Frame* frame, RenderStyle* renderStyle, const String&amp; attributeValue)
</del><ins>+static bool mediaAttributeMatches(Frame* frame, const RenderStyle* renderStyle, const String&amp; attributeValue)
</ins><span class="cx"> {
</span><span class="cx">     RefPtr&lt;MediaQuerySet&gt; mediaQueries = MediaQuerySet::createAllowingDescriptionSyntax(attributeValue);
</span><span class="cx">     MediaQueryEvaluator mediaQueryEvaluator(&quot;screen&quot;, frame, renderStyle);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlshadowSliderThumbElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/shadow/SliderThumbElement.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/shadow/SliderThumbElement.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/html/shadow/SliderThumbElement.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -83,21 +83,21 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void RenderSliderThumb::updateAppearance(RenderStyle* parentStyle)
</del><ins>+void RenderSliderThumb::updateAppearance(const RenderStyle* parentStyle)
</ins><span class="cx"> {
</span><span class="cx">     if (parentStyle-&gt;appearance() == SliderVerticalPart)
</span><del>-        style().setAppearance(SliderThumbVerticalPart);
</del><ins>+        mutableStyle().setAppearance(SliderThumbVerticalPart);
</ins><span class="cx">     else if (parentStyle-&gt;appearance() == SliderHorizontalPart)
</span><del>-        style().setAppearance(SliderThumbHorizontalPart);
</del><ins>+        mutableStyle().setAppearance(SliderThumbHorizontalPart);
</ins><span class="cx">     else if (parentStyle-&gt;appearance() == MediaSliderPart)
</span><del>-        style().setAppearance(MediaSliderThumbPart);
</del><ins>+        mutableStyle().setAppearance(MediaSliderThumbPart);
</ins><span class="cx">     else if (parentStyle-&gt;appearance() == MediaVolumeSliderPart)
</span><del>-        style().setAppearance(MediaVolumeSliderThumbPart);
</del><ins>+        mutableStyle().setAppearance(MediaVolumeSliderThumbPart);
</ins><span class="cx">     else if (parentStyle-&gt;appearance() == MediaFullScreenVolumeSliderPart)
</span><del>-        style().setAppearance(MediaFullScreenVolumeSliderThumbPart);
</del><ins>+        mutableStyle().setAppearance(MediaFullScreenVolumeSliderThumbPart);
</ins><span class="cx">     if (style().hasAppearance()) {
</span><span class="cx">         ASSERT(element());
</span><del>-        theme().adjustSliderThumbSize(style(), element());
</del><ins>+        theme().adjustSliderThumbSize(mutableStyle(), element());
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -159,13 +159,13 @@
</span><span class="cx">     ASSERT(element()-&gt;shadowHost());
</span><span class="cx">     auto&amp; input = downcast&lt;HTMLInputElement&gt;(*element()-&gt;shadowHost());
</span><span class="cx">     bool isVertical = hasVerticalAppearance(input);
</span><del>-    style().setFlexDirection(isVertical ? FlowColumn : FlowRow);
</del><ins>+    mutableStyle().setFlexDirection(isVertical ? FlowColumn : FlowRow);
</ins><span class="cx">     TextDirection oldTextDirection = style().direction();
</span><span class="cx">     if (isVertical) {
</span><span class="cx">         // FIXME: Work around rounding issues in RTL vertical sliders. We want them to
</span><span class="cx">         // render identically to LTR vertical sliders. We can remove this work around when
</span><span class="cx">         // subpixel rendering is enabled on all ports.
</span><del>-        style().setDirection(LTR);
</del><ins>+        mutableStyle().setDirection(LTR);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     RenderBox* thumb = input.sliderThumbElement() ? input.sliderThumbElement()-&gt;renderBox() : nullptr;
</span><span class="lines">@@ -177,7 +177,7 @@
</span><span class="cx"> 
</span><span class="cx">     RenderFlexibleBox::layout();
</span><span class="cx"> 
</span><del>-    style().setDirection(oldTextDirection);
</del><ins>+    mutableStyle().setDirection(oldTextDirection);
</ins><span class="cx">     // These should always exist, unless someone mutates the shadow DOM (e.g., in the inspector).
</span><span class="cx">     if (!thumb || !track)
</span><span class="cx">         return;
</span><span class="lines">@@ -574,7 +574,7 @@
</span><span class="cx">     return downcast&lt;HTMLInputElement&gt;(shadowHost());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Optional&lt;ElementStyle&gt; SliderThumbElement::resolveCustomStyle(RenderStyle&amp;, RenderStyle* hostStyle)
</del><ins>+Optional&lt;ElementStyle&gt; SliderThumbElement::resolveCustomStyle(const RenderStyle&amp;, const RenderStyle* hostStyle)
</ins><span class="cx"> {
</span><span class="cx">     // This doesn't actually compute style. This is just a hack to pick shadow pseudo id when host style is known.
</span><span class="cx"> 
</span><span class="lines">@@ -628,7 +628,7 @@
</span><span class="cx">     return createRenderer&lt;RenderSliderContainer&gt;(*this, WTFMove(style));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Optional&lt;ElementStyle&gt; SliderContainerElement::resolveCustomStyle(RenderStyle&amp;, RenderStyle* hostStyle)
</del><ins>+Optional&lt;ElementStyle&gt; SliderContainerElement::resolveCustomStyle(const RenderStyle&amp;, const RenderStyle* hostStyle)
</ins><span class="cx"> {
</span><span class="cx">     // This doesn't actually compute style. This is just a hack to pick shadow pseudo id when host style is known.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlshadowSliderThumbElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/shadow/SliderThumbElement.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/shadow/SliderThumbElement.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/html/shadow/SliderThumbElement.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -78,7 +78,7 @@
</span><span class="cx"> #endif
</span><span class="cx">     void willDetachRenderers() override;
</span><span class="cx"> 
</span><del>-    Optional&lt;ElementStyle&gt; resolveCustomStyle(RenderStyle&amp;, RenderStyle*) override;
</del><ins>+    Optional&lt;ElementStyle&gt; resolveCustomStyle(const RenderStyle&amp;, const RenderStyle*) override;
</ins><span class="cx">     const AtomicString&amp; shadowPseudoId() const override;
</span><span class="cx"> 
</span><span class="cx">     void startDragging();
</span><span class="lines">@@ -120,7 +120,7 @@
</span><span class="cx"> class RenderSliderThumb final : public RenderBlockFlow {
</span><span class="cx"> public:
</span><span class="cx">     RenderSliderThumb(SliderThumbElement&amp;, RenderStyle&amp;&amp;);
</span><del>-    void updateAppearance(RenderStyle* parentStyle);
</del><ins>+    void updateAppearance(const RenderStyle* parentStyle);
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     bool isSliderThumb() const override;
</span><span class="lines">@@ -135,7 +135,7 @@
</span><span class="cx"> private:
</span><span class="cx">     SliderContainerElement(Document&amp;);
</span><span class="cx">     RenderPtr&lt;RenderElement&gt; createElementRenderer(RenderStyle&amp;&amp;, const RenderTreePosition&amp;) override;
</span><del>-    Optional&lt;ElementStyle&gt; resolveCustomStyle(RenderStyle&amp;, RenderStyle*) override;
</del><ins>+    Optional&lt;ElementStyle&gt; resolveCustomStyle(const RenderStyle&amp;, const RenderStyle*) override;
</ins><span class="cx">     const AtomicString&amp; shadowPseudoId() const override;
</span><span class="cx"> 
</span><span class="cx">     AtomicString m_shadowPseudoId;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlshadowTextControlInnerElementscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/shadow/TextControlInnerElements.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/shadow/TextControlInnerElements.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/html/shadow/TextControlInnerElements.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -75,7 +75,7 @@
</span><span class="cx">     return adoptRef(*new TextControlInnerElement(document));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Optional&lt;ElementStyle&gt; TextControlInnerElement::resolveCustomStyle(RenderStyle&amp;, RenderStyle* shadowHostStyle)
</del><ins>+Optional&lt;ElementStyle&gt; TextControlInnerElement::resolveCustomStyle(const RenderStyle&amp;, const RenderStyle* shadowHostStyle)
</ins><span class="cx"> {
</span><span class="cx">     auto innerContainerStyle = RenderStyle::createPtr();
</span><span class="cx">     innerContainerStyle-&gt;inheritFrom(shadowHostStyle);
</span><span class="lines">@@ -134,7 +134,7 @@
</span><span class="cx">     return downcast&lt;RenderTextControlInnerBlock&gt;(HTMLDivElement::renderer());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Optional&lt;ElementStyle&gt; TextControlInnerTextElement::resolveCustomStyle(RenderStyle&amp;, RenderStyle* shadowHostStyle)
</del><ins>+Optional&lt;ElementStyle&gt; TextControlInnerTextElement::resolveCustomStyle(const RenderStyle&amp;, const RenderStyle* shadowHostStyle)
</ins><span class="cx"> {
</span><span class="cx">     auto style = downcast&lt;HTMLTextFormControlElement&gt;(*shadowHost()).createInnerTextStyle(*shadowHostStyle);
</span><span class="cx">     return ElementStyle(std::make_unique&lt;RenderStyle&gt;(WTFMove(style)));
</span><span class="lines">@@ -149,7 +149,7 @@
</span><span class="cx">     setHasCustomStyleResolveCallbacks();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Optional&lt;ElementStyle&gt; TextControlPlaceholderElement::resolveCustomStyle(RenderStyle&amp; parentStyle, RenderStyle* shadowHostStyle)
</del><ins>+Optional&lt;ElementStyle&gt; TextControlPlaceholderElement::resolveCustomStyle(const RenderStyle&amp; parentStyle, const RenderStyle* shadowHostStyle)
</ins><span class="cx"> {
</span><span class="cx">     auto style = resolveStyle(&amp;parentStyle);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlshadowTextControlInnerElementsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/shadow/TextControlInnerElements.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/shadow/TextControlInnerElements.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/html/shadow/TextControlInnerElements.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx"> 
</span><span class="cx"> protected:
</span><span class="cx">     TextControlInnerElement(Document&amp;);
</span><del>-    Optional&lt;ElementStyle&gt; resolveCustomStyle(RenderStyle&amp; parentStyle, RenderStyle* shadowHostStyle) override;
</del><ins>+    Optional&lt;ElementStyle&gt; resolveCustomStyle(const RenderStyle&amp; parentStyle, const RenderStyle* shadowHostStyle) override;
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     bool isMouseFocusable() const override { return false; }
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx"> private:
</span><span class="cx">     TextControlInnerTextElement(Document&amp;);
</span><span class="cx">     RenderPtr&lt;RenderElement&gt; createElementRenderer(RenderStyle&amp;&amp;, const RenderTreePosition&amp;) override;
</span><del>-    Optional&lt;ElementStyle&gt; resolveCustomStyle(RenderStyle&amp; parentStyle, RenderStyle* shadowHostStyle) override;
</del><ins>+    Optional&lt;ElementStyle&gt; resolveCustomStyle(const RenderStyle&amp; parentStyle, const RenderStyle* shadowHostStyle) override;
</ins><span class="cx">     bool isMouseFocusable() const override { return false; }
</span><span class="cx">     bool isTextControlInnerTextElement() const override { return true; }
</span><span class="cx"> };
</span><span class="lines">@@ -77,7 +77,7 @@
</span><span class="cx"> private:
</span><span class="cx">     TextControlPlaceholderElement(Document&amp;);
</span><span class="cx">     
</span><del>-    Optional&lt;ElementStyle&gt; resolveCustomStyle(RenderStyle&amp; parentStyle, RenderStyle* shadowHostStyle) override;
</del><ins>+    Optional&lt;ElementStyle&gt; resolveCustomStyle(const RenderStyle&amp; parentStyle, const RenderStyle* shadowHostStyle) override;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> class SearchFieldResultsButtonElement final : public HTMLDivElement {
</span></span></pre></div>
<a id="trunkSourceWebCorepageEventHandlercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/EventHandler.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/EventHandler.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/EventHandler.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1381,7 +1381,7 @@
</span><span class="cx">         return NoCursorChange;
</span><span class="cx"> 
</span><span class="cx">     auto renderer = node-&gt;renderer();
</span><del>-    RenderStyle* style = renderer ? &amp;renderer-&gt;style() : nullptr;
</del><ins>+    auto* style = renderer ? &amp;renderer-&gt;style() : nullptr;
</ins><span class="cx">     bool horizontalText = !style || style-&gt;isHorizontalWritingMode();
</span><span class="cx">     const Cursor&amp; iBeam = horizontalText ? iBeamCursor() : verticalTextCursor();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationAnimationBasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/AnimationBase.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/AnimationBase.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/animation/AnimationBase.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -70,10 +70,10 @@
</span><span class="cx">     return floor(numSteps * t) / numSteps;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-AnimationBase::AnimationBase(Animation&amp; animation, RenderElement* renderer, CompositeAnimation* compositeAnimation)
</del><ins>+AnimationBase::AnimationBase(const Animation&amp; animation, RenderElement* renderer, CompositeAnimation* compositeAnimation)
</ins><span class="cx">     : m_object(renderer)
</span><span class="cx">     , m_compositeAnimation(compositeAnimation)
</span><del>-    , m_animation(animation)
</del><ins>+    , m_animation(const_cast&lt;Animation&amp;&gt;(animation))
</ins><span class="cx"> {
</span><span class="cx">     // Compute the total duration
</span><span class="cx">     if (m_animation-&gt;iterationCount() &gt; 0)
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationAnimationBaseh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/AnimationBase.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/AnimationBase.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/animation/AnimationBase.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -52,7 +52,7 @@
</span><span class="cx">     friend class CSSPropertyAnimation;
</span><span class="cx">     WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    AnimationBase(Animation&amp; transition, RenderElement*, CompositeAnimation*);
</del><ins>+    AnimationBase(const Animation&amp; transition, RenderElement*, CompositeAnimation*);
</ins><span class="cx">     virtual ~AnimationBase() { }
</span><span class="cx"> 
</span><span class="cx">     RenderElement* renderer() const { return m_object; }
</span><span class="lines">@@ -138,7 +138,7 @@
</span><span class="cx">     double progress(double scale = 1, double offset = 0, const TimingFunction* = nullptr) const;
</span><span class="cx"> 
</span><span class="cx">     // Returns true if the animation state changed.
</span><del>-    virtual bool animate(CompositeAnimation*, RenderElement*, const RenderStyle* /*currentStyle*/, RenderStyle* /*targetStyle*/, std::unique_ptr&lt;RenderStyle&gt;&amp; /*animatedStyle*/) = 0;
</del><ins>+    virtual bool animate(CompositeAnimation*, RenderElement*, const RenderStyle* /*currentStyle*/, const RenderStyle* /*targetStyle*/, std::unique_ptr&lt;RenderStyle&gt;&amp; /*animatedStyle*/) = 0;
</ins><span class="cx">     virtual void getAnimatedStyle(std::unique_ptr&lt;RenderStyle&gt;&amp; /*animatedStyle*/) = 0;
</span><span class="cx"> 
</span><span class="cx">     virtual bool computeExtentOfTransformAnimation(LayoutRect&amp;) const = 0;
</span><span class="lines">@@ -150,7 +150,7 @@
</span><span class="cx">     bool animationsMatch(const Animation&amp;) const;
</span><span class="cx"> 
</span><span class="cx">     const Animation&amp; animation() const { return m_animation; }
</span><del>-    void setAnimation(Animation&amp; animation) { m_animation = animation; }
</del><ins>+    void setAnimation(const Animation&amp; animation) { m_animation = const_cast&lt;Animation&amp;&gt;(animation); }
</ins><span class="cx"> 
</span><span class="cx">     // Return true if this animation is overridden. This will only be the case for
</span><span class="cx">     // ImplicitAnimations and is used to determine whether or not we should force
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationAnimationControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/AnimationController.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/AnimationController.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/animation/AnimationController.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -593,9 +593,9 @@
</span><span class="cx">         element-&gt;setNeedsStyleRecalc(SyntheticStyleChange);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool AnimationController::updateAnimations(RenderElement&amp; renderer, RenderStyle&amp; newStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle)
</del><ins>+bool AnimationController::updateAnimations(RenderElement&amp; renderer, const RenderStyle&amp; newStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle)
</ins><span class="cx"> {
</span><del>-    RenderStyle* oldStyle = renderer.hasInitializedStyle() ? &amp;renderer.style() : nullptr;
</del><ins>+    auto* oldStyle = renderer.hasInitializedStyle() ? &amp;renderer.style() : nullptr;
</ins><span class="cx">     if ((!oldStyle || (!oldStyle-&gt;animations() &amp;&amp; !oldStyle-&gt;transitions())) &amp;&amp; (!newStyle.animations() &amp;&amp; !newStyle.transitions()))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationAnimationControllerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/AnimationController.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/AnimationController.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/animation/AnimationController.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx">     ~AnimationController();
</span><span class="cx"> 
</span><span class="cx">     void cancelAnimations(RenderElement&amp;);
</span><del>-    bool updateAnimations(RenderElement&amp;, RenderStyle&amp; newStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle);
</del><ins>+    bool updateAnimations(RenderElement&amp;, const RenderStyle&amp; newStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle);
</ins><span class="cx">     std::unique_ptr&lt;RenderStyle&gt; getAnimatedStyleForRenderer(RenderElement&amp;);
</span><span class="cx"> 
</span><span class="cx">     // If possible, compute the visual extent of any transform animation on the given renderer
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationCompositeAnimationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/CompositeAnimation.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/CompositeAnimation.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/animation/CompositeAnimation.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -77,7 +77,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void CompositeAnimation::updateTransitions(RenderElement* renderer, RenderStyle* currentStyle, RenderStyle* targetStyle)
</del><ins>+void CompositeAnimation::updateTransitions(RenderElement* renderer, const RenderStyle* currentStyle, const RenderStyle* targetStyle)
</ins><span class="cx"> {
</span><span class="cx">     // If currentStyle is null or there are no old or new transitions, just skip it
</span><span class="cx">     if (!currentStyle || (!targetStyle-&gt;transitions() &amp;&amp; m_transitions.isEmpty()))
</span><span class="lines">@@ -93,7 +93,7 @@
</span><span class="cx">     // Check to see if we need to update the active transitions
</span><span class="cx">     if (targetStyle-&gt;transitions()) {
</span><span class="cx">         for (size_t i = 0; i &lt; targetStyle-&gt;transitions()-&gt;size(); ++i) {
</span><del>-            Animation&amp; animation = targetStyle-&gt;transitions()-&gt;animation(i);
</del><ins>+            auto&amp; animation = targetStyle-&gt;transitions()-&gt;animation(i);
</ins><span class="cx">             bool isActiveTransition = !m_suspended &amp;&amp; (animation.duration() || animation.delay() &gt; 0);
</span><span class="cx"> 
</span><span class="cx">             Animation::AnimationMode mode = animation.animationMode();
</span><span class="lines">@@ -122,7 +122,7 @@
</span><span class="cx">                 // and we have to use the unanimatedStyle from the animation. We do the test
</span><span class="cx">                 // against the unanimated style here, but we &quot;override&quot; the transition later.
</span><span class="cx">                 RefPtr&lt;KeyframeAnimation&gt; keyframeAnim = getAnimationForProperty(prop);
</span><del>-                RenderStyle* fromStyle = keyframeAnim ? keyframeAnim-&gt;unanimatedStyle() : currentStyle;
</del><ins>+                auto* fromStyle = keyframeAnim ? keyframeAnim-&gt;unanimatedStyle() : currentStyle;
</ins><span class="cx"> 
</span><span class="cx">                 // See if there is a current transition for this prop
</span><span class="cx">                 ImplicitAnimation* implAnim = m_transitions.get(prop);
</span><span class="lines">@@ -195,7 +195,7 @@
</span><span class="cx">         m_transitions.remove(propertyToRemove);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void CompositeAnimation::updateKeyframeAnimations(RenderElement* renderer, RenderStyle* currentStyle, RenderStyle* targetStyle)
</del><ins>+void CompositeAnimation::updateKeyframeAnimations(RenderElement* renderer, const RenderStyle* currentStyle, const RenderStyle* targetStyle)
</ins><span class="cx"> {
</span><span class="cx">     // Nothing to do if we don't have any animations, and didn't have any before
</span><span class="cx">     if (m_keyframeAnimations.isEmpty() &amp;&amp; !targetStyle-&gt;hasAnimations())
</span><span class="lines">@@ -221,7 +221,7 @@
</span><span class="cx">     if (targetStyle-&gt;animations()) {
</span><span class="cx">         int numAnims = targetStyle-&gt;animations()-&gt;size();
</span><span class="cx">         for (int i = 0; i &lt; numAnims; ++i) {
</span><del>-            Animation&amp; animation = targetStyle-&gt;animations()-&gt;animation(i);
</del><ins>+            auto&amp; animation = targetStyle-&gt;animations()-&gt;animation(i);
</ins><span class="cx">             AtomicString animationName(animation.name());
</span><span class="cx"> 
</span><span class="cx">             if (!animation.isValidAnimation())
</span><span class="lines">@@ -284,7 +284,7 @@
</span><span class="cx">     std::swap(newAnimations, m_keyframeAnimations);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool CompositeAnimation::animate(RenderElement&amp; renderer, RenderStyle* currentStyle, RenderStyle&amp; targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; blendedStyle)
</del><ins>+bool CompositeAnimation::animate(RenderElement&amp; renderer, const RenderStyle* currentStyle, const RenderStyle&amp; targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; blendedStyle)
</ins><span class="cx"> {
</span><span class="cx">     // We don't do any transitions if we don't have a currentStyle (on startup).
</span><span class="cx">     updateTransitions(&amp;renderer, currentStyle, &amp;targetStyle);
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationCompositeAnimationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/CompositeAnimation.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/CompositeAnimation.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/animation/CompositeAnimation.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx">     
</span><span class="cx">     void clearRenderer();
</span><span class="cx"> 
</span><del>-    bool animate(RenderElement&amp;, RenderStyle* currentStyle, RenderStyle&amp; targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; blendedStyle);
</del><ins>+    bool animate(RenderElement&amp;, const RenderStyle* currentStyle, const RenderStyle&amp; targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; blendedStyle);
</ins><span class="cx">     std::unique_ptr&lt;RenderStyle&gt; getAnimatedStyle() const;
</span><span class="cx">     bool computeExtentOfTransformAnimation(LayoutRect&amp;) const;
</span><span class="cx"> 
</span><span class="lines">@@ -88,8 +88,8 @@
</span><span class="cx"> private:
</span><span class="cx">     CompositeAnimation(AnimationControllerPrivate&amp;);
</span><span class="cx"> 
</span><del>-    void updateTransitions(RenderElement*, RenderStyle* currentStyle, RenderStyle* targetStyle);
-    void updateKeyframeAnimations(RenderElement*, RenderStyle* currentStyle, RenderStyle* targetStyle);
</del><ins>+    void updateTransitions(RenderElement*, const RenderStyle* currentStyle, const RenderStyle* targetStyle);
+    void updateKeyframeAnimations(RenderElement*, const RenderStyle* currentStyle, const RenderStyle* targetStyle);
</ins><span class="cx">     
</span><span class="cx">     typedef HashMap&lt;int, RefPtr&lt;ImplicitAnimation&gt;&gt; CSSPropertyTransitionsMap;
</span><span class="cx">     typedef HashMap&lt;AtomicStringImpl*, RefPtr&lt;KeyframeAnimation&gt;&gt; AnimationNameMap;
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationImplicitAnimationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/ImplicitAnimation.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/ImplicitAnimation.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/animation/ImplicitAnimation.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -39,7 +39,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-ImplicitAnimation::ImplicitAnimation(Animation&amp; transition, CSSPropertyID animatingProperty, RenderElement* renderer, CompositeAnimation* compAnim, RenderStyle* fromStyle)
</del><ins>+ImplicitAnimation::ImplicitAnimation(const Animation&amp; transition, CSSPropertyID animatingProperty, RenderElement* renderer, CompositeAnimation* compAnim, const RenderStyle* fromStyle)
</ins><span class="cx">     : AnimationBase(transition, renderer, compAnim)
</span><span class="cx">     , m_fromStyle(RenderStyle::clonePtr(*fromStyle))
</span><span class="cx">     , m_transitionProperty(transition.property())
</span><span class="lines">@@ -60,7 +60,7 @@
</span><span class="cx">     return m_object-&gt;document().hasListenerType(inListenerType);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool ImplicitAnimation::animate(CompositeAnimation*, RenderElement*, const RenderStyle*, RenderStyle* targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle)
</del><ins>+bool ImplicitAnimation::animate(CompositeAnimation*, RenderElement*, const RenderStyle*, const RenderStyle* targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle)
</ins><span class="cx"> {
</span><span class="cx">     // If we get this far and the animation is done, it means we are cleaning up a just finished animation.
</span><span class="cx">     // So just return. Everything is already all cleaned up.
</span><span class="lines">@@ -205,7 +205,7 @@
</span><span class="cx">     return false; // Didn't dispatch an event
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void ImplicitAnimation::reset(RenderStyle* to)
</del><ins>+void ImplicitAnimation::reset(const RenderStyle* to)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(to);
</span><span class="cx">     ASSERT(m_fromStyle);
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationImplicitAnimationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/ImplicitAnimation.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/ImplicitAnimation.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/animation/ImplicitAnimation.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> // for a single RenderElement.
</span><span class="cx"> class ImplicitAnimation : public AnimationBase {
</span><span class="cx"> public:
</span><del>-    static Ref&lt;ImplicitAnimation&gt; create(Animation&amp; animation, CSSPropertyID animatingProperty, RenderElement* renderer, CompositeAnimation* compositeAnimation, RenderStyle* fromStyle)
</del><ins>+    static Ref&lt;ImplicitAnimation&gt; create(const Animation&amp; animation, CSSPropertyID animatingProperty, RenderElement* renderer, CompositeAnimation* compositeAnimation, const RenderStyle* fromStyle)
</ins><span class="cx">     {
</span><span class="cx">         return adoptRef(*new ImplicitAnimation(animation, animatingProperty, renderer, compositeAnimation, fromStyle));
</span><span class="cx">     };
</span><span class="lines">@@ -54,9 +54,9 @@
</span><span class="cx">     void pauseAnimation(double timeOffset) override;
</span><span class="cx">     void endAnimation() override;
</span><span class="cx"> 
</span><del>-    bool animate(CompositeAnimation*, RenderElement*, const RenderStyle* currentStyle, RenderStyle* targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle) override;
</del><ins>+    bool animate(CompositeAnimation*, RenderElement*, const RenderStyle* currentStyle, const RenderStyle* targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle) override;
</ins><span class="cx">     void getAnimatedStyle(std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle) override;
</span><del>-    virtual void reset(RenderStyle* to);
</del><ins>+    void reset(const RenderStyle* to);
</ins><span class="cx"> 
</span><span class="cx">     bool computeExtentOfTransformAnimation(LayoutRect&amp;) const override;
</span><span class="cx"> 
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    ImplicitAnimation(Animation&amp;, CSSPropertyID, RenderElement*, CompositeAnimation*, RenderStyle*);
</del><ins>+    ImplicitAnimation(const Animation&amp;, CSSPropertyID, RenderElement*, CompositeAnimation*, const RenderStyle*);
</ins><span class="cx">     virtual ~ImplicitAnimation();
</span><span class="cx"> 
</span><span class="cx">     // The two styles that we are blending.
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationKeyframeAnimationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-KeyframeAnimation::KeyframeAnimation(Animation&amp; animation, RenderElement* renderer, CompositeAnimation* compositeAnimation, RenderStyle* unanimatedStyle)
</del><ins>+KeyframeAnimation::KeyframeAnimation(const Animation&amp; animation, RenderElement* renderer, CompositeAnimation* compositeAnimation, const RenderStyle* unanimatedStyle)
</ins><span class="cx">     : AnimationBase(animation, renderer, compositeAnimation)
</span><span class="cx">     , m_keyframes(animation.name())
</span><span class="cx">     , m_unanimatedStyle(RenderStyle::clonePtr(*unanimatedStyle))
</span><span class="lines">@@ -124,7 +124,7 @@
</span><span class="cx">     prog = progress(scale, offset, prevKeyframe.timingFunction(name()));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool KeyframeAnimation::animate(CompositeAnimation* compositeAnimation, RenderElement*, const RenderStyle*, RenderStyle* targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle)
</del><ins>+bool KeyframeAnimation::animate(CompositeAnimation* compositeAnimation, RenderElement*, const RenderStyle*, const RenderStyle* targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle)
</ins><span class="cx"> {
</span><span class="cx">     // Fire the start timeout if needed
</span><span class="cx">     fireAnimationEventsIfNeeded();
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationKeyframeAnimationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/KeyframeAnimation.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/KeyframeAnimation.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/animation/KeyframeAnimation.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -40,12 +40,12 @@
</span><span class="cx"> // A KeyframeAnimation tracks the state of an explicit animation for a single RenderElement.
</span><span class="cx"> class KeyframeAnimation final : public AnimationBase {
</span><span class="cx"> public:
</span><del>-    static Ref&lt;KeyframeAnimation&gt; create(Animation&amp; animation, RenderElement* renderer, CompositeAnimation* compositeAnimation, RenderStyle* unanimatedStyle)
</del><ins>+    static Ref&lt;KeyframeAnimation&gt; create(const Animation&amp; animation, RenderElement* renderer, CompositeAnimation* compositeAnimation, const RenderStyle* unanimatedStyle)
</ins><span class="cx">     {
</span><span class="cx">         return adoptRef(*new KeyframeAnimation(animation, renderer, compositeAnimation, unanimatedStyle));
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    bool animate(CompositeAnimation*, RenderElement*, const RenderStyle* currentStyle, RenderStyle* targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle) override;
</del><ins>+    bool animate(CompositeAnimation*, RenderElement*, const RenderStyle* currentStyle, const RenderStyle* targetStyle, std::unique_ptr&lt;RenderStyle&gt;&amp; animatedStyle) override;
</ins><span class="cx">     void getAnimatedStyle(std::unique_ptr&lt;RenderStyle&gt;&amp;) override;
</span><span class="cx"> 
</span><span class="cx">     bool computeExtentOfTransformAnimation(LayoutRect&amp;) const override;
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    KeyframeAnimation(Animation&amp;, RenderElement*, CompositeAnimation*, RenderStyle* unanimatedStyle);
</del><ins>+    KeyframeAnimation(const Animation&amp;, RenderElement*, CompositeAnimation*, const RenderStyle* unanimatedStyle);
</ins><span class="cx">     virtual ~KeyframeAnimation();
</span><span class="cx">     
</span><span class="cx">     // Get the styles for the given property surrounding the current animation time and the progress between them.
</span></span></pre></div>
<a id="trunkSourceWebCorepageiosFrameIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/ios/FrameIOS.mm (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/ios/FrameIOS.mm        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/page/ios/FrameIOS.mm        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -287,7 +287,7 @@
</span><span class="cx">             continue;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        RenderStyle&amp; style = renderer-&gt;style();
</del><ins>+        auto&amp; style = renderer-&gt;style();
</ins><span class="cx"> 
</span><span class="cx">         if (renderer-&gt;hasOverflowClip() &amp;&amp;
</span><span class="cx">             (style.overflowY() == OAUTO || style.overflowY() == OSCROLL || style.overflowY() == OOVERLAY ||
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingFlowThreadControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/FlowThreadController.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/FlowThreadController.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/FlowThreadController.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx"> 
</span><span class="cx"> void FlowThreadController::styleDidChange()
</span><span class="cx"> {
</span><del>-    RenderStyle&amp; viewStyle = m_view-&gt;style();
</del><ins>+    auto&amp; viewStyle = m_view-&gt;style();
</ins><span class="cx">     for (auto&amp; flowRenderer : *m_renderNamedFlowThreadList)
</span><span class="cx">         flowRenderer-&gt;setStyle(RenderFlowThread::createFlowThreadStyle(&amp;viewStyle));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingInlineFlowBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/InlineFlowBox.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/InlineFlowBox.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/InlineFlowBox.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1328,7 +1328,7 @@
</span><span class="cx"> static LayoutRect clipRectForNinePieceImageStrip(InlineFlowBox* box, const NinePieceImage&amp; image, const LayoutRect&amp; paintRect)
</span><span class="cx"> {
</span><span class="cx">     LayoutRect clipRect(paintRect);
</span><del>-    RenderStyle&amp; style = box-&gt;renderer().style();
</del><ins>+    auto&amp; style = box-&gt;renderer().style();
</ins><span class="cx">     LayoutBoxExtent outsets = style.imageOutsets(image);
</span><span class="cx">     if (box-&gt;isHorizontal()) {
</span><span class="cx">         clipRect.setY(paintRect.y() - outsets.top());
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBlockcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBlock.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBlock.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderBlock.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -287,7 +287,7 @@
</span><span class="cx"> 
</span><span class="cx"> void RenderBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle)
</span><span class="cx"> {
</span><del>-    RenderStyle&amp; newStyle = style();
</del><ins>+    auto&amp; newStyle = style();
</ins><span class="cx"> 
</span><span class="cx">     bool hadTransform = hasTransform();
</span><span class="cx">     bool flowThreadContainingBlockInvalidated = false;
</span><span class="lines">@@ -2837,7 +2837,7 @@
</span><span class="cx">         return RenderBox::lineHeight(firstLine, direction, linePositionMode);
</span><span class="cx"> 
</span><span class="cx">     if (firstLine &amp;&amp; view().usesFirstLineRules()) {
</span><del>-        RenderStyle&amp; s = firstLine ? firstLineStyle() : style();
</del><ins>+        auto&amp; s = firstLine ? firstLineStyle() : style();
</ins><span class="cx">         if (&amp;s != &amp;style())
</span><span class="cx">             return s.computedLineHeight();
</span><span class="cx">     }
</span><span class="lines">@@ -2976,9 +2976,9 @@
</span><span class="cx">     return firstLineBlock;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static RenderStyle&amp; styleForFirstLetter(RenderElement* firstLetterBlock, RenderObject* firstLetterContainer)
</del><ins>+static const RenderStyle&amp; styleForFirstLetter(RenderElement* firstLetterBlock, RenderObject* firstLetterContainer)
</ins><span class="cx"> {
</span><del>-    RenderStyle* pseudoStyle = firstLetterBlock-&gt;getCachedPseudoStyle(FIRST_LETTER, &amp;firstLetterContainer-&gt;firstLineStyle());
</del><ins>+    auto* pseudoStyle = firstLetterBlock-&gt;getMutableCachedPseudoStyle(FIRST_LETTER, &amp;firstLetterContainer-&gt;firstLineStyle());
</ins><span class="cx">     
</span><span class="cx">     // If we have an initial letter drop that is &gt;= 1, then we need to force floating to be on.
</span><span class="cx">     if (pseudoStyle-&gt;initialLetterDrop() &gt;= 1 &amp;&amp; !pseudoStyle-&gt;isFloating())
</span><span class="lines">@@ -3061,7 +3061,7 @@
</span><span class="cx"> {
</span><span class="cx">     RenderElement* firstLetter = currentChild-&gt;parent();
</span><span class="cx">     RenderElement* firstLetterContainer = firstLetter-&gt;parent();
</span><del>-    RenderStyle&amp; pseudoStyle = styleForFirstLetter(firstLetterBlock, firstLetterContainer);
</del><ins>+    auto&amp; pseudoStyle = styleForFirstLetter(firstLetterBlock, firstLetterContainer);
</ins><span class="cx">     ASSERT(firstLetter-&gt;isFloating() || firstLetter-&gt;isInline());
</span><span class="cx"> 
</span><span class="cx">     if (Style::determineChange(firstLetter-&gt;style(), pseudoStyle) == Style::Detach) {
</span><span class="lines">@@ -3102,7 +3102,7 @@
</span><span class="cx"> void RenderBlock::createFirstLetterRenderer(RenderElement* firstLetterBlock, RenderText* currentTextChild)
</span><span class="cx"> {
</span><span class="cx">     RenderElement* firstLetterContainer = currentTextChild-&gt;parent();
</span><del>-    RenderStyle&amp; pseudoStyle = styleForFirstLetter(firstLetterBlock, firstLetterContainer);
</del><ins>+    auto&amp; pseudoStyle = styleForFirstLetter(firstLetterBlock, firstLetterContainer);
</ins><span class="cx">     RenderBoxModelObject* firstLetter = nullptr;
</span><span class="cx">     if (pseudoStyle.display() == INLINE)
</span><span class="cx">         firstLetter = new RenderInline(document(), RenderStyle::clone(pseudoStyle));
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBlockFlowcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBlockFlow.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBlockFlow.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderBlockFlow.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1615,7 +1615,7 @@
</span><span class="cx">     return result;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static inline LayoutUnit calculateMinimumPageHeight(RenderStyle&amp; renderStyle, RootInlineBox&amp; lastLine, LayoutUnit lineTop, LayoutUnit lineBottom)
</del><ins>+static inline LayoutUnit calculateMinimumPageHeight(const RenderStyle&amp; renderStyle, RootInlineBox&amp; lastLine, LayoutUnit lineTop, LayoutUnit lineBottom)
</ins><span class="cx"> {
</span><span class="cx">     // We may require a certain minimum number of lines per page in order to satisfy
</span><span class="cx">     // orphans and widows, and that may affect the minimum page height.
</span><span class="lines">@@ -3723,7 +3723,7 @@
</span><span class="cx">     for (RenderObject* descendent = traverseNext(this, isNonBlocksOrNonFixedHeightListItems); descendent; descendent = descendent-&gt;traverseNext(this, isNonBlocksOrNonFixedHeightListItems)) {
</span><span class="cx">         if (isVisibleRenderText(descendent) &amp;&amp; resizeTextPermitted(descendent)) {
</span><span class="cx">             RenderText&amp; text = downcast&lt;RenderText&gt;(*descendent);
</span><del>-            RenderStyle&amp; oldStyle = text.style();
</del><ins>+            auto&amp; oldStyle = text.style();
</ins><span class="cx">             auto fontDescription = oldStyle.fontDescription();
</span><span class="cx">             float specifiedSize = fontDescription.specifiedSize();
</span><span class="cx">             float scaledSize = roundf(specifiedSize * scale);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBox.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBox.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderBox.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -384,7 +384,7 @@
</span><span class="cx">     if (isDocElementRenderer || isBodyRenderer) {
</span><span class="cx">         // Propagate the new writing mode and direction up to the RenderView.
</span><span class="cx">         auto* documentElementRenderer = document().documentElement()-&gt;renderer();
</span><del>-        RenderStyle&amp; viewStyle = view().style();
</del><ins>+        auto&amp; viewStyle = view().mutableStyle();
</ins><span class="cx">         bool viewChangedWritingMode = false;
</span><span class="cx">         bool rootStyleChanged = false;
</span><span class="cx">         bool viewStyleChanged = false;
</span><span class="lines">@@ -393,7 +393,7 @@
</span><span class="cx">             viewStyle.setDirection(newStyle.direction());
</span><span class="cx">             viewStyleChanged = true;
</span><span class="cx">             if (isBodyRenderer) {
</span><del>-                rootRenderer-&gt;style().setDirection(newStyle.direction());
</del><ins>+                rootRenderer-&gt;mutableStyle().setDirection(newStyle.direction());
</ins><span class="cx">                 rootStyleChanged = true;
</span><span class="cx">             }
</span><span class="cx">             setNeedsLayoutAndPrefWidthsRecalc();
</span><span class="lines">@@ -407,7 +407,7 @@
</span><span class="cx">             view().markAllDescendantsWithFloatsForLayout();
</span><span class="cx">             if (isBodyRenderer) {
</span><span class="cx">                 rootStyleChanged = true;
</span><del>-                rootRenderer-&gt;style().setWritingMode(newStyle.writingMode());
</del><ins>+                rootRenderer-&gt;mutableStyle().setWritingMode(newStyle.writingMode());
</ins><span class="cx">                 rootRenderer-&gt;setHorizontalWritingMode(newStyle.isHorizontalWritingMode());
</span><span class="cx">             }
</span><span class="cx">             setNeedsLayoutAndPrefWidthsRecalc();
</span><span class="lines">@@ -432,8 +432,8 @@
</span><span class="cx">             // Propagate the body font back up to the RenderView and use it as
</span><span class="cx">             // the basis of the grid.
</span><span class="cx">             if (newStyle.fontDescription() != view().style().fontDescription()) {
</span><del>-                view().style().setFontDescription(newStyle.fontDescription());
-                view().style().fontCascade().update(&amp;document().fontSelector());
</del><ins>+                view().mutableStyle().setFontDescription(newStyle.fontDescription());
+                view().mutableStyle().fontCascade().update(&amp;document().fontSelector());
</ins><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -680,7 +680,7 @@
</span><span class="cx"> 
</span><span class="cx"> RoundedRect::Radii RenderBox::borderRadii() const
</span><span class="cx"> {
</span><del>-    RenderStyle&amp; style = this-&gt;style();
</del><ins>+    auto&amp; style = this-&gt;style();
</ins><span class="cx">     LayoutRect bounds = frameRect();
</span><span class="cx"> 
</span><span class="cx">     unsigned borderLeft = style.borderLeftWidth();
</span><span class="lines">@@ -4814,7 +4814,7 @@
</span><span class="cx">     return nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-LayoutRect RenderBox::logicalVisualOverflowRectForPropagation(RenderStyle* parentStyle) const
</del><ins>+LayoutRect RenderBox::logicalVisualOverflowRectForPropagation(const RenderStyle* parentStyle) const
</ins><span class="cx"> {
</span><span class="cx">     LayoutRect rect = visualOverflowRectForPropagation(parentStyle);
</span><span class="cx">     if (!parentStyle-&gt;isHorizontalWritingMode())
</span><span class="lines">@@ -4822,7 +4822,7 @@
</span><span class="cx">     return rect;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-LayoutRect RenderBox::visualOverflowRectForPropagation(RenderStyle* parentStyle) const
</del><ins>+LayoutRect RenderBox::visualOverflowRectForPropagation(const RenderStyle* parentStyle) const
</ins><span class="cx"> {
</span><span class="cx">     // If the writing modes of the child and parent match, then we don't have to 
</span><span class="cx">     // do anything fancy. Just return the result.
</span><span class="lines">@@ -4840,7 +4840,7 @@
</span><span class="cx">     return rect;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-LayoutRect RenderBox::logicalLayoutOverflowRectForPropagation(RenderStyle* parentStyle) const
</del><ins>+LayoutRect RenderBox::logicalLayoutOverflowRectForPropagation(const RenderStyle* parentStyle) const
</ins><span class="cx"> {
</span><span class="cx">     LayoutRect rect = layoutOverflowRectForPropagation(parentStyle);
</span><span class="cx">     if (!parentStyle-&gt;isHorizontalWritingMode())
</span><span class="lines">@@ -4848,7 +4848,7 @@
</span><span class="cx">     return rect;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-LayoutRect RenderBox::layoutOverflowRectForPropagation(RenderStyle* parentStyle) const
</del><ins>+LayoutRect RenderBox::layoutOverflowRectForPropagation(const RenderStyle* parentStyle) const
</ins><span class="cx"> {
</span><span class="cx">     // Only propagate interior layout overflow if we don't clip it.
</span><span class="cx">     LayoutRect rect = borderBoxRect();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBoxh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBox.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBox.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderBox.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -563,10 +563,10 @@
</span><span class="cx">             applyTopLeftLocationOffsetWithFlipping(point);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    LayoutRect logicalVisualOverflowRectForPropagation(RenderStyle*) const;
-    LayoutRect visualOverflowRectForPropagation(RenderStyle*) const;
-    LayoutRect logicalLayoutOverflowRectForPropagation(RenderStyle*) const;
-    LayoutRect layoutOverflowRectForPropagation(RenderStyle*) const;
</del><ins>+    LayoutRect logicalVisualOverflowRectForPropagation(const RenderStyle*) const;
+    LayoutRect visualOverflowRectForPropagation(const RenderStyle*) const;
+    LayoutRect logicalLayoutOverflowRectForPropagation(const RenderStyle*) const;
+    LayoutRect layoutOverflowRectForPropagation(const RenderStyle*) const;
</ins><span class="cx"> 
</span><span class="cx">     bool hasRenderOverflow() const { return m_overflow; }    
</span><span class="cx">     bool hasVisualOverflow() const { return m_overflow &amp;&amp; !borderBoxRect().contains(m_overflow-&gt;visualOverflowRect()); }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBoxModelObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -581,7 +581,7 @@
</span><span class="cx">     return getBackgroundRoundedRect(borderRect, box, boxSize.width(), boxSize.height(), includeLogicalLeftEdge, includeLogicalRightEdge);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void applyBoxShadowForBackground(GraphicsContext&amp; context, RenderStyle* style)
</del><ins>+static void applyBoxShadowForBackground(GraphicsContext&amp; context, const RenderStyle* style)
</ins><span class="cx"> {
</span><span class="cx">     const ShadowData* boxShadow = style-&gt;boxShadow();
</span><span class="cx">     while (boxShadow-&gt;style() != Normal)
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderButtoncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderButton.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderButton.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderButton.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx">         // Create an anonymous block.
</span><span class="cx">         ASSERT(!firstChild());
</span><span class="cx">         m_inner = createAnonymousBlock(style().display());
</span><del>-        setupInnerStyle(&amp;m_inner-&gt;style());
</del><ins>+        setupInnerStyle(&amp;m_inner-&gt;mutableStyle());
</ins><span class="cx">         RenderFlexibleBox::addChild(m_inner);
</span><span class="cx">     }
</span><span class="cx">     
</span><span class="lines">@@ -97,9 +97,9 @@
</span><span class="cx">         // it right below. Here we change it back to 0 to avoid getting a spurious layout hint
</span><span class="cx">         // because of the difference. Same goes for the other properties.
</span><span class="cx">         // FIXME: Make this hack unnecessary.
</span><del>-        m_inner-&gt;style().setFlexGrow(newStyle.initialFlexGrow());
-        m_inner-&gt;style().setMarginTop(newStyle.initialMargin());
-        m_inner-&gt;style().setMarginBottom(newStyle.initialMargin());
</del><ins>+        m_inner-&gt;mutableStyle().setFlexGrow(newStyle.initialFlexGrow());
+        m_inner-&gt;mutableStyle().setMarginTop(newStyle.initialMargin());
+        m_inner-&gt;mutableStyle().setMarginBottom(newStyle.initialMargin());
</ins><span class="cx">     }
</span><span class="cx">     RenderBlock::styleWillChange(diff, newStyle);
</span><span class="cx"> }
</span><span class="lines">@@ -109,7 +109,7 @@
</span><span class="cx">     RenderBlock::styleDidChange(diff, oldStyle);
</span><span class="cx"> 
</span><span class="cx">     if (m_inner) // RenderBlock handled updating the anonymous block's style.
</span><del>-        setupInnerStyle(&amp;m_inner-&gt;style());
</del><ins>+        setupInnerStyle(&amp;m_inner-&gt;mutableStyle());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void RenderButton::setupInnerStyle(RenderStyle* innerStyle) 
</span><span class="lines">@@ -174,7 +174,7 @@
</span><span class="cx">     RenderFlexibleBox::layout();
</span><span class="cx"> 
</span><span class="cx">     // FIXME: We should not be adjusting styles during layout. See &lt;rdar://problem/7675493&gt;.
</span><del>-    RenderThemeIOS::adjustRoundBorderRadius(style(), *this);
</del><ins>+    RenderThemeIOS::adjustRoundBorderRadius(mutableStyle(), *this);
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderDeprecatedFlexibleBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -165,7 +165,7 @@
</span><span class="cx"> 
</span><span class="cx"> void RenderDeprecatedFlexibleBox::styleWillChange(StyleDifference diff, const RenderStyle&amp; newStyle)
</span><span class="cx"> {
</span><del>-    RenderStyle* oldStyle = hasInitializedStyle() ? &amp;style() : nullptr;
</del><ins>+    auto* oldStyle = hasInitializedStyle() ? &amp;style() : nullptr;
</ins><span class="cx">     if (oldStyle &amp;&amp; !oldStyle-&gt;lineClamp().isNone() &amp;&amp; newStyle.lineClamp().isNone())
</span><span class="cx">         clearLineClamp();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderElement.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderElement.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderElement.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -205,11 +205,6 @@
</span><span class="cx">     return nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-enum StyleCacheState {
-    Cached,
-    Uncached
-};
-
</del><span class="cx"> std::unique_ptr&lt;RenderStyle&gt; RenderElement::uncachedFirstLineStyle(RenderStyle* style) const
</span><span class="cx"> {
</span><span class="cx">     if (!view().usesFirstLineRules())
</span><span class="lines">@@ -221,14 +216,14 @@
</span><span class="cx">         if (RenderBlock* firstLineBlock = rendererForFirstLineStyle.firstLineBlock())
</span><span class="cx">             return firstLineBlock-&gt;getUncachedPseudoStyle(PseudoStyleRequest(FIRST_LINE), style, firstLineBlock == this ? style : nullptr);
</span><span class="cx">     } else if (!rendererForFirstLineStyle.isAnonymous() &amp;&amp; rendererForFirstLineStyle.isRenderInline()) {
</span><del>-        RenderStyle&amp; parentStyle = rendererForFirstLineStyle.parent()-&gt;firstLineStyle();
</del><ins>+        auto&amp; parentStyle = rendererForFirstLineStyle.parent()-&gt;firstLineStyle();
</ins><span class="cx">         if (&amp;parentStyle != &amp;rendererForFirstLineStyle.parent()-&gt;style())
</span><span class="cx">             return rendererForFirstLineStyle.getUncachedPseudoStyle(PseudoStyleRequest(FIRST_LINE_INHERITED), &amp;parentStyle, style);
</span><span class="cx">     }
</span><span class="cx">     return nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle* RenderElement::cachedFirstLineStyle() const
</del><ins>+const RenderStyle* RenderElement::cachedFirstLineStyle() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(view().usesFirstLineRules());
</span><span class="cx"> 
</span><span class="lines">@@ -238,10 +233,10 @@
</span><span class="cx">         if (RenderBlock* firstLineBlock = rendererForFirstLineStyle.firstLineBlock())
</span><span class="cx">             return firstLineBlock-&gt;getCachedPseudoStyle(FIRST_LINE, &amp;style());
</span><span class="cx">     } else if (!rendererForFirstLineStyle.isAnonymous() &amp;&amp; rendererForFirstLineStyle.isRenderInline()) {
</span><del>-        RenderStyle&amp; parentStyle = rendererForFirstLineStyle.parent()-&gt;firstLineStyle();
</del><ins>+        auto&amp; parentStyle = rendererForFirstLineStyle.parent()-&gt;firstLineStyle();
</ins><span class="cx">         if (&amp;parentStyle != &amp;rendererForFirstLineStyle.parent()-&gt;style()) {
</span><span class="cx">             // A first-line style is in effect. Cache a first-line style for ourselves.
</span><del>-            rendererForFirstLineStyle.style().setHasPseudoStyle(FIRST_LINE_INHERITED);
</del><ins>+            rendererForFirstLineStyle.m_style.setHasPseudoStyle(FIRST_LINE_INHERITED);
</ins><span class="cx">             return rendererForFirstLineStyle.getCachedPseudoStyle(FIRST_LINE_INHERITED, &amp;parentStyle);
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -249,7 +244,7 @@
</span><span class="cx">     return &amp;style();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle&amp; RenderElement::firstLineStyle() const
</del><ins>+const RenderStyle&amp; RenderElement::firstLineStyle() const
</ins><span class="cx"> {
</span><span class="cx">     return view().usesFirstLineRules() ? *cachedFirstLineStyle() : style();
</span><span class="cx"> }
</span><span class="lines">@@ -806,7 +801,7 @@
</span><span class="cx"> 
</span><span class="cx"> void RenderElement::styleWillChange(StyleDifference diff, const RenderStyle&amp; newStyle)
</span><span class="cx"> {
</span><del>-    RenderStyle* oldStyle = hasInitializedStyle() ? &amp;style() : nullptr;
</del><ins>+    auto* oldStyle = hasInitializedStyle() ? &amp;style() : nullptr;
</ins><span class="cx">     if (oldStyle) {
</span><span class="cx">         // If our z-index changes value or our visibility changes,
</span><span class="cx">         // we need to dirty our stacking context's z-order list.
</span><span class="lines">@@ -1535,7 +1530,7 @@
</span><span class="cx">     controlStatesRendererMap().add(o, states);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle* RenderElement::getCachedPseudoStyle(PseudoId pseudo, RenderStyle* parentStyle) const
</del><ins>+const RenderStyle* RenderElement::getCachedPseudoStyle(PseudoId pseudo, const RenderStyle* parentStyle) const
</ins><span class="cx"> {
</span><span class="cx">     if (pseudo &lt; FIRST_INTERNAL_PSEUDOID &amp;&amp; !style().hasPseudoStyle(pseudo))
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -1546,12 +1541,27 @@
</span><span class="cx"> 
</span><span class="cx">     std::unique_ptr&lt;RenderStyle&gt; result = getUncachedPseudoStyle(PseudoStyleRequest(pseudo), parentStyle);
</span><span class="cx">     if (result)
</span><del>-        return style().addCachedPseudoStyle(WTFMove(result));
</del><ins>+        return const_cast&lt;RenderStyle&amp;&gt;(m_style).addCachedPseudoStyle(WTFMove(result));
</ins><span class="cx">     return nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-std::unique_ptr&lt;RenderStyle&gt; RenderElement::getUncachedPseudoStyle(const PseudoStyleRequest&amp; pseudoStyleRequest, RenderStyle* parentStyle, RenderStyle* ownStyle) const
</del><ins>+RenderStyle* RenderElement::getMutableCachedPseudoStyle(PseudoId pseudo, const RenderStyle* parentStyle)
</ins><span class="cx"> {
</span><ins>+    if (pseudo &lt; FIRST_INTERNAL_PSEUDOID &amp;&amp; !style().hasPseudoStyle(pseudo))
+        return nullptr;
+
+    RenderStyle* cachedStyle = style().getCachedPseudoStyle(pseudo);
+    if (cachedStyle)
+        return cachedStyle;
+
+    std::unique_ptr&lt;RenderStyle&gt; result = getUncachedPseudoStyle(PseudoStyleRequest(pseudo), parentStyle);
+    if (result)
+        return m_style.addCachedPseudoStyle(WTFMove(result));
+    return nullptr;
+}
+
+std::unique_ptr&lt;RenderStyle&gt; RenderElement::getUncachedPseudoStyle(const PseudoStyleRequest&amp; pseudoStyleRequest, const RenderStyle* parentStyle, const RenderStyle* ownStyle) const
+{
</ins><span class="cx">     if (pseudoStyleRequest.pseudoId &lt; FIRST_INTERNAL_PSEUDOID &amp;&amp; !ownStyle &amp;&amp; !style().hasPseudoStyle(pseudoStyleRequest.pseudoId))
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span><span class="lines">@@ -2066,7 +2076,7 @@
</span><span class="cx">     if (!hasOutline())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; styleToUse = style();
</del><ins>+    auto&amp; styleToUse = style();
</ins><span class="cx">     float outlineWidth = floorToDevicePixel(styleToUse.outlineWidth(), document().deviceScaleFactor());
</span><span class="cx">     float outlineOffset = floorToDevicePixel(styleToUse.outlineOffset(), document().deviceScaleFactor());
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderElement.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderElement.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderElement.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -40,9 +40,12 @@
</span><span class="cx"> 
</span><span class="cx">     bool hasInitializedStyle() const { return m_hasInitializedStyle; }
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style() const { return const_cast&lt;RenderStyle&amp;&gt;(m_style); }
-    RenderStyle&amp; firstLineStyle() const;
</del><ins>+    const RenderStyle&amp; style() const { return m_style; }
+    const RenderStyle&amp; firstLineStyle() const;
</ins><span class="cx"> 
</span><ins>+    // FIXME: Style shouldn't be mutated.
+    RenderStyle&amp; mutableStyle() { return m_style; }
+
</ins><span class="cx">     void initializeStyle();
</span><span class="cx"> 
</span><span class="cx">     // Calling with minimalStyleDifference &gt; StyleDifferenceEqual indicates that
</span><span class="lines">@@ -52,8 +55,9 @@
</span><span class="cx"> 
</span><span class="cx">     // The pseudo element style can be cached or uncached.  Use the cached method if the pseudo element doesn't respect
</span><span class="cx">     // any pseudo classes (and therefore has no concept of changing state).
</span><del>-    RenderStyle* getCachedPseudoStyle(PseudoId, RenderStyle* parentStyle = nullptr) const;
-    std::unique_ptr&lt;RenderStyle&gt; getUncachedPseudoStyle(const PseudoStyleRequest&amp;, RenderStyle* parentStyle = nullptr, RenderStyle* ownStyle = nullptr) const;
</del><ins>+    const RenderStyle* getCachedPseudoStyle(PseudoId, const RenderStyle* parentStyle = nullptr) const;
+    RenderStyle* getMutableCachedPseudoStyle(PseudoId, const RenderStyle* parentStyle = nullptr);
+    std::unique_ptr&lt;RenderStyle&gt; getUncachedPseudoStyle(const PseudoStyleRequest&amp;, const RenderStyle* parentStyle = nullptr, const RenderStyle* ownStyle = nullptr) const;
</ins><span class="cx"> 
</span><span class="cx">     // This is null for anonymous renderers.
</span><span class="cx">     Element* element() const { return downcast&lt;Element&gt;(RenderObject::node()); }
</span><span class="lines">@@ -298,7 +302,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     StyleDifference adjustStyleDifference(StyleDifference, unsigned contextSensitiveProperties) const;
</span><del>-    RenderStyle* cachedFirstLineStyle() const;
</del><ins>+    const RenderStyle* cachedFirstLineStyle() const;
</ins><span class="cx"> 
</span><span class="cx">     void newImageAnimationFrameAvailable(CachedImage&amp;) final;
</span><span class="cx"> 
</span><span class="lines">@@ -450,14 +454,14 @@
</span><span class="cx">     return is&lt;RenderElement&gt;(*this) &amp;&amp; downcast&lt;RenderElement&gt;(*this).isRenderInline();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-inline RenderStyle&amp; RenderObject::style() const
</del><ins>+inline const RenderStyle&amp; RenderObject::style() const
</ins><span class="cx"> {
</span><span class="cx">     if (isText())
</span><span class="cx">         return m_parent-&gt;style();
</span><span class="cx">     return downcast&lt;RenderElement&gt;(*this).style();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-inline RenderStyle&amp; RenderObject::firstLineStyle() const
</del><ins>+inline const RenderStyle&amp; RenderObject::firstLineStyle() const
</ins><span class="cx"> {
</span><span class="cx">     if (isText())
</span><span class="cx">         return m_parent-&gt;firstLineStyle();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderEmbeddedObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderEmbeddedObject.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderEmbeddedObject.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderEmbeddedObject.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -522,8 +522,8 @@
</span><span class="cx">     LayoutStateMaintainer statePusher(view(), *this, locationOffset(), hasTransform() || hasReflection() || style().isFlippedBlocksWritingMode());
</span><span class="cx">     
</span><span class="cx">     childBox.setLocation(LayoutPoint(borderLeft(), borderTop()) + LayoutSize(paddingLeft(), paddingTop()));
</span><del>-    childBox.style().setHeight(Length(newSize.height(), Fixed));
-    childBox.style().setWidth(Length(newSize.width(), Fixed));
</del><ins>+    childBox.mutableStyle().setHeight(Length(newSize.height(), Fixed));
+    childBox.mutableStyle().setWidth(Length(newSize.width(), Fixed));
</ins><span class="cx">     childBox.setNeedsLayout(MarkOnlyThis);
</span><span class="cx">     childBox.layout();
</span><span class="cx">     clearChildNeedsLayout();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderFlowThreadcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderFlowThread.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderFlowThread.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderFlowThread.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx">     setFlowThreadState(InsideOutOfFlowThread);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle RenderFlowThread::createFlowThreadStyle(RenderStyle* parentStyle)
</del><ins>+RenderStyle RenderFlowThread::createFlowThreadStyle(const RenderStyle* parentStyle)
</ins><span class="cx"> {
</span><span class="cx">     auto newStyle = RenderStyle::create();
</span><span class="cx">     newStyle.inheritFrom(parentStyle);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderFlowThreadh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderFlowThread.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderFlowThread.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderFlowThread.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -99,7 +99,7 @@
</span><span class="cx">     // Called when a descendant box's layout is finished and it has been positioned within its container.
</span><span class="cx">     virtual void flowThreadDescendantBoxLaidOut(RenderBox*) { }
</span><span class="cx"> 
</span><del>-    static RenderStyle createFlowThreadStyle(RenderStyle* parentStyle);
</del><ins>+    static RenderStyle createFlowThreadStyle(const RenderStyle* parentStyle);
</ins><span class="cx"> 
</span><span class="cx">     void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderImagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderImage.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderImage.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderImage.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -716,8 +716,8 @@
</span><span class="cx"> 
</span><span class="cx">     if (shadowControlsNeedCustomLayoutMetrics()) {
</span><span class="cx">         controlsRenderer-&gt;setLocation(LayoutPoint(borderLeft(), borderTop()) + LayoutSize(paddingLeft(), paddingTop()));
</span><del>-        controlsRenderer-&gt;style().setHeight(Length(newSize.height(), Fixed));
-        controlsRenderer-&gt;style().setWidth(Length(newSize.width(), Fixed));
</del><ins>+        controlsRenderer-&gt;mutableStyle().setHeight(Length(newSize.height(), Fixed));
+        controlsRenderer-&gt;mutableStyle().setWidth(Length(newSize.width(), Fixed));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     controlsRenderer-&gt;setNeedsLayout(MarkOnlyThis);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderInlinecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderInline.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderInline.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderInline.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -187,7 +187,7 @@
</span><span class="cx">     // e.g., &lt;font&gt;foo &lt;h4&gt;goo&lt;/h4&gt; moo&lt;/font&gt;.  The &lt;font&gt; inlines before
</span><span class="cx">     // and after the block share the same style, but the block doesn't
</span><span class="cx">     // need to pass its style on to anyone else.
</span><del>-    RenderStyle&amp; newStyle = style();
</del><ins>+    auto&amp; newStyle = style();
</ins><span class="cx">     RenderInline* continuation = inlineElementContinuation();
</span><span class="cx">     if (continuation) {
</span><span class="cx">         for (RenderInline* currCont = continuation; currCont; currCont = currCont-&gt;inlineElementContinuation()) {
</span><span class="lines">@@ -220,7 +220,7 @@
</span><span class="cx">     if (alwaysCreateLineBoxes())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    RenderStyle* parentStyle = &amp;parent()-&gt;style();
</del><ins>+    auto* parentStyle = &amp;parent()-&gt;style();
</ins><span class="cx">     RenderInline* parentRenderInline = is&lt;RenderInline&gt;(*parent()) ? downcast&lt;RenderInline&gt;(parent()) : nullptr;
</span><span class="cx">     bool checkFonts = document().inNoQuirksMode();
</span><span class="cx">     RenderFlowThread* flowThread = flowThreadContainingBlock();
</span><span class="lines">@@ -235,7 +235,7 @@
</span><span class="cx">     if (!alwaysCreateLineBoxes &amp;&amp; checkFonts &amp;&amp; view().usesFirstLineRules()) {
</span><span class="cx">         // Have to check the first line style as well.
</span><span class="cx">         parentStyle = &amp;parent()-&gt;firstLineStyle();
</span><del>-        RenderStyle&amp; childStyle = firstLineStyle();
</del><ins>+        auto&amp; childStyle = firstLineStyle();
</ins><span class="cx">         alwaysCreateLineBoxes = !parentStyle-&gt;fontCascade().fontMetrics().hasIdenticalAscentDescentAndLineGap(childStyle.fontCascade().fontMetrics())
</span><span class="cx">             || childStyle.verticalAlign() != BASELINE
</span><span class="cx">             || parentStyle-&gt;lineHeight() != childStyle.lineHeight();
</span><span class="lines">@@ -1601,7 +1601,7 @@
</span><span class="cx">     if (!hasOutline())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; styleToUse = style();
</del><ins>+    auto&amp; styleToUse = style();
</ins><span class="cx">     // Only paint the focus ring by hand if the theme isn't able to draw it.
</span><span class="cx">     if (styleToUse.outlineStyleIsAuto() &amp;&amp; !theme().supportsFocusRing(styleToUse)) {
</span><span class="cx">         Vector&lt;LayoutRect&gt; focusRingRects;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayer.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayer.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -4111,7 +4111,7 @@
</span><span class="cx">         rootRelativeBoundsComputed = true;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = renderer().style();
</del><ins>+    auto&amp; style = renderer().style();
</ins><span class="cx">     ASSERT(style.clipPath());
</span><span class="cx">     if (is&lt;ShapeClipPathOperation&gt;(*style.clipPath()) || (is&lt;BoxClipPathOperation&gt;(*style.clipPath()) &amp;&amp; is&lt;RenderBox&gt;(renderer()))) {
</span><span class="cx">         WindRule windRule;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderListBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderListBox.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderListBox.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderListBox.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -354,7 +354,7 @@
</span><span class="cx">     m_vBar-&gt;paint(paintInfo.context(), snappedIntRect(paintInfo.rect));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static LayoutSize itemOffsetForAlignment(TextRun textRun, RenderStyle* itemStyle, FontCascade itemFont, LayoutRect itemBoudingBox)
</del><ins>+static LayoutSize itemOffsetForAlignment(TextRun textRun, const RenderStyle* itemStyle, FontCascade itemFont, LayoutRect itemBoudingBox)
</ins><span class="cx"> {
</span><span class="cx">     ETextAlign actualAlignment = itemStyle-&gt;textAlign();
</span><span class="cx">     // FIXME: Firefox doesn't respect JUSTIFY. Should we?
</span><span class="lines">@@ -379,7 +379,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; listItems = selectElement().listItems();
</span><span class="cx">     HTMLElement* listItemElement = listItems[listIndex];
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; itemStyle = *listItemElement-&gt;computedStyle();
</del><ins>+    auto&amp; itemStyle = *listItemElement-&gt;computedStyle();
</ins><span class="cx"> 
</span><span class="cx">     if (itemStyle.visibility() == HIDDEN)
</span><span class="cx">         return;
</span><span class="lines">@@ -423,7 +423,7 @@
</span><span class="cx"> {
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; listItems = selectElement().listItems();
</span><span class="cx">     HTMLElement* listItemElement = listItems[listIndex];
</span><del>-    RenderStyle&amp; itemStyle = *listItemElement-&gt;computedStyle();
</del><ins>+    auto&amp; itemStyle = *listItemElement-&gt;computedStyle();
</ins><span class="cx"> 
</span><span class="cx">     Color backColor;
</span><span class="cx">     if (is&lt;HTMLOptionElement&gt;(*listItemElement) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*listItemElement).selected()) {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderListMarkercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderListMarker.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderListMarker.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderListMarker.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1708,8 +1708,8 @@
</span><span class="cx">         
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    style().setMarginStart(Length(marginStart, Fixed));
-    style().setMarginEnd(Length(marginEnd, Fixed));
</del><ins>+    mutableStyle().setMarginStart(Length(marginStart, Fixed));
+    mutableStyle().setMarginEnd(Length(marginEnd, Fixed));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> LayoutUnit RenderListMarker::lineHeight(bool firstLine, LineDirectionMode direction, LinePositionMode linePositionMode) const
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderMarqueecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderMarquee.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderMarquee.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderMarquee.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx"> {
</span><span class="cx">     RenderBox* box = m_layer-&gt;renderBox();
</span><span class="cx">     ASSERT(box);
</span><del>-    RenderStyle&amp; boxStyle = box-&gt;style();
</del><ins>+    auto&amp; boxStyle = box-&gt;style();
</ins><span class="cx">     if (isHorizontal()) {
</span><span class="cx">         bool ltr = boxStyle.isLeftToRightDirection();
</span><span class="cx">         LayoutUnit clientWidth = box-&gt;clientWidth();
</span><span class="lines">@@ -197,7 +197,7 @@
</span><span class="cx"> 
</span><span class="cx"> void RenderMarquee::updateMarqueeStyle()
</span><span class="cx"> {
</span><del>-    RenderStyle&amp; style = m_layer-&gt;renderer().style();
</del><ins>+    auto&amp; style = m_layer-&gt;renderer().mutableStyle();
</ins><span class="cx">     
</span><span class="cx">     if (m_direction != style.marqueeDirection() || (m_totalLoops != style.marqueeLoopCount() &amp;&amp; m_currentLoop &gt;= m_totalLoops))
</span><span class="cx">         m_currentLoop = 0; // When direction changes or our loopCount is a smaller number than our current loop, reset our loop.
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderMenuListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderMenuList.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderMenuList.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderMenuList.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -109,7 +109,7 @@
</span><span class="cx"> 
</span><span class="cx"> void RenderMenuList::adjustInnerStyle()
</span><span class="cx"> {
</span><del>-    RenderStyle&amp; innerStyle = m_innerBlock-&gt;style();
</del><ins>+    auto&amp; innerStyle = m_innerBlock-&gt;mutableStyle();
</ins><span class="cx">     innerStyle.setFlexGrow(1);
</span><span class="cx">     innerStyle.setFlexShrink(1);
</span><span class="cx">     // min-width: 0; is needed for correct shrinking.
</span><span class="lines">@@ -215,7 +215,7 @@
</span><span class="cx">         if (theme().popupOptionSupportsTextIndent()) {
</span><span class="cx">             // Add in the option's text indent.  We can't calculate percentage values for now.
</span><span class="cx">             float optionWidth = 0;
</span><del>-            if (RenderStyle* optionStyle = element-&gt;computedStyle())
</del><ins>+            if (auto* optionStyle = element-&gt;computedStyle())
</ins><span class="cx">                 optionWidth += minimumValueForLength(optionStyle-&gt;textIndent(), 0);
</span><span class="cx">             if (!text.isEmpty()) {
</span><span class="cx">                 const FontCascade&amp; font = style().fontCascade();
</span><span class="lines">@@ -519,7 +519,7 @@
</span><span class="cx">     bool itemHasCustomBackgroundColor;
</span><span class="cx">     getItemBackgroundColor(listIndex, itemBackgroundColor, itemHasCustomBackgroundColor);
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = *element-&gt;computedStyle();
</del><ins>+    auto&amp; style = *element-&gt;computedStyle();
</ins><span class="cx">     return PopupMenuStyle(style.visitedDependentColor(CSSPropertyColor), itemBackgroundColor, style.fontCascade(), style.visibility() == VISIBLE,
</span><span class="cx">         style.display() == NONE, true, style.textIndent(), style.direction(), isOverride(style.unicodeBidi()),
</span><span class="cx">         itemHasCustomBackgroundColor ? PopupMenuStyle::CustomBackgroundColor : PopupMenuStyle::DefaultBackgroundColor);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderMultiColumnFlowThreadcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -239,7 +239,7 @@
</span><span class="cx">     ASSERT(descendant-&gt;isDescendantOf(flowThread));
</span><span class="cx"> 
</span><span class="cx">     // First make sure that the renderer itself has the right properties for becoming a spanner.
</span><del>-    RenderStyle&amp; style = descendant-&gt;style();
</del><ins>+    auto&amp; style = descendant-&gt;style();
</ins><span class="cx">     if (style.columnSpan() != ColumnSpanAll || !is&lt;RenderBox&gt;(*descendant) || descendant-&gt;isFloatingOrOutOfFlowPositioned())
</span><span class="cx">         return false;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderMultiColumnSpannerPlaceholdercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-RenderMultiColumnSpannerPlaceholder* RenderMultiColumnSpannerPlaceholder::createAnonymous(RenderMultiColumnFlowThread* flowThread, RenderBox* spanner, RenderStyle* parentStyle)
</del><ins>+RenderMultiColumnSpannerPlaceholder* RenderMultiColumnSpannerPlaceholder::createAnonymous(RenderMultiColumnFlowThread* flowThread, RenderBox* spanner, const RenderStyle* parentStyle)
</ins><span class="cx"> {
</span><span class="cx">     auto newStyle = RenderStyle::createAnonymousStyleWithDisplay(*parentStyle, BLOCK);
</span><span class="cx">     newStyle.setClear(CBOTH); // We don't want floats in the row preceding the spanner to continue on the other side.
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderMultiColumnSpannerPlaceholderh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx"> 
</span><span class="cx"> class RenderMultiColumnSpannerPlaceholder final : public RenderBox {
</span><span class="cx"> public:
</span><del>-    static RenderMultiColumnSpannerPlaceholder* createAnonymous(RenderMultiColumnFlowThread*, RenderBox* spanner, RenderStyle* parentStyle);
</del><ins>+    static RenderMultiColumnSpannerPlaceholder* createAnonymous(RenderMultiColumnFlowThread*, RenderBox* spanner, const RenderStyle* parentStyle);
</ins><span class="cx"> 
</span><span class="cx">     RenderBox* spanner() const { return m_spanner; }
</span><span class="cx">     RenderMultiColumnFlowThread* flowThread() const { return m_flowThread; }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderNamedFlowFragmentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderNamedFlowFragment.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderNamedFlowFragment.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderNamedFlowFragment.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -347,7 +347,7 @@
</span><span class="cx">     downcast&lt;RenderNamedFlowThread&gt;(*m_flowThread).checkRegionsWithStyling();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-std::unique_ptr&lt;RenderStyle&gt; RenderNamedFlowFragment::computeStyleInRegion(RenderElement&amp; renderer, RenderStyle&amp; parentStyle) const
</del><ins>+std::unique_ptr&lt;RenderStyle&gt; RenderNamedFlowFragment::computeStyleInRegion(RenderElement&amp; renderer, const RenderStyle&amp; parentStyle) const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(!renderer.isAnonymous());
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderNamedFlowFragmenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderNamedFlowFragment.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderNamedFlowFragment.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderNamedFlowFragment.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -123,7 +123,7 @@
</span><span class="cx">     bool isRenderNamedFlowFragment() const override { return true; }
</span><span class="cx">     const char* renderName() const override { return &quot;RenderNamedFlowFragment&quot;; }
</span><span class="cx"> 
</span><del>-    std::unique_ptr&lt;RenderStyle&gt; computeStyleInRegion(RenderElement&amp;, RenderStyle&amp; parentStyle) const;
</del><ins>+    std::unique_ptr&lt;RenderStyle&gt; computeStyleInRegion(RenderElement&amp;, const RenderStyle&amp; parentStyle) const;
</ins><span class="cx">     void computeChildrenStyleInRegion(RenderElement&amp;);
</span><span class="cx">     void setObjectStyleInRegion(RenderObject*, std::unique_ptr&lt;RenderStyle&gt;, bool objectRegionStyleCached);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderObject.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderObject.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderObject.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1822,7 +1822,7 @@
</span><span class="cx">     return style().computedLineHeight();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Color decorationColor(RenderStyle* style)
</del><ins>+static Color decorationColor(const RenderStyle* style)
</ins><span class="cx"> {
</span><span class="cx">     Color result;
</span><span class="cx">     // Check for text decoration color first.
</span><span class="lines">@@ -1844,7 +1844,7 @@
</span><span class="cx">     TextDecorationStyle&amp; underlineStyle, TextDecorationStyle&amp; overlineStyle, TextDecorationStyle&amp; linethroughStyle, bool firstlineStyle) const
</span><span class="cx"> {
</span><span class="cx">     const RenderObject* current = this;
</span><del>-    RenderStyle* styleToUse = nullptr;
</del><ins>+    const RenderStyle* styleToUse = nullptr;
</ins><span class="cx">     TextDecoration currDecs = TextDecorationNone;
</span><span class="cx">     Color resultColor;
</span><span class="cx">     do {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderObject.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderObject.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderObject.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -697,8 +697,8 @@
</span><span class="cx">     virtual LayoutUnit minPreferredLogicalWidth() const { return 0; }
</span><span class="cx">     virtual LayoutUnit maxPreferredLogicalWidth() const { return 0; }
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style() const;
-    RenderStyle&amp; firstLineStyle() const;
</del><ins>+    const RenderStyle&amp; style() const;
+    const RenderStyle&amp; firstLineStyle() const;
</ins><span class="cx"> 
</span><span class="cx">     // Anonymous blocks that are part of of a continuation chain will return their inline continuation's outline style instead.
</span><span class="cx">     // This is typically only relevant when repainting.
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderTablecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTable.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTable.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderTable.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -811,7 +811,7 @@
</span><span class="cx">     for (unsigned i = 0; i &lt; m_captions.size(); i++)
</span><span class="cx">         m_minPreferredLogicalWidth = std::max(m_minPreferredLogicalWidth, m_captions[i]-&gt;minPreferredLogicalWidth());
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; styleToUse = style();
</del><ins>+    auto&amp; styleToUse = style();
</ins><span class="cx">     // FIXME: This should probably be checking for isSpecified since you should be able to use percentage or calc values for min-width.
</span><span class="cx">     if (styleToUse.logicalMinWidth().isFixed() &amp;&amp; styleToUse.logicalMinWidth().value() &gt; 0) {
</span><span class="cx">         m_maxPreferredLogicalWidth = std::max(m_maxPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(styleToUse.logicalMinWidth().value()));
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderTableSectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTableSection.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTableSection.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderTableSection.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1198,7 +1198,7 @@
</span><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static BoxSide physicalBorderForDirection(RenderStyle* styleForCellFlow, CollapsedBorderSide side)
</del><ins>+static BoxSide physicalBorderForDirection(const RenderStyle* styleForCellFlow, CollapsedBorderSide side)
</ins><span class="cx"> {
</span><span class="cx"> 
</span><span class="cx">     switch (side) {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderTexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderText.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderText.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderText.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -48,9 +48,9 @@
</span><span class="cx"> 
</span><span class="cx">     virtual bool isTextFragment() const;
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style() const;
-    RenderStyle&amp; firstLineStyle() const;
-    RenderStyle* getCachedPseudoStyle(PseudoId, RenderStyle* parentStyle = nullptr) const;
</del><ins>+    const RenderStyle&amp; style() const;
+    const RenderStyle&amp; firstLineStyle() const;
+    const RenderStyle* getCachedPseudoStyle(PseudoId, const RenderStyle* parentStyle = nullptr) const;
</ins><span class="cx"> 
</span><span class="cx">     Color selectionBackgroundColor() const;
</span><span class="cx">     Color selectionForegroundColor() const;
</span><span class="lines">@@ -251,17 +251,17 @@
</span><span class="cx">     return uncheckedCharacterAt(i);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-inline RenderStyle&amp; RenderText::style() const
</del><ins>+inline const RenderStyle&amp; RenderText::style() const
</ins><span class="cx"> {
</span><span class="cx">     return parent()-&gt;style();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-inline RenderStyle&amp; RenderText::firstLineStyle() const
</del><ins>+inline const RenderStyle&amp; RenderText::firstLineStyle() const
</ins><span class="cx"> {
</span><span class="cx">     return parent()-&gt;firstLineStyle();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-inline RenderStyle* RenderText::getCachedPseudoStyle(PseudoId pseudoId, RenderStyle* parentStyle) const
</del><ins>+inline const RenderStyle* RenderText::getCachedPseudoStyle(PseudoId pseudoId, const RenderStyle* parentStyle) const
</ins><span class="cx"> {
</span><span class="cx">     return parent()-&gt;getCachedPseudoStyle(pseudoId, parentStyle);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderTextControlcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTextControl.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTextControl.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderTextControl.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -65,8 +65,8 @@
</span><span class="cx">     if (innerTextRenderer) {
</span><span class="cx">         // We may have set the width and the height in the old style in layout().
</span><span class="cx">         // Reset them now to avoid getting a spurious layout hint.
</span><del>-        innerTextRenderer-&gt;style().setHeight(Length());
-        innerTextRenderer-&gt;style().setWidth(Length());
</del><ins>+        innerTextRenderer-&gt;mutableStyle().setHeight(Length());
+        innerTextRenderer-&gt;mutableStyle().setWidth(Length());
</ins><span class="cx">         innerTextRenderer-&gt;setStyle(textFormControlElement().createInnerTextStyle(style()));
</span><span class="cx">     }
</span><span class="cx">     textFormControlElement().updatePlaceholderVisibility();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderTextControlMultiLinecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTextControlMultiLine.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTextControlMultiLine.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderTextControlMultiLine.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -92,7 +92,7 @@
</span><span class="cx">     RenderObject* placeholderRenderer = RenderTextControl::layoutSpecialExcludedChild(relayoutChildren);
</span><span class="cx">     if (is&lt;RenderBox&gt;(placeholderRenderer)) {
</span><span class="cx">         auto&amp; placeholderBox = downcast&lt;RenderBox&gt;(*placeholderRenderer);
</span><del>-        placeholderBox.style().setLogicalWidth(Length(contentLogicalWidth() - placeholderBox.borderAndPaddingLogicalWidth(), Fixed));
</del><ins>+        placeholderBox.mutableStyle().setLogicalWidth(Length(contentLogicalWidth() - placeholderBox.borderAndPaddingLogicalWidth(), Fixed));
</ins><span class="cx">         placeholderBox.layoutIfNeeded();
</span><span class="cx">         placeholderBox.setX(borderLeft() + paddingLeft());
</span><span class="cx">         placeholderBox.setY(borderTop() + paddingTop());
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderTextControlSingleLinecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -108,11 +108,11 @@
</span><span class="cx"> 
</span><span class="cx">     // To ensure consistency between layouts, we need to reset any conditionally overriden height.
</span><span class="cx">     if (innerTextRenderer &amp;&amp; !innerTextRenderer-&gt;style().logicalHeight().isAuto()) {
</span><del>-        innerTextRenderer-&gt;style().setLogicalHeight(Length(Auto));
</del><ins>+        innerTextRenderer-&gt;mutableStyle().setLogicalHeight(Length(Auto));
</ins><span class="cx">         setNeedsLayoutOnAncestors(innerTextRenderer, this);
</span><span class="cx">     }
</span><span class="cx">     if (innerBlockRenderer &amp;&amp; !innerBlockRenderer-&gt;style().logicalHeight().isAuto()) {
</span><del>-        innerBlockRenderer-&gt;style().setLogicalHeight(Length(Auto));
</del><ins>+        innerBlockRenderer-&gt;mutableStyle().setLogicalHeight(Length(Auto));
</ins><span class="cx">         setNeedsLayoutOnAncestors(innerBlockRenderer, this);
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -128,10 +128,10 @@
</span><span class="cx">         if (desiredLogicalHeight != innerTextRenderer-&gt;logicalHeight())
</span><span class="cx">             setNeedsLayout(MarkOnlyThis);
</span><span class="cx"> 
</span><del>-        innerTextRenderer-&gt;style().setLogicalHeight(Length(desiredLogicalHeight, Fixed));
</del><ins>+        innerTextRenderer-&gt;mutableStyle().setLogicalHeight(Length(desiredLogicalHeight, Fixed));
</ins><span class="cx">         innerTextRenderer-&gt;setNeedsLayout(MarkOnlyThis);
</span><span class="cx">         if (innerBlockRenderer) {
</span><del>-            innerBlockRenderer-&gt;style().setLogicalHeight(Length(desiredLogicalHeight, Fixed));
</del><ins>+            innerBlockRenderer-&gt;mutableStyle().setLogicalHeight(Length(desiredLogicalHeight, Fixed));
</ins><span class="cx">             innerBlockRenderer-&gt;setNeedsLayout(MarkOnlyThis);
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -140,13 +140,13 @@
</span><span class="cx">         containerRenderer-&gt;layoutIfNeeded();
</span><span class="cx">         LayoutUnit containerLogicalHeight = containerRenderer-&gt;logicalHeight();
</span><span class="cx">         if (containerLogicalHeight &gt; logicalHeightLimit) {
</span><del>-            containerRenderer-&gt;style().setLogicalHeight(Length(logicalHeightLimit, Fixed));
</del><ins>+            containerRenderer-&gt;mutableStyle().setLogicalHeight(Length(logicalHeightLimit, Fixed));
</ins><span class="cx">             setNeedsLayout(MarkOnlyThis);
</span><span class="cx">         } else if (containerRenderer-&gt;logicalHeight() &lt; contentLogicalHeight()) {
</span><del>-            containerRenderer-&gt;style().setLogicalHeight(Length(contentLogicalHeight(), Fixed));
</del><ins>+            containerRenderer-&gt;mutableStyle().setLogicalHeight(Length(contentLogicalHeight(), Fixed));
</ins><span class="cx">             setNeedsLayout(MarkOnlyThis);
</span><span class="cx">         } else
</span><del>-            containerRenderer-&gt;style().setLogicalHeight(Length(containerLogicalHeight, Fixed));
</del><ins>+            containerRenderer-&gt;mutableStyle().setLogicalHeight(Length(containerLogicalHeight, Fixed));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // If we need another layout pass, we have changed one of children's height so we need to relayout them.
</span><span class="lines">@@ -174,8 +174,8 @@
</span><span class="cx">         LayoutSize innerTextSize;
</span><span class="cx">         if (innerTextRenderer)
</span><span class="cx">             innerTextSize = innerTextRenderer-&gt;size();
</span><del>-        placeholderBox-&gt;style().setWidth(Length(innerTextSize.width() - placeholderBox-&gt;horizontalBorderAndPaddingExtent(), Fixed));
-        placeholderBox-&gt;style().setHeight(Length(innerTextSize.height() - placeholderBox-&gt;verticalBorderAndPaddingExtent(), Fixed));
</del><ins>+        placeholderBox-&gt;mutableStyle().setWidth(Length(innerTextSize.width() - placeholderBox-&gt;horizontalBorderAndPaddingExtent(), Fixed));
+        placeholderBox-&gt;mutableStyle().setHeight(Length(innerTextSize.height() - placeholderBox-&gt;verticalBorderAndPaddingExtent(), Fixed));
</ins><span class="cx">         bool neededLayout = placeholderBox-&gt;needsLayout();
</span><span class="cx">         bool placeholderBoxHadLayout = placeholderBox-&gt;everHadLayout();
</span><span class="cx">         placeholderBox-&gt;layoutIfNeeded();
</span><span class="lines">@@ -202,7 +202,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     // FIXME: We should not be adjusting styles during layout. &lt;rdar://problem/7675493&gt;
</span><span class="cx">     if (inputElement().isSearchField())
</span><del>-        RenderThemeIOS::adjustRoundBorderRadius(style(), *this);
</del><ins>+        RenderThemeIOS::adjustRoundBorderRadius(mutableStyle(), *this);
</ins><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -236,14 +236,14 @@
</span><span class="cx">     // We may have set the width and the height in the old style in layout().
</span><span class="cx">     // Reset them now to avoid getting a spurious layout hint.
</span><span class="cx">     HTMLElement* innerBlock = innerBlockElement();
</span><del>-    if (RenderObject* innerBlockRenderer = innerBlock ? innerBlock-&gt;renderer() : 0) {
-        innerBlockRenderer-&gt;style().setHeight(Length());
-        innerBlockRenderer-&gt;style().setWidth(Length());
</del><ins>+    if (auto* innerBlockRenderer = innerBlock ? innerBlock-&gt;renderer() : nullptr) {
+        innerBlockRenderer-&gt;mutableStyle().setHeight(Length());
+        innerBlockRenderer-&gt;mutableStyle().setWidth(Length());
</ins><span class="cx">     }
</span><span class="cx">     HTMLElement* container = containerElement();
</span><del>-    if (RenderObject* containerRenderer = container ? container-&gt;renderer() : 0) {
-        containerRenderer-&gt;style().setHeight(Length());
-        containerRenderer-&gt;style().setWidth(Length());
</del><ins>+    if (auto* containerRenderer = container ? container-&gt;renderer() : nullptr) {
+        containerRenderer-&gt;mutableStyle().setHeight(Length());
+        containerRenderer-&gt;mutableStyle().setWidth(Length());
</ins><span class="cx">     }
</span><span class="cx">     if (diff == StyleDifferenceLayout) {
</span><span class="cx">         if (auto* innerTextRenderer = innerTextElement()-&gt;renderer())
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderTextFragmentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTextFragment.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTextFragment.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderTextFragment.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx">     RenderText::styleDidChange(diff, oldStyle);
</span><span class="cx"> 
</span><span class="cx">     if (RenderBlock* block = blockForAccompanyingFirstLetter()) {
</span><del>-        block-&gt;style().removeCachedPseudoStyle(FIRST_LETTER);
</del><ins>+        block-&gt;mutableStyle().removeCachedPseudoStyle(FIRST_LETTER);
</ins><span class="cx">         block-&gt;updateFirstLetter();
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeGtk.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeGtk.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderThemeGtk.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -2015,7 +2015,7 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-static FloatRoundedRect::Radii borderRadiiFromStyle(RenderStyle&amp; style)
</del><ins>+static FloatRoundedRect::Radii borderRadiiFromStyle(const RenderStyle&amp; style)
</ins><span class="cx"> {
</span><span class="cx">     return FloatRoundedRect::Radii(
</span><span class="cx">         IntSize(style.borderTopLeftRadius().width().intValue(), style.borderTopLeftRadius().height().intValue()),
</span><span class="lines">@@ -2036,7 +2036,7 @@
</span><span class="cx"> 
</span><span class="cx">     float mediaDuration = mediaElement-&gt;duration();
</span><span class="cx">     float totalTrackWidth = r.width();
</span><del>-    RenderStyle&amp; style = o.style();
</del><ins>+    auto&amp; style = o.style();
</ins><span class="cx">     RefPtr&lt;TimeRanges&gt; timeRanges = mediaElement-&gt;buffered();
</span><span class="cx">     for (unsigned index = 0; index &lt; timeRanges-&gt;length(); ++index) {
</span><span class="cx">         float start = timeRanges-&gt;start(index, IGNORE_EXCEPTION);
</span><span class="lines">@@ -2059,7 +2059,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool RenderThemeGtk::paintMediaSliderThumb(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
</span><span class="cx"> {
</span><del>-    RenderStyle&amp; style = o.style();
</del><ins>+    auto&amp; style = o.style();
</ins><span class="cx">     paintInfo.context().fillRoundedRect(FloatRoundedRect(r, borderRadiiFromStyle(style)), style.visitedDependentColor(CSSPropertyColor));
</span><span class="cx">     return false;
</span><span class="cx"> }
</span><span class="lines">@@ -2080,7 +2080,7 @@
</span><span class="cx"> 
</span><span class="cx">     int rectHeight = rect.height();
</span><span class="cx">     float trackHeight = rectHeight * volume;
</span><del>-    RenderStyle&amp; style = renderObject.style();
</del><ins>+    auto&amp; style = renderObject.style();
</ins><span class="cx">     IntRect volumeRect(rect);
</span><span class="cx">     volumeRect.move(0, rectHeight - trackHeight);
</span><span class="cx">     volumeRect.setHeight(ceil(trackHeight));
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeIOS.mm (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeIOS.mm        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/RenderThemeIOS.mm        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -336,7 +336,7 @@
</span><span class="cx"> {
</span><span class="cx">     // To fix inner border bleeding issues &lt;rdar://problem/9812507&gt;, we clip to the outer border and assert that
</span><span class="cx">     // the border is opaque or transparent, unless we're checked because checked radio/checkboxes show no bleeding.
</span><del>-    RenderStyle&amp; style = box.style();
</del><ins>+    auto&amp; style = box.style();
</ins><span class="cx">     RoundedRect border = isChecked(box) ? style.getRoundedInnerBorderFor(rect) : style.getRoundedBorderFor(rect);
</span><span class="cx"> 
</span><span class="cx">     if (border.isRounded())
</span><span class="lines">@@ -499,7 +499,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool RenderThemeIOS::paintTextFieldDecorations(const RenderObject&amp; box, const PaintInfo&amp; paintInfo, const FloatRect&amp; rect)
</span><span class="cx"> {
</span><del>-    RenderStyle&amp; style = box.style();
</del><ins>+    auto&amp; style = box.style();
</ins><span class="cx">     FloatPoint point(rect.x() + style.borderLeftWidth(), rect.y() + style.borderTopWidth());
</span><span class="cx"> 
</span><span class="cx">     GraphicsContextStateSaver stateSaver(paintInfo.context());
</span><span class="lines">@@ -630,7 +630,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool RenderThemeIOS::paintMenuListButtonDecorations(const RenderBox&amp; box, const PaintInfo&amp; paintInfo, const FloatRect&amp; rect)
</span><span class="cx"> {
</span><del>-    RenderStyle&amp; style = box.style();
</del><ins>+    auto&amp; style = box.style();
</ins><span class="cx">     float borderTopWidth = style.borderTopWidth();
</span><span class="cx">     FloatRect clip(rect.x() + style.borderLeftWidth(), rect.y() + style.borderTopWidth(), rect.width() - style.borderLeftWidth() - style.borderRightWidth(), rect.height() - style.borderTopWidth() - style.borderBottomWidth());
</span><span class="cx">     CGContextRef cgContext = paintInfo.context().platformContext();
</span><span class="lines">@@ -734,7 +734,7 @@
</span><span class="cx"> bool RenderThemeIOS::paintSliderTrack(const RenderObject&amp; box, const PaintInfo&amp; paintInfo, const IntRect&amp; rect)
</span><span class="cx"> {
</span><span class="cx">     IntRect trackClip = rect;
</span><del>-    RenderStyle&amp; style = box.style();
</del><ins>+    auto&amp; style = box.style();
</ins><span class="cx"> 
</span><span class="cx">     bool isHorizontal = true;
</span><span class="cx">     switch (style.appearance()) {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingSimpleLineLayoutFunctionscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx">     if (paintInfo.phase != PaintPhaseForeground)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = flow.style();
</del><ins>+    auto&amp; style = flow.style();
</ins><span class="cx">     if (style.visibility() != VISIBLE)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="lines">@@ -140,7 +140,7 @@
</span><span class="cx">     if (!layout.runCount())
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = flow.style();
</del><ins>+    auto&amp; style = flow.style();
</ins><span class="cx">     if (style.visibility() != VISIBLE || style.pointerEvents() == PE_NONE)
</span><span class="cx">         return false;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingTextAutoSizingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/TextAutoSizing.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/TextAutoSizing.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/TextAutoSizing.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-TextAutoSizingKey::TextAutoSizingKey(RenderStyle* style)
</del><ins>+TextAutoSizingKey::TextAutoSizingKey(const RenderStyle* style)
</ins><span class="cx">     : m_style(style ? RenderStyle::clonePtr(*style) : nullptr)
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingTextAutoSizingh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/TextAutoSizing.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/TextAutoSizing.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/TextAutoSizing.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -43,12 +43,12 @@
</span><span class="cx">     TextAutoSizingKey() = default;
</span><span class="cx">     enum DeletedTag { Deleted };
</span><span class="cx">     explicit TextAutoSizingKey(DeletedTag);
</span><del>-    explicit TextAutoSizingKey(RenderStyle*);
</del><ins>+    explicit TextAutoSizingKey(const RenderStyle*);
</ins><span class="cx">     TextAutoSizingKey(TextAutoSizingKey&amp;&amp;) = default;
</span><span class="cx"> 
</span><span class="cx">     TextAutoSizingKey&amp; operator=(TextAutoSizingKey&amp;&amp;) = default;
</span><span class="cx"> 
</span><del>-    RenderStyle* style() const { return m_style.get(); }
</del><ins>+    const RenderStyle* style() const { return m_style.get(); }
</ins><span class="cx">     inline bool isDeleted() const { return m_isDeleted; }
</span><span class="cx"> 
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingTextPaintStylecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/TextPaintStyle.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/TextPaintStyle.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/TextPaintStyle.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -136,7 +136,7 @@
</span><span class="cx">         selectionPaintStyle.emphasisMarkColor = emphasisMarkForeground;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (RenderStyle* pseudoStyle = renderer.getCachedPseudoStyle(SELECTION)) {
</del><ins>+    if (auto* pseudoStyle = renderer.getCachedPseudoStyle(SELECTION)) {
</ins><span class="cx">         const ShadowData* shadow = paintInfo.forceTextColor() ? nullptr : pseudoStyle-&gt;textShadow();
</span><span class="cx">         if (shadow != selectionShadow) {
</span><span class="cx">             if (!paintSelectedTextOnly)
</span></span></pre></div>
<a id="trunkSourceWebCorerenderinglineBreakingContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/line/BreakingContext.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/line/BreakingContext.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/line/BreakingContext.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -252,7 +252,7 @@
</span><span class="cx">     // Firefox and Opera will allow a table cell to grow to fit an image inside it under
</span><span class="cx">     // very specific circumstances (in order to match common WinIE renderings).
</span><span class="cx">     // Not supporting the quirk has caused us to mis-render some real sites. (See Bugzilla 10517.)
</span><del>-    RenderStyle&amp; m_blockStyle;
</del><ins>+    const RenderStyle&amp; m_blockStyle;
</ins><span class="cx"> 
</span><span class="cx">     LineInfo&amp; m_lineInfo;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingmathmlRenderMathMLRootcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -301,10 +301,10 @@
</span><span class="cx">                 baseTopMargin -= indexTopMargin;
</span><span class="cx">                 indexTopMargin = 0;
</span><span class="cx">             }
</span><del>-            index-&gt;style().setMarginTop(Length(indexTopMargin, Fixed));
</del><ins>+            index-&gt;mutableStyle().setMarginTop(Length(indexTopMargin, Fixed));
</ins><span class="cx">         }
</span><del>-        radical-&gt;style().setMarginTop(Length(radicalTopMargin, Fixed));
-        base-&gt;style().setMarginTop(Length(baseTopMargin, Fixed));
</del><ins>+        radical-&gt;mutableStyle().setMarginTop(Length(radicalTopMargin, Fixed));
+        base-&gt;mutableStyle().setMarginTop(Length(baseTopMargin, Fixed));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     RenderMathMLBlock::layout();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingstyleRenderStyleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/style/RenderStyle.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/style/RenderStyle.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -1606,7 +1606,7 @@
</span><span class="cx">     void setColumnRuleWidth(unsigned short w) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_rule.m_width, w); }
</span><span class="cx">     void resetColumnRule() { SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_rule, BorderValue()); }
</span><span class="cx">     void setColumnSpan(ColumnSpan columnSpan) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_columnSpan, columnSpan); }
</span><del>-    void inheritColumnPropertiesFrom(RenderStyle* parent) { rareNonInheritedData.access()-&gt;m_multiCol = parent-&gt;rareNonInheritedData-&gt;m_multiCol; }
</del><ins>+    void inheritColumnPropertiesFrom(const RenderStyle* parent) { rareNonInheritedData.access()-&gt;m_multiCol = parent-&gt;rareNonInheritedData-&gt;m_multiCol; }
</ins><span class="cx">     void setTransform(const TransformOperations&amp; ops) { SET_NESTED_VAR(rareNonInheritedData, m_transform, m_operations, ops); }
</span><span class="cx">     void setTransformOriginX(Length length) { SET_NESTED_VAR(rareNonInheritedData, m_transform, m_x, WTFMove(length)); }
</span><span class="cx">     void setTransformOriginY(Length length) { SET_NESTED_VAR(rareNonInheritedData, m_transform, m_y, WTFMove(length)); }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgSVGInlineTextBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -107,7 +107,7 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-FloatRect SVGInlineTextBox::selectionRectForTextFragment(const SVGTextFragment&amp; fragment, int startPosition, int endPosition, RenderStyle* style) const
</del><ins>+FloatRect SVGInlineTextBox::selectionRectForTextFragment(const SVGTextFragment&amp; fragment, int startPosition, int endPosition, const RenderStyle* style) const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT_WITH_SECURITY_IMPLICATION(startPosition &lt; endPosition);
</span><span class="cx">     ASSERT(style);
</span><span class="lines">@@ -142,7 +142,7 @@
</span><span class="cx">     if (startPosition &gt;= endPosition)
</span><span class="cx">         return LayoutRect();
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = renderer().style();
</del><ins>+    auto&amp; style = renderer().style();
</ins><span class="cx"> 
</span><span class="cx">     AffineTransform fragmentTransform;
</span><span class="cx">     FloatRect selectionRect;
</span><span class="lines">@@ -201,7 +201,7 @@
</span><span class="cx">     if (!textShouldBePainted(renderer()))
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = parentRenderer.style();
</del><ins>+    auto&amp; style = parentRenderer.style();
</ins><span class="cx"> 
</span><span class="cx">     int startPosition;
</span><span class="cx">     int endPosition;
</span><span class="lines">@@ -256,14 +256,14 @@
</span><span class="cx">     if (!textShouldBePainted(renderer()))
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = parentRenderer.style();
</del><ins>+    auto&amp; style = parentRenderer.style();
</ins><span class="cx"> 
</span><span class="cx">     const SVGRenderStyle&amp; svgStyle = style.svgStyle();
</span><span class="cx"> 
</span><span class="cx">     bool hasFill = svgStyle.hasFill();
</span><span class="cx">     bool hasVisibleStroke = svgStyle.hasVisibleStroke();
</span><span class="cx"> 
</span><del>-    RenderStyle* selectionStyle = &amp;style;
</del><ins>+    const RenderStyle* selectionStyle = &amp;style;
</ins><span class="cx">     if (hasSelection) {
</span><span class="cx">         selectionStyle = parentRenderer.getCachedPseudoStyle(SELECTION);
</span><span class="cx">         if (selectionStyle) {
</span><span class="lines">@@ -334,7 +334,7 @@
</span><span class="cx">     ASSERT(!m_paintingResource);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool SVGInlineTextBox::acquirePaintingResource(GraphicsContext*&amp; context, float scalingFactor, RenderBoxModelObject&amp; renderer, RenderStyle* style)
</del><ins>+bool SVGInlineTextBox::acquirePaintingResource(GraphicsContext*&amp; context, float scalingFactor, RenderBoxModelObject&amp; renderer, const RenderStyle* style)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(scalingFactor);
</span><span class="cx">     ASSERT(style);
</span><span class="lines">@@ -377,7 +377,7 @@
</span><span class="cx">     m_paintingResource = nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool SVGInlineTextBox::prepareGraphicsContextForTextPainting(GraphicsContext*&amp; context, float scalingFactor, RenderStyle* style)
</del><ins>+bool SVGInlineTextBox::prepareGraphicsContextForTextPainting(GraphicsContext*&amp; context, float scalingFactor, const RenderStyle* style)
</ins><span class="cx"> {
</span><span class="cx">     return acquirePaintingResource(context, scalingFactor, parent()-&gt;renderer(), style);
</span><span class="cx"> }
</span><span class="lines">@@ -387,7 +387,7 @@
</span><span class="cx">     releasePaintingResource(context, /* path */nullptr);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-TextRun SVGInlineTextBox::constructTextRun(RenderStyle* style, const SVGTextFragment&amp; fragment) const
</del><ins>+TextRun SVGInlineTextBox::constructTextRun(const RenderStyle* style, const SVGTextFragment&amp; fragment) const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(style);
</span><span class="cx"> 
</span><span class="lines">@@ -506,7 +506,7 @@
</span><span class="cx">     ASSERT(!m_paintingResource);
</span><span class="cx">     ASSERT(m_paintingResourceMode != ApplyToDefaultMode);
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; decorationStyle = decorationRenderer.style();
</del><ins>+    auto&amp; decorationStyle = decorationRenderer.style();
</ins><span class="cx"> 
</span><span class="cx">     float scalingFactor = 1;
</span><span class="cx">     FontCascade scaledFont;
</span><span class="lines">@@ -540,7 +540,7 @@
</span><span class="cx">         releasePaintingResource(contextPtr, &amp;path);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void SVGInlineTextBox::paintTextWithShadows(GraphicsContext&amp; context, RenderStyle* style, TextRun&amp; textRun, const SVGTextFragment&amp; fragment, int startPosition, int endPosition)
</del><ins>+void SVGInlineTextBox::paintTextWithShadows(GraphicsContext&amp; context, const RenderStyle* style, TextRun&amp; textRun, const SVGTextFragment&amp; fragment, int startPosition, int endPosition)
</ins><span class="cx"> {
</span><span class="cx">     float scalingFactor = renderer().scalingFactor();
</span><span class="cx">     ASSERT(scalingFactor);
</span><span class="lines">@@ -585,7 +585,7 @@
</span><span class="cx">     } while (shadow);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void SVGInlineTextBox::paintText(GraphicsContext&amp; context, RenderStyle* style, RenderStyle* selectionStyle, const SVGTextFragment&amp; fragment, bool hasSelection, bool paintSelectedTextOnly)
</del><ins>+void SVGInlineTextBox::paintText(GraphicsContext&amp; context, const RenderStyle* style, const RenderStyle* selectionStyle, const SVGTextFragment&amp; fragment, bool hasSelection, bool paintSelectedTextOnly)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(style);
</span><span class="cx">     ASSERT(selectionStyle);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgSVGInlineTextBoxh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -64,23 +64,23 @@
</span><span class="cx">     void setStartsNewTextChunk(bool newTextChunk) { m_startsNewTextChunk = newTextChunk; }
</span><span class="cx"> 
</span><span class="cx">     int offsetForPositionInFragment(const SVGTextFragment&amp;, float position, bool includePartialGlyphs) const;
</span><del>-    FloatRect selectionRectForTextFragment(const SVGTextFragment&amp;, int fragmentStartPosition, int fragmentEndPosition, RenderStyle*) const;
</del><ins>+    FloatRect selectionRectForTextFragment(const SVGTextFragment&amp;, int fragmentStartPosition, int fragmentEndPosition, const RenderStyle*) const;
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     bool isSVGInlineTextBox() const override { return true; }
</span><span class="cx"> 
</span><del>-    TextRun constructTextRun(RenderStyle*, const SVGTextFragment&amp;) const;
</del><ins>+    TextRun constructTextRun(const RenderStyle*, const SVGTextFragment&amp;) const;
</ins><span class="cx"> 
</span><del>-    bool acquirePaintingResource(GraphicsContext*&amp;, float scalingFactor, RenderBoxModelObject&amp;, RenderStyle*);
</del><ins>+    bool acquirePaintingResource(GraphicsContext*&amp;, float scalingFactor, RenderBoxModelObject&amp;, const RenderStyle*);
</ins><span class="cx">     void releasePaintingResource(GraphicsContext*&amp;, const Path*);
</span><span class="cx"> 
</span><del>-    bool prepareGraphicsContextForTextPainting(GraphicsContext*&amp;, float scalingFactor, RenderStyle*);
</del><ins>+    bool prepareGraphicsContextForTextPainting(GraphicsContext*&amp;, float scalingFactor, const RenderStyle*);
</ins><span class="cx">     void restoreGraphicsContextAfterTextPainting(GraphicsContext*&amp;);
</span><span class="cx"> 
</span><span class="cx">     void paintDecoration(GraphicsContext&amp;, TextDecoration, const SVGTextFragment&amp;);
</span><span class="cx">     void paintDecorationWithStyle(GraphicsContext&amp;, TextDecoration, const SVGTextFragment&amp;, RenderBoxModelObject&amp; decorationRenderer);
</span><del>-    void paintTextWithShadows(GraphicsContext&amp;, RenderStyle*, TextRun&amp;, const SVGTextFragment&amp;, int startPosition, int endPosition);
-    void paintText(GraphicsContext&amp;, RenderStyle*, RenderStyle* selectionStyle, const SVGTextFragment&amp;, bool hasSelection, bool paintSelectedTextOnly);
</del><ins>+    void paintTextWithShadows(GraphicsContext&amp;, const RenderStyle*, TextRun&amp;, const SVGTextFragment&amp;, int startPosition, int endPosition);
+    void paintText(GraphicsContext&amp;, const RenderStyle*, const RenderStyle* selectionStyle, const SVGTextFragment&amp;, bool hasSelection, bool paintSelectedTextOnly);
</ins><span class="cx"> 
</span><span class="cx">     bool nodeAtPoint(const HitTestRequest&amp;, HitTestResult&amp;, const HitTestLocation&amp; locationInContainer, const LayoutPoint&amp; accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom, HitTestAction) override;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgSVGPathDatacpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/SVGPathData.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/SVGPathData.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/svg/SVGPathData.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx">     RenderElement* renderer = element-&gt;renderer();
</span><span class="cx">     if (!renderer)
</span><span class="cx">         return;
</span><del>-    RenderStyle&amp; style = renderer-&gt;style();
</del><ins>+    auto&amp; style = renderer-&gt;style();
</ins><span class="cx">     float r = lengthContext.valueForLength(style.svgStyle().r());
</span><span class="cx">     if (r &gt; 0) {
</span><span class="cx">         float cx = lengthContext.valueForLength(style.svgStyle().cx(), LengthModeWidth);
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx">     RenderElement* renderer = element-&gt;renderer();
</span><span class="cx">     if (!renderer)
</span><span class="cx">         return;
</span><del>-    RenderStyle&amp; style = renderer-&gt;style();
</del><ins>+    auto&amp; style = renderer-&gt;style();
</ins><span class="cx">     SVGLengthContext lengthContext(element);
</span><span class="cx">     float rx = lengthContext.valueForLength(style.svgStyle().rx(), LengthModeWidth);
</span><span class="cx">     if (rx &lt;= 0)
</span><span class="lines">@@ -120,7 +120,7 @@
</span><span class="cx">     if (!renderer)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = renderer-&gt;style();
</del><ins>+    auto&amp; style = renderer-&gt;style();
</ins><span class="cx">     SVGLengthContext lengthContext(element);
</span><span class="cx">     float width = lengthContext.valueForLength(style.width(), LengthModeWidth);
</span><span class="cx">     if (width &lt;= 0)
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgSVGRenderingContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/SVGRenderingContext.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/SVGRenderingContext.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/rendering/svg/SVGRenderingContext.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -90,7 +90,7 @@
</span><span class="cx">         m_renderingFlags |= RestoreGraphicsContext;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = m_renderer-&gt;style();
</del><ins>+    auto&amp; style = m_renderer-&gt;style();
</ins><span class="cx"> 
</span><span class="cx">     const SVGRenderStyle&amp; svgStyle = style.svgStyle();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorestyleStyleTreeResolvercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/style/StyleTreeResolver.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/style/StyleTreeResolver.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/style/StyleTreeResolver.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -93,7 +93,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-TreeResolver::Parent::Parent(Element&amp; element, RenderStyle&amp; style, Change change)
</del><ins>+TreeResolver::Parent::Parent(Element&amp; element, const RenderStyle&amp; style, Change change)
</ins><span class="cx">     : element(&amp;element)
</span><span class="cx">     , style(style)
</span><span class="cx">     , change(change)
</span><span class="lines">@@ -119,7 +119,7 @@
</span><span class="cx">     return m_scopeStack.removeLast();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-std::unique_ptr&lt;RenderStyle&gt; TreeResolver::styleForElement(Element&amp; element, RenderStyle&amp; inheritedStyle)
</del><ins>+std::unique_ptr&lt;RenderStyle&gt; TreeResolver::styleForElement(Element&amp; element, const RenderStyle&amp; inheritedStyle)
</ins><span class="cx"> {
</span><span class="cx">     if (!m_document.haveStylesheetsLoaded() &amp;&amp; !element.renderer()) {
</span><span class="cx">         m_document.setHasNodesWithPlaceholderStyle();
</span><span class="lines">@@ -235,7 +235,7 @@
</span><span class="cx">     if (!renderer)
</span><span class="cx">         return VISIBLE;
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = renderer-&gt;style();
</del><ins>+    auto&amp; style = renderer-&gt;style();
</ins><span class="cx"> 
</span><span class="cx">     Length width(style.width());
</span><span class="cx">     Length height(style.height());
</span><span class="lines">@@ -254,7 +254,7 @@
</span><span class="cx"> 
</span><span class="cx"> class CheckForVisibilityChangeOnRecalcStyle {
</span><span class="cx"> public:
</span><del>-    CheckForVisibilityChangeOnRecalcStyle(Element* element, RenderStyle* currentStyle)
</del><ins>+    CheckForVisibilityChangeOnRecalcStyle(Element* element, const RenderStyle* currentStyle)
</ins><span class="cx">         : m_element(element)
</span><span class="cx">         , m_previousDisplay(currentStyle ? currentStyle-&gt;display() : NONE)
</span><span class="cx">         , m_previousVisibility(currentStyle ? currentStyle-&gt;visibility() : HIDDEN)
</span><span class="lines">@@ -267,7 +267,7 @@
</span><span class="cx">             return;
</span><span class="cx">         if (m_element-&gt;isInUserAgentShadowTree())
</span><span class="cx">             return;
</span><del>-        RenderStyle* style = m_element-&gt;renderStyle();
</del><ins>+        auto* style = m_element-&gt;renderStyle();
</ins><span class="cx">         if (!style)
</span><span class="cx">             return;
</span><span class="cx">         if ((m_previousDisplay == NONE &amp;&amp; style-&gt;display() != NONE) || (m_previousVisibility == HIDDEN &amp;&amp; style-&gt;visibility() != HIDDEN)
</span><span class="lines">@@ -282,7 +282,7 @@
</span><span class="cx"> };
</span><span class="cx"> #endif // PLATFORM(IOS)
</span><span class="cx"> 
</span><del>-void TreeResolver::pushParent(Element&amp; element, RenderStyle&amp; style, Change change)
</del><ins>+void TreeResolver::pushParent(Element&amp; element, const RenderStyle&amp; style, Change change)
</ins><span class="cx"> {
</span><span class="cx">     scope().selectorFilter.pushParent(&amp;element);
</span><span class="cx"> 
</span><span class="lines">@@ -375,7 +375,7 @@
</span><span class="cx"> 
</span><span class="cx">         bool shouldResolveForPseudoElement = shouldResolvePseudoElement(element.beforePseudoElement()) || shouldResolvePseudoElement(element.afterPseudoElement());
</span><span class="cx"> 
</span><del>-        RenderStyle* style;
</del><ins>+        const RenderStyle* style;
</ins><span class="cx">         Change change;
</span><span class="cx"> 
</span><span class="cx">         bool shouldResolve = parent.change &gt;= Inherit || element.needsStyleRecalc() || shouldResolveForPseudoElement || affectedByPreviousSibling || element.hasDisplayContents();
</span></span></pre></div>
<a id="trunkSourceWebCorestyleStyleTreeResolverh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/style/StyleTreeResolver.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/style/StyleTreeResolver.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/style/StyleTreeResolver.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -61,7 +61,7 @@
</span><span class="cx">     std::unique_ptr&lt;Update&gt; resolve(Change);
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    std::unique_ptr&lt;RenderStyle&gt; styleForElement(Element&amp;, RenderStyle&amp; inheritedStyle);
</del><ins>+    std::unique_ptr&lt;RenderStyle&gt; styleForElement(Element&amp;, const RenderStyle&amp; inheritedStyle);
</ins><span class="cx"> 
</span><span class="cx">     void resolveComposedTree();
</span><span class="cx">     ElementUpdate resolveElement(Element&amp;);
</span><span class="lines">@@ -79,13 +79,13 @@
</span><span class="cx"> 
</span><span class="cx">     struct Parent {
</span><span class="cx">         Element* element;
</span><del>-        RenderStyle&amp; style;
</del><ins>+        const RenderStyle&amp; style;
</ins><span class="cx">         Change change;
</span><span class="cx">         bool didPushScope { false };
</span><span class="cx">         bool elementNeedingStyleRecalcAffectsNextSiblingElementStyle { false };
</span><span class="cx"> 
</span><span class="cx">         Parent(Document&amp;, Change);
</span><del>-        Parent(Element&amp;, RenderStyle&amp;, Change);
</del><ins>+        Parent(Element&amp;, const RenderStyle&amp;, Change);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     Scope&amp; scope() { return m_scopeStack.last(); }
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx">     void pushEnclosingScope();
</span><span class="cx">     void popScope();
</span><span class="cx"> 
</span><del>-    void pushParent(Element&amp;, RenderStyle&amp;, Change);
</del><ins>+    void pushParent(Element&amp;, const RenderStyle&amp;, Change);
</ins><span class="cx">     void popParent();
</span><span class="cx">     void popParentsToDepth(unsigned depth);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorestyleStyleUpdatecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/style/StyleUpdate.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/style/StyleUpdate.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/style/StyleUpdate.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -61,13 +61,26 @@
</span><span class="cx">     return m_texts.contains(&amp;text);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle* Update::elementStyle(const Element&amp; element) const
</del><ins>+const RenderStyle* Update::elementStyle(const Element&amp; element) const
</ins><span class="cx"> {
</span><span class="cx">     if (auto* update = elementUpdate(element))
</span><span class="cx">         return update-&gt;style.get();
</span><del>-    return element.renderStyle();
</del><ins>+    auto* renderer = element.renderer();
+    if (!renderer)
+        return nullptr;
+    return &amp;renderer-&gt;style();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+RenderStyle* Update::elementStyle(const Element&amp; element)
+{
+    if (auto* update = elementUpdate(element))
+        return update-&gt;style.get();
+    auto* renderer = element.renderer();
+    if (!renderer)
+        return nullptr;
+    return &amp;renderer-&gt;mutableStyle();
+}
+
</ins><span class="cx"> void Update::addElement(Element&amp; element, Element* parent, ElementUpdate&amp;&amp; elementUpdate)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(!m_elements.contains(&amp;element));
</span></span></pre></div>
<a id="trunkSourceWebCorestyleStyleUpdateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/style/StyleUpdate.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/style/StyleUpdate.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/style/StyleUpdate.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -63,7 +63,8 @@
</span><span class="cx"> 
</span><span class="cx">     bool textUpdate(const Text&amp;) const;
</span><span class="cx"> 
</span><del>-    RenderStyle* elementStyle(const Element&amp;) const;
</del><ins>+    const RenderStyle* elementStyle(const Element&amp;) const;
+    RenderStyle* elementStyle(const Element&amp;);
</ins><span class="cx"> 
</span><span class="cx">     const Document&amp; document() const { return m_document; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGElement.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGElement.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/svg/SVGElement.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -746,7 +746,7 @@
</span><span class="cx">     contextElement-&gt;synchronizeSystemLanguage();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Optional&lt;ElementStyle&gt; SVGElement::resolveCustomStyle(RenderStyle&amp; parentStyle, RenderStyle*)
</del><ins>+Optional&lt;ElementStyle&gt; SVGElement::resolveCustomStyle(const RenderStyle&amp; parentStyle, const RenderStyle*)
</ins><span class="cx"> {
</span><span class="cx">     // If the element is in a &lt;use&gt; tree we get the style from the definition tree.
</span><span class="cx">     if (auto* styleElement = this-&gt;correspondingElement())
</span><span class="lines">@@ -773,12 +773,12 @@
</span><span class="cx">         m_svgRareData-&gt;setUseOverrideComputedStyle(value);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RenderStyle* SVGElement::computedStyle(PseudoId pseudoElementSpecifier)
</del><ins>+const RenderStyle* SVGElement::computedStyle(PseudoId pseudoElementSpecifier)
</ins><span class="cx"> {
</span><span class="cx">     if (!m_svgRareData || !m_svgRareData-&gt;useOverrideComputedStyle())
</span><span class="cx">         return Element::computedStyle(pseudoElementSpecifier);
</span><span class="cx"> 
</span><del>-    RenderStyle* parentStyle = nullptr;
</del><ins>+    const RenderStyle* parentStyle = nullptr;
</ins><span class="cx">     if (Element* parent = parentOrShadowHostElement()) {
</span><span class="cx">         if (auto renderer = parent-&gt;renderer())
</span><span class="cx">             parentStyle = &amp;renderer-&gt;style();
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGElement.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGElement.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/svg/SVGElement.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -112,7 +112,7 @@
</span><span class="cx">     void synchronizeAnimatedSVGAttribute(const QualifiedName&amp;) const;
</span><span class="cx">     static void synchronizeAllAnimatedSVGAttribute(SVGElement*);
</span><span class="cx">  
</span><del>-    Optional&lt;ElementStyle&gt; resolveCustomStyle(RenderStyle&amp; parentStyle, RenderStyle* shadowHostStyle) override;
</del><ins>+    Optional&lt;ElementStyle&gt; resolveCustomStyle(const RenderStyle&amp; parentStyle, const RenderStyle* shadowHostStyle) override;
</ins><span class="cx"> 
</span><span class="cx">     static void synchronizeRequiredFeatures(SVGElement* contextElement);
</span><span class="cx">     static void synchronizeRequiredExtensions(SVGElement* contextElement);
</span><span class="lines">@@ -181,7 +181,7 @@
</span><span class="cx">     class InstanceInvalidationGuard;
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    RenderStyle* computedStyle(PseudoId = NOPSEUDO) final;
</del><ins>+    const RenderStyle* computedStyle(PseudoId = NOPSEUDO) final;
</ins><span class="cx"> 
</span><span class="cx">     virtual bool isSupported(StringImpl* feature, StringImpl* version) const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGElementRareDatah"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGElementRareData.h (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGElementRareData.h        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/svg/SVGElementRareData.h        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -59,10 +59,10 @@
</span><span class="cx">         return *m_animatedSMILStyleProperties;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    RenderStyle* overrideComputedStyle(Element&amp; element, RenderStyle* parentStyle)
</del><ins>+    const RenderStyle* overrideComputedStyle(Element&amp; element, const RenderStyle* parentStyle)
</ins><span class="cx">     {
</span><span class="cx">         if (!m_useOverrideComputedStyle)
</span><del>-            return 0;
</del><ins>+            return nullptr;
</ins><span class="cx">         if (!m_overrideComputedStyle || m_needsOverrideComputedStyleUpdate) {
</span><span class="cx">             // The style computed here contains no CSS Animations/Transitions or SMIL induced rules - this is needed to compute the &quot;base value&quot; for the SMIL animation sandwhich model.
</span><span class="cx">             m_overrideComputedStyle = element.styleResolver().styleForElement(element, parentStyle, MatchAllRulesExcludingSMIL).renderStyle;
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGGraphicsElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGGraphicsElement.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGGraphicsElement.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/svg/SVGGraphicsElement.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx"> AffineTransform SVGGraphicsElement::animatedLocalTransform() const
</span><span class="cx"> {
</span><span class="cx">     AffineTransform matrix;
</span><del>-    RenderStyle* style = renderer() ? &amp;renderer()-&gt;style() : nullptr;
</del><ins>+    auto* style = renderer() ? &amp;renderer()-&gt;style() : nullptr;
</ins><span class="cx"> 
</span><span class="cx">     // If CSS property was set, use that, otherwise fallback to attribute (if set).
</span><span class="cx">     if (style &amp;&amp; style-&gt;hasTransform()) {
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGLengthContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGLengthContext.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGLengthContext.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/svg/SVGLengthContext.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -222,7 +222,7 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static inline RenderStyle* renderStyleForLengthResolving(const SVGElement* context)
</del><ins>+static inline const RenderStyle* renderStyleForLengthResolving(const SVGElement* context)
</ins><span class="cx"> {
</span><span class="cx">     if (!context)
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -236,12 +236,12 @@
</span><span class="cx"> 
</span><span class="cx">     // There must be at least a RenderSVGRoot renderer, carrying a style.
</span><span class="cx">     ASSERT_NOT_REACHED();
</span><del>-    return 0;
</del><ins>+    return nullptr;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> float SVGLengthContext::convertValueFromUserUnitsToEMS(float value, ExceptionCode&amp; ec) const
</span><span class="cx"> {
</span><del>-    RenderStyle* style = renderStyleForLengthResolving(m_context);
</del><ins>+    auto* style = renderStyleForLengthResolving(m_context);
</ins><span class="cx">     if (!style) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="cx">         return 0;
</span><span class="lines">@@ -258,7 +258,7 @@
</span><span class="cx"> 
</span><span class="cx"> float SVGLengthContext::convertValueFromEMSToUserUnits(float value, ExceptionCode&amp; ec) const
</span><span class="cx"> {
</span><del>-    RenderStyle* style = renderStyleForLengthResolving(m_context);
</del><ins>+    auto* style = renderStyleForLengthResolving(m_context);
</ins><span class="cx">     if (!style) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="cx">         return 0;
</span><span class="lines">@@ -269,7 +269,7 @@
</span><span class="cx"> 
</span><span class="cx"> float SVGLengthContext::convertValueFromUserUnitsToEXS(float value, ExceptionCode&amp; ec) const
</span><span class="cx"> {
</span><del>-    RenderStyle* style = renderStyleForLengthResolving(m_context);
</del><ins>+    auto* style = renderStyleForLengthResolving(m_context);
</ins><span class="cx">     if (!style) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="cx">         return 0;
</span><span class="lines">@@ -288,7 +288,7 @@
</span><span class="cx"> 
</span><span class="cx"> float SVGLengthContext::convertValueFromEXSToUserUnits(float value, ExceptionCode&amp; ec) const
</span><span class="cx"> {
</span><del>-    RenderStyle* style = renderStyleForLengthResolving(m_context);
</del><ins>+    auto* style = renderStyleForLengthResolving(m_context);
</ins><span class="cx">     if (!style) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="cx">         return 0;
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGStopElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGStopElement.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGStopElement.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/svg/SVGStopElement.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx"> 
</span><span class="cx"> Color SVGStopElement::stopColorIncludingOpacity() const
</span><span class="cx"> {
</span><del>-    RenderStyle* style = renderer() ? &amp;renderer()-&gt;style() : nullptr;
</del><ins>+    auto* style = renderer() ? &amp;renderer()-&gt;style() : nullptr;
</ins><span class="cx">     // FIXME: This check for null style exists to address Bug WK 90814, a rare crash condition in
</span><span class="cx">     // which the renderer or style is null. This entire class is scheduled for removal (Bug WK 86941)
</span><span class="cx">     // and we will tolerate this null check until then.
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGTextElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGTextElement.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGTextElement.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebCore/svg/SVGTextElement.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx"> AffineTransform SVGTextElement::animatedLocalTransform() const
</span><span class="cx"> {
</span><span class="cx">     AffineTransform matrix;
</span><del>-    RenderStyle* style = renderer() ? &amp;renderer()-&gt;style() : nullptr;
</del><ins>+    auto* style = renderer() ? &amp;renderer()-&gt;style() : nullptr;
</ins><span class="cx"> 
</span><span class="cx">     // if CSS property was set, use that, otherwise fallback to attribute (if set)
</span><span class="cx">     if (style &amp;&amp; style-&gt;hasTransform()) {
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -823,7 +823,7 @@
</span><span class="cx">         auto&amp; postLayoutData = result.postLayoutData();
</span><span class="cx">         if (!selection.isNone()) {
</span><span class="cx">             Node* nodeToRemove;
</span><del>-            if (RenderStyle* style = Editor::styleForSelectionStart(&amp;frame, nodeToRemove)) {
</del><ins>+            if (auto* style = Editor::styleForSelectionStart(&amp;frame, nodeToRemove)) {
</ins><span class="cx">                 if (style-&gt;fontCascade().weight() &gt;= FontWeightBold)
</span><span class="cx">                     postLayoutData.typingAttributes |= AttributeBold;
</span><span class="cx">                 if (style-&gt;fontCascade().italic() == FontItalicOn)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageiosWebPageIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm (200097 => 200098)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm        2016-04-26 17:46:23 UTC (rev 200097)
+++ trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm        2016-04-26 18:20:09 UTC (rev 200098)
</span><span class="lines">@@ -824,7 +824,7 @@
</span><span class="cx">     if (!renderer)
</span><span class="cx">         return FloatQuad();
</span><span class="cx"> 
</span><del>-    RenderStyle&amp; style = renderer-&gt;style();
</del><ins>+    auto&amp; style = renderer-&gt;style();
</ins><span class="cx">     IntRect boundingBox = renderer-&gt;absoluteBoundingBoxRect(true /* use transforms*/);
</span><span class="cx"> 
</span><span class="cx">     boundingBox.move(style.borderLeftWidth(), style.borderTopWidth());
</span></span></pre>
</div>
</div>

</body>
</html>