| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index b35cf9138e2167da918498afdff7768617eb222b..78f59bda6740407c1a9c4d3d302abbd06dcf6338 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -689,7 +689,8 @@ int Element::clientWidth()
|
| bool inQuirksMode = document().inQuirksMode();
|
| if ((!inQuirksMode && document().documentElement() == this)
|
| || (inQuirksMode && isHTMLElement() && document().body() == this)) {
|
| - if (LayoutViewItem layoutView = LayoutViewItem(document().layoutView())) {
|
| + LayoutViewItem layoutView = document().layoutViewItem();
|
| + if (!layoutView.isNull()) {
|
| if (!RuntimeEnabledFeatures::overlayScrollbarsEnabled() || !document().frame()->isLocalRoot())
|
| document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this);
|
| if (document().page()->settings().forceZeroLayoutHeight())
|
| @@ -713,7 +714,8 @@ int Element::clientHeight()
|
|
|
| if ((!inQuirksMode && document().documentElement() == this)
|
| || (inQuirksMode && isHTMLElement() && document().body() == this)) {
|
| - if (LayoutViewItem layoutView = LayoutViewItem(document().layoutView())) {
|
| + LayoutViewItem layoutView = document().layoutViewItem();
|
| + if (!layoutView.isNull()) {
|
| if (!RuntimeEnabledFeatures::overlayScrollbarsEnabled() || !document().frame()->isLocalRoot())
|
| document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this);
|
| if (document().page()->settings().forceZeroLayoutHeight())
|
|
|