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

Unified Diff: pkg/path/lib/src/parsed_path.dart

Issue 439223002: Add InternalStyle:rootLength to implement isAbsolute and rootPrefix. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review update. Created 6 years, 4 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: pkg/path/lib/src/parsed_path.dart
diff --git a/pkg/path/lib/src/parsed_path.dart b/pkg/path/lib/src/parsed_path.dart
index 57773eee7b5884ba6394d50bafb6b2453ded8d06..a7b0afd3bf1662eee670ff63328b9b089a9922e8 100644
--- a/pkg/path/lib/src/parsed_path.dart
+++ b/pkg/path/lib/src/parsed_path.dart
@@ -45,7 +45,7 @@ class ParsedPath {
// Remove the root prefix, if any.
var root = style.getRoot(path);
- var isRootRelative = style.getRelativeRoot(path) != null;
+ var isRootRelative = style.isRootRelative(path);
if (root != null) path = path.substring(root.length);
// Split the parts on path separators.

Powered by Google App Engine
This is Rietveld 408576698