| Index: Source/core/layout/LayoutObject.cpp
|
| diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
|
| index e83bcaf727985ddf3cefa21f3da22497820ad565..19b7fe5112064a76d911e1e59224033685edb74c 100644
|
| --- a/Source/core/layout/LayoutObject.cpp
|
| +++ b/Source/core/layout/LayoutObject.cpp
|
| @@ -2302,23 +2302,6 @@ bool LayoutObject::isRooted() const
|
| return false;
|
| }
|
|
|
| -LayoutObject* LayoutObject::layoutObjectForRootBackground()
|
| -{
|
| - ASSERT(isDocumentElement());
|
| - if (!hasBackground() && isHTMLHtmlElement(node())) {
|
| - // Locate the <body> element using the DOM. This is easier than trying
|
| - // to crawl around a layout tree with potential :before/:after content and
|
| - // anonymous blocks created by inline <body> tags etc. We can locate the <body>
|
| - // layout object very easily via the DOM.
|
| - HTMLElement* body = document().body();
|
| - LayoutObject* bodyObject = isHTMLBodyElement(body) ? body->layoutObject() : 0;
|
| - if (bodyObject)
|
| - return bodyObject;
|
| - }
|
| -
|
| - return this;
|
| -}
|
| -
|
| RespectImageOrientationEnum LayoutObject::shouldRespectImageOrientation() const
|
| {
|
| // Respect the image's orientation if it's being used as a full-page image or it's
|
| @@ -3171,15 +3154,6 @@ void LayoutObject::setShouldDoFullPaintInvalidation(PaintInvalidationReason reas
|
| if (reason == PaintInvalidationFull)
|
| reason = documentLifecycleBasedPaintInvalidationReason(document().lifecycle());
|
| m_bitfields.setFullPaintInvalidationReason(reason);
|
| -
|
| - if (RuntimeEnabledFeatures::slimmingPaintEnabled() && isBody()) {
|
| - // The rootObject paints view's background. We need to invalidate it when
|
| - // view's background changes because of change of body's style.
|
| - // FIXME: The condition is broader than needed for simplicity.
|
| - // Might remove this when fixing crbug.com/475115.
|
| - if (LayoutObject* rootObject = document().documentElement()->layoutObject())
|
| - rootObject->setShouldDoFullPaintInvalidation();
|
| - }
|
| }
|
|
|
| if (!isUpgradingDelayedFullToFull) {
|
|
|