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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 2626143004: DevTools: move from Common module - Geometry and CSSShadowModel (Closed)
Patch Set: minimize test diff Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
index 4b004f4ce8fb1d03721c3667beb04141005c17f4..9cb007d04cda3049c167b6ef1c689d785c290b6b 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -1924,7 +1924,7 @@ Elements.StylePropertyTreeElement = class extends UI.TreeElement {
* @return {!Node}
*/
_processBezier(text) {
- if (!this._editable() || !Common.Geometry.CubicBezier.parse(text))
+ if (!this._editable() || !UI.Geometry.CubicBezier.parse(text))
return createTextNode(text);
var swatchPopoverHelper = this._parentPane._swatchPopoverHelper;
var swatch = InlineEditor.BezierSwatch.create();
@@ -1943,9 +1943,9 @@ Elements.StylePropertyTreeElement = class extends UI.TreeElement {
return createTextNode(propertyValue);
var shadows;
if (propertyName === 'text-shadow')
- shadows = Common.CSSShadowModel.parseTextShadow(propertyValue);
+ shadows = InlineEditor.CSSShadowModel.parseTextShadow(propertyValue);
else
- shadows = Common.CSSShadowModel.parseBoxShadow(propertyValue);
+ shadows = InlineEditor.CSSShadowModel.parseBoxShadow(propertyValue);
if (!shadows.length)
return createTextNode(propertyValue);
var container = createDocumentFragment();
@@ -3000,7 +3000,7 @@ Elements.StylesSidebarPropertyRenderer = class {
var regexes = [SDK.CSSMetadata.VariableRegex, SDK.CSSMetadata.URLRegex];
var processors = [createTextNode, this._processURL.bind(this)];
if (this._bezierHandler && SDK.cssMetadata().isBezierAwareProperty(this._propertyName)) {
- regexes.push(Common.Geometry.CubicBezier.Regex);
+ regexes.push(UI.Geometry.CubicBezier.Regex);
processors.push(this._bezierHandler);
}
if (this._colorHandler && SDK.cssMetadata().isColorAwareProperty(this._propertyName)) {

Powered by Google App Engine
This is Rietveld 408576698