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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-value-inside-property.html

Issue 2327983002: [DevTools] Migrate StylesSidebarPane to TreeOutlineInShadow. (Closed)
Patch Set: filtering, tests Created 4 years, 3 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/LayoutTests/inspector/elements/styles-1/edit-value-inside-property.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-value-inside-property.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-value-inside-property.html
index 380c51133fbb140ef0df5bbc693fe599052e48b4..d7b293a6ff789c2c46718982cb2e94e9c47b8028 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-value-inside-property.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-value-inside-property.html
@@ -12,7 +12,7 @@ function test()
{
var treeElement = InspectorTest.getMatchedStylePropertyTreeItem("font-size");
treeElement.startEditing(treeElement.valueElement);
- var selection = window.getSelection();
+ var selection = treeElement.valueElement.getComponentSelection();
var range = selection.getRangeAt(0);
var newRange = document.createRange();
newRange.setStart(range.startContainer, 1);

Powered by Google App Engine
This is Rietveld 408576698