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

Unified Diff: third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowModel.js

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: rebaseline Created 3 years, 9 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/inline_editor/CSSShadowModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowModel.js b/third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowModel.js
index 66ef9e3b5ea659b87cc7d7e62e2460ef1e453d70..12ef0312fd3776c59c5da9aaba70388eb75dcfc8 100644
--- a/third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowModel.js
@@ -43,7 +43,7 @@ InlineEditor.CSSShadowModel = class {
static _parseShadow(text, isBoxShadow) {
var shadowTexts = [];
// Split by commas that aren't inside of color values to get the individual shadow values.
- var splits = Common.TextUtils.splitStringByRegexes(text, [Common.Color.Regex, /,/g]);
+ var splits = TextUtils.TextUtils.splitStringByRegexes(text, [Common.Color.Regex, /,/g]);
var currentIndex = 0;
for (var i = 0; i < splits.length; i++) {
if (splits[i].regexIndex === 1) {
@@ -60,7 +60,7 @@ InlineEditor.CSSShadowModel = class {
shadow._format = [];
var nextPartAllowed = true;
var regexes = [/inset/gi, Common.Color.Regex, InlineEditor.CSSLength.Regex];
- var results = Common.TextUtils.splitStringByRegexes(shadowTexts[i], regexes);
+ var results = TextUtils.TextUtils.splitStringByRegexes(shadowTexts[i], regexes);
for (var j = 0; j < results.length; j++) {
var result = results[j];
if (result.regexIndex === -1) {

Powered by Google App Engine
This is Rietveld 408576698