Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(671)

Side by Side Diff: Source/devtools/front_end/devtools.js

Issue 1147123005: DevTools: fix front-end compilation following r196255 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 (function(window) { 5 (function(window) {
6 6
7 // DevToolsAPI ---------------------------------------------------------------- 7 // DevToolsAPI ----------------------------------------------------------------
8 8
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 */ 797 */
798 getFloatValue: function() { return this.__paddingLeft; }, 798 getFloatValue: function() { return this.__paddingLeft; },
799 __paddingLeft: parseFloat(this.paddingLeft) 799 __paddingLeft: parseFloat(this.paddingLeft)
800 }; 800 };
801 } 801 }
802 throw new Error("getPropertyCSSValue is undefined"); 802 throw new Error("getPropertyCSSValue is undefined");
803 } 803 }
804 804
805 // Support for legacy (<M41) frontends. Remove in M45. 805 // Support for legacy (<M41) frontends. Remove in M45.
806 window.CSSStyleDeclaration.prototype.getPropertyCSSValue = getValue; 806 window.CSSStyleDeclaration.prototype.getPropertyCSSValue = getValue;
807 window.CSSPrimitiveValue = { CSS_PX: "CSS_PX" }; 807
808 function CSSPrimitiveValue()
809 {
810 }
811 CSSPrimitiveValue.CSS_PX = 5;
812 window.CSSPrimitiveValue = CSSPrimitiveValue;
808 813
809 // Support for legacy (<M44) frontends. Remove in M48. 814 // Support for legacy (<M44) frontends. Remove in M48.
810 var styleElement = window.document.createElement("style"); 815 var styleElement = window.document.createElement("style");
811 styleElement.type = "text/css"; 816 styleElement.type = "text/css";
812 styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }"; 817 styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }";
813 window.document.head.appendChild(styleElement); 818 window.document.head.appendChild(styleElement);
814 } 819 }
815 820
816 function windowLoaded() 821 function windowLoaded()
817 { 822 {
(...skipping 29 matching lines...) Expand all
847 uiTests.testSuiteReady = function(testSuiteConstructor, testBase) 852 uiTests.testSuiteReady = function(testSuiteConstructor, testBase)
848 { 853 {
849 uiTests._testSuite = testSuiteConstructor(window.domAutomationController ); 854 uiTests._testSuite = testSuiteConstructor(window.domAutomationController );
850 uiTests._tryRun(); 855 uiTests._tryRun();
851 }; 856 };
852 857
853 window.uiTests = uiTests; 858 window.uiTests = uiTests;
854 } 859 }
855 860
856 })(window); 861 })(window);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698