Commit a17cd166 authored by fdegans@chromium.org's avatar fdegans@chromium.org

Fixed a variable that may be used uninitialized.

Prevents a warning with GCC 4.8 on Android.

BUG=

Review URL: https://codereview.chromium.org/221873006

git-svn-id: svn://svn.chromium.org/blink/trunk@170675 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 1f370f63
...@@ -329,7 +329,7 @@ static inline bool parseSimpleLength(const CharacterType* characters, unsigned l ...@@ -329,7 +329,7 @@ static inline bool parseSimpleLength(const CharacterType* characters, unsigned l
static bool parseSimpleLengthValue(MutableStylePropertySet* declaration, CSSPropertyID propertyId, const String& string, bool important, CSSParserMode cssParserMode) static bool parseSimpleLengthValue(MutableStylePropertySet* declaration, CSSPropertyID propertyId, const String& string, bool important, CSSParserMode cssParserMode)
{ {
ASSERT(!string.isEmpty()); ASSERT(!string.isEmpty());
bool acceptsNegativeNumbers; bool acceptsNegativeNumbers = false;
// In @viewport, width and height are shorthands, not simple length values. // In @viewport, width and height are shorthands, not simple length values.
if (isCSSViewportParsingEnabledForMode(cssParserMode) || !isSimpleLengthPropertyID(propertyId, acceptsNegativeNumbers)) if (isCSSViewportParsingEnabledForMode(cssParserMode) || !isSimpleLengthPropertyID(propertyId, acceptsNegativeNumbers))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment