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

Unified Diff: Source/core/css/MediaValues.cpp

Issue 268553003: Remove unreachable code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move ASSERT instead of deleting it Created 6 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaValues.cpp
diff --git a/Source/core/css/MediaValues.cpp b/Source/core/css/MediaValues.cpp
index 5ae52fcc6400fbc02adce688168532e0f54cf749..6a28c2a35d8a1f0b48c2c7e960683c0fe472b2a0 100644
--- a/Source/core/css/MediaValues.cpp
+++ b/Source/core/css/MediaValues.cpp
@@ -196,10 +196,9 @@ bool MediaValues::computeLengthImpl(double value, CSSPrimitiveValue::UnitTypes t
return false;
}
+ ASSERT(factor > 0);
result = value * factor;
return true;
-
- ASSERT(factor > 0);
}
} // namespace
« 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