DevTools: fix styles for glasspane

The glasspane should be a component-root so that it inherits all the
basic styling.

R=pfeldman

Review URL: https://codereview.chromium.org/659043002

git-svn-id: svn://svn.chromium.org/blink/trunk@183813 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 32cd042f
......@@ -47,6 +47,7 @@ WebInspector.Dialog = function(relativeToElement, delegate)
this._element = this._glassPane.element.createChild("div");
this._element.tabIndex = 0;
this._element.classList.add("component-root");
this._element.addEventListener("focus", this._onFocus.bind(this), false);
this._element.addEventListener("keydown", this._onKeyDown.bind(this), false);
this._closeKeys = [
......
......@@ -49,6 +49,7 @@ WebInspector.SoftContextMenu.prototype = {
// Create context menu.
this._contextMenuElement = document.createElementWithClass("div", "soft-context-menu");
this._contextMenuElement.classList.add("component-root");
this._contextMenuElement.tabIndex = 0;
this._contextMenuElement.style.top = y + "px";
this._contextMenuElement.style.left = x + "px";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment