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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp

Issue 1442233002: Move stroke-dasharray property into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 5 years 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 | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h » ('j') | 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 549
550 bool CSSPrimitiveValue::unitTypeToLengthUnitType(UnitType unitType, LengthUnitTy pe& lengthType) 550 bool CSSPrimitiveValue::unitTypeToLengthUnitType(UnitType unitType, LengthUnitTy pe& lengthType)
551 { 551 {
552 switch (unitType) { 552 switch (unitType) {
553 case CSSPrimitiveValue::UnitType::Pixels: 553 case CSSPrimitiveValue::UnitType::Pixels:
554 case CSSPrimitiveValue::UnitType::Centimeters: 554 case CSSPrimitiveValue::UnitType::Centimeters:
555 case CSSPrimitiveValue::UnitType::Millimeters: 555 case CSSPrimitiveValue::UnitType::Millimeters:
556 case CSSPrimitiveValue::UnitType::Inches: 556 case CSSPrimitiveValue::UnitType::Inches:
557 case CSSPrimitiveValue::UnitType::Points: 557 case CSSPrimitiveValue::UnitType::Points:
558 case CSSPrimitiveValue::UnitType::Picas: 558 case CSSPrimitiveValue::UnitType::Picas:
559 case CSSPrimitiveValue::UnitType::UserUnits:
559 lengthType = UnitTypePixels; 560 lengthType = UnitTypePixels;
560 return true; 561 return true;
561 case CSSPrimitiveValue::UnitType::Ems: 562 case CSSPrimitiveValue::UnitType::Ems:
562 case CSSPrimitiveValue::UnitType::QuirkyEms: 563 case CSSPrimitiveValue::UnitType::QuirkyEms:
563 lengthType = UnitTypeFontSize; 564 lengthType = UnitTypeFontSize;
564 return true; 565 return true;
565 case CSSPrimitiveValue::UnitType::Exs: 566 case CSSPrimitiveValue::UnitType::Exs:
566 lengthType = UnitTypeFontXSize; 567 lengthType = UnitTypeFontXSize;
567 return true; 568 return true;
568 case CSSPrimitiveValue::UnitType::Rems: 569 case CSSPrimitiveValue::UnitType::Rems:
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 visitor->trace(m_value.calc); 843 visitor->trace(m_value.calc);
843 break; 844 break;
844 default: 845 default:
845 break; 846 break;
846 } 847 }
847 #endif 848 #endif
848 CSSValue::traceAfterDispatch(visitor); 849 CSSValue::traceAfterDispatch(visitor);
849 } 850 }
850 851
851 } // namespace blink 852 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698