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

Side by Side Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 1281783004: ASSERTION FAILED: !m_parsedCalculation in blink::CSSPropertyParser::parseValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/css/motion-degrees-calc-crash-expected.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 8117 matching lines...) Expand 10 before | Expand all | Expand 10 after
8128 PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseMotionRotation() 8128 PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseMotionRotation()
8129 { 8129 {
8130 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated() ; 8130 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated() ;
8131 bool hasAutoOrReverse = false; 8131 bool hasAutoOrReverse = false;
8132 bool hasAngle = false; 8132 bool hasAngle = false;
8133 8133
8134 for (CSSParserValue* value = m_valueList->current(); value; value = m_valueL ist->next()) { 8134 for (CSSParserValue* value = m_valueList->current(); value; value = m_valueL ist->next()) {
8135 if ((value->id == CSSValueAuto || value->id == CSSValueReverse) && !hasA utoOrReverse) { 8135 if ((value->id == CSSValueAuto || value->id == CSSValueReverse) && !hasA utoOrReverse) {
8136 list->append(cssValuePool().createIdentifierValue(value->id)); 8136 list->append(cssValuePool().createIdentifierValue(value->id));
8137 hasAutoOrReverse = true; 8137 hasAutoOrReverse = true;
8138 } else if (validUnit(value, FAngle) && !hasAngle) { 8138 } else if (!hasAngle && validUnit(value, FAngle)) {
8139 list->append(createPrimitiveNumericValue(value)); 8139 list->append(createPrimitiveNumericValue(value));
8140 hasAngle = true; 8140 hasAngle = true;
8141 } else { 8141 } else {
8142 break; 8142 break;
8143 } 8143 }
8144 } 8144 }
8145 8145
8146 if (!list->length()) 8146 if (!list->length())
8147 return nullptr; 8147 return nullptr;
8148 8148
8149 return list.release(); 8149 return list.release();
8150 } 8150 }
8151 8151
8152 } // namespace blink 8152 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/motion-degrees-calc-crash-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698