IFrame Scrollbar needs reconstruction.
IFrame Scrollbar needs reconstruction. In the updateWidgetGeometry set
frameview needs layout if frameview scrollbars needsreconstruction.
BUG=492785
Review-Url: https://codereview.chromium.org/2314593003
Cr-Commit-Position: refs/heads/master@{#418837}
diff --git a/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-style-sheet.html b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-style-sheet.html
new file mode 100644
index 0000000..9b22948
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-on-inserting-style-sheet.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<iframe frameborder="0"></iframe>
+<div id = "content">
+<div style="width: 400px; height: 400px"></div>
+</div>
+<script>
+ var idoc = document.querySelector("iframe").contentDocument;
+ var sheet = idoc.head.appendChild(idoc.createElement("style")).sheet;
+ idoc.body.innerHTML = document.querySelector('#content').innerHTML;
+ document.body.offsetTop;
+ sheet.insertRule("::-webkit-scrollbar { width: 50px; height: 20px; }", 0);
+ sheet.insertRule("::-webkit-scrollbar-thumb { background: green; }", 1);
+ </script>