| Index: trunk/Source/core/layout/LayoutTextControlSingleLine.cpp
|
| ===================================================================
|
| --- trunk/Source/core/layout/LayoutTextControlSingleLine.cpp (revision 190671)
|
| +++ trunk/Source/core/layout/LayoutTextControlSingleLine.cpp (working copy)
|
| @@ -110,7 +110,7 @@
|
|
|
| // To ensure consistency between layouts, we need to reset any conditionally overriden height.
|
| if (innerEditorRenderer && !innerEditorRenderer->style()->logicalHeight().isAuto()) {
|
| - innerEditorRenderer->mutableStyleRef().setLogicalHeight(Length(Auto));
|
| + innerEditorRenderer->style()->setLogicalHeight(Length(Auto));
|
| layoutScope.setNeedsLayout(innerEditorRenderer);
|
| HTMLElement* placeholderElement = inputElement()->placeholderElement();
|
| if (RenderBox* placeholderBox = placeholderElement ? placeholderElement->renderBox() : 0)
|
| @@ -117,7 +117,7 @@
|
| layoutScope.setNeedsLayout(placeholderBox);
|
| }
|
| if (viewPortRenderer && !viewPortRenderer->style()->logicalHeight().isAuto()) {
|
| - viewPortRenderer->mutableStyleRef().setLogicalHeight(Length(Auto));
|
| + viewPortRenderer->style()->setLogicalHeight(Length(Auto));
|
| layoutScope.setNeedsLayout(viewPortRenderer);
|
| }
|
|
|
| @@ -135,10 +135,10 @@
|
|
|
| m_desiredInnerEditorLogicalHeight = desiredLogicalHeight;
|
|
|
| - innerEditorRenderer->mutableStyleRef().setLogicalHeight(Length(desiredLogicalHeight, Fixed));
|
| + innerEditorRenderer->style()->setLogicalHeight(Length(desiredLogicalHeight, Fixed));
|
| layoutScope.setNeedsLayout(innerEditorRenderer);
|
| if (viewPortRenderer) {
|
| - viewPortRenderer->mutableStyleRef().setLogicalHeight(Length(desiredLogicalHeight, Fixed));
|
| + viewPortRenderer->style()->setLogicalHeight(Length(desiredLogicalHeight, Fixed));
|
| layoutScope.setNeedsLayout(viewPortRenderer);
|
| }
|
| }
|
| @@ -147,13 +147,13 @@
|
| containerRenderer->layoutIfNeeded();
|
| LayoutUnit containerLogicalHeight = containerRenderer->logicalHeight();
|
| if (containerLogicalHeight > logicalHeightLimit) {
|
| - containerRenderer->mutableStyleRef().setLogicalHeight(Length(logicalHeightLimit, Fixed));
|
| + containerRenderer->style()->setLogicalHeight(Length(logicalHeightLimit, Fixed));
|
| layoutScope.setNeedsLayout(this);
|
| } else if (containerRenderer->logicalHeight() < contentLogicalHeight()) {
|
| - containerRenderer->mutableStyleRef().setLogicalHeight(Length(contentLogicalHeight(), Fixed));
|
| + containerRenderer->style()->setLogicalHeight(Length(contentLogicalHeight(), Fixed));
|
| layoutScope.setNeedsLayout(this);
|
| } else {
|
| - containerRenderer->mutableStyleRef().setLogicalHeight(Length(containerLogicalHeight, Fixed));
|
| + containerRenderer->style()->setLogicalHeight(Length(containerLogicalHeight, Fixed));
|
| }
|
| }
|
|
|
| @@ -175,8 +175,8 @@
|
|
|
| if (innerEditorRenderer)
|
| innerEditorSize = innerEditorRenderer->size();
|
| - placeholderBox->mutableStyleRef().setWidth(Length(innerEditorSize.width() - placeholderBox->borderAndPaddingWidth(), Fixed));
|
| - placeholderBox->mutableStyleRef().setHeight(Length(innerEditorSize.height() - placeholderBox->borderAndPaddingHeight(), Fixed));
|
| + placeholderBox->style()->setWidth(Length(innerEditorSize.width() - placeholderBox->borderAndPaddingWidth(), Fixed));
|
| + placeholderBox->style()->setHeight(Length(innerEditorSize.height() - placeholderBox->borderAndPaddingHeight(), Fixed));
|
| bool neededLayout = placeholderBox->needsLayout();
|
| placeholderBox->layoutIfNeeded();
|
| LayoutPoint textOffset;
|
| @@ -227,13 +227,13 @@
|
| // Reset them now to avoid getting a spurious layout hint.
|
| Element* viewPort = editingViewPortElement();
|
| if (LayoutObject* viewPortRenderer = viewPort ? viewPort->renderer() : 0) {
|
| - viewPortRenderer->mutableStyle()->setHeight(Length());
|
| - viewPortRenderer->mutableStyle()->setWidth(Length());
|
| + viewPortRenderer->style()->setHeight(Length());
|
| + viewPortRenderer->style()->setWidth(Length());
|
| }
|
| Element* container = containerElement();
|
| if (LayoutObject* containerRenderer = container ? container->renderer() : 0) {
|
| - containerRenderer->mutableStyle()->setHeight(Length());
|
| - containerRenderer->mutableStyle()->setWidth(Length());
|
| + containerRenderer->style()->setHeight(Length());
|
| + containerRenderer->style()->setWidth(Length());
|
| }
|
| LayoutObject* innerEditorRenderer = innerEditorElement()->renderer();
|
| if (innerEditorRenderer && diff.needsFullLayout())
|
|
|