| Index: Source/devtools/front_end/ui/DOMExtension.js
|
| diff --git a/Source/devtools/front_end/ui/DOMExtension.js b/Source/devtools/front_end/ui/DOMExtension.js
|
| index 55f021f6f0a9b0dbd1de750ba9106039e081cdeb..ff5133ca303321a15b6347fb26b83843aaad9f96 100644
|
| --- a/Source/devtools/front_end/ui/DOMExtension.js
|
| +++ b/Source/devtools/front_end/ui/DOMExtension.js
|
| @@ -284,17 +284,13 @@ Element.prototype.measurePreferredSize = function(containerElement)
|
| {
|
| containerElement = containerElement || this.ownerDocument.body;
|
| containerElement.appendChild(this);
|
| - var fakingComponentRoot = false;
|
| - if (!this.classList.contains("component-root")) {
|
| - fakingComponentRoot = true;
|
| - this.classList.add("component-root");
|
| - }
|
| + var fakingComponentRoot = WebInspector.installComponentRootStyles(this);
|
| this.positionAt(0, 0);
|
| var result = new Size(this.offsetWidth, this.offsetHeight);
|
| this.positionAt(undefined, undefined);
|
| this.remove();
|
| if (fakingComponentRoot)
|
| - this.classList.remove("component-root");
|
| + WebInspector.uninstallComponentRootStyles(this);
|
| return result;
|
| }
|
|
|
|
|