| Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| index fa53cf4be94d6f5fdaa592e667ebd34d4fd8f577..e7828ea4f2178a69633fc93e318876e286e63456 100644
|
| --- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| @@ -302,13 +302,27 @@ void WebFrameWidgetImpl::clearBackgroundColorOverride() {
|
| }
|
|
|
| void WebFrameWidgetImpl::setBaseBackgroundColorOverride(WebColor color) {
|
| + if (m_baseBackgroundColorOverrideEnabled &&
|
| + m_baseBackgroundColorOverride == color) {
|
| + return;
|
| + }
|
| +
|
| m_baseBackgroundColorOverrideEnabled = true;
|
| m_baseBackgroundColorOverride = color;
|
| + // Force lifecycle update to ensure we're good to call
|
| + // FrameView::setBaseBackgroundColor().
|
| + m_localRoot->frameView()->updateLifecycleToCompositingCleanPlusScrolling();
|
| updateBaseBackgroundColor();
|
| }
|
|
|
| void WebFrameWidgetImpl::clearBaseBackgroundColorOverride() {
|
| + if (!m_baseBackgroundColorOverrideEnabled)
|
| + return;
|
| +
|
| m_baseBackgroundColorOverrideEnabled = false;
|
| + // Force lifecycle update to ensure we're good to call
|
| + // FrameView::setBaseBackgroundColor().
|
| + m_localRoot->frameView()->updateLifecycleToCompositingCleanPlusScrolling();
|
| updateBaseBackgroundColor();
|
| }
|
|
|
|
|