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

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

Issue 2570463002: Moved -webkit-print-color-adjust property to be generated. (Closed)
Patch Set: Rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
8 * Copyright (C) 2015 Google Inc. All rights reserved. 8 * Copyright (C) 2015 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 return CSSIdentifierValue::create(CSSValueAuto); 2213 return CSSIdentifierValue::create(CSSValueAuto);
2214 return CSSColorValue::create(style.caretColor().color().rgb()); 2214 return CSSColorValue::create(style.caretColor().color().rgb());
2215 case CSSPropertyClear: 2215 case CSSPropertyClear:
2216 return CSSIdentifierValue::create(style.clear()); 2216 return CSSIdentifierValue::create(style.clear());
2217 case CSSPropertyColor: 2217 case CSSPropertyColor:
2218 return CSSColorValue::create( 2218 return CSSColorValue::create(
2219 allowVisitedStyle 2219 allowVisitedStyle
2220 ? style.visitedDependentColor(CSSPropertyColor).rgb() 2220 ? style.visitedDependentColor(CSSPropertyColor).rgb()
2221 : style.color().rgb()); 2221 : style.color().rgb());
2222 case CSSPropertyWebkitPrintColorAdjust: 2222 case CSSPropertyWebkitPrintColorAdjust:
2223 return CSSIdentifierValue::create(style.getPrintColorAdjust()); 2223 return CSSIdentifierValue::create(style.printColorAdjust());
2224 case CSSPropertyColumnCount: 2224 case CSSPropertyColumnCount:
2225 if (style.hasAutoColumnCount()) 2225 if (style.hasAutoColumnCount())
2226 return CSSIdentifierValue::create(CSSValueAuto); 2226 return CSSIdentifierValue::create(CSSValueAuto);
2227 return CSSPrimitiveValue::create(style.columnCount(), 2227 return CSSPrimitiveValue::create(style.columnCount(),
2228 CSSPrimitiveValue::UnitType::Number); 2228 CSSPrimitiveValue::UnitType::Number);
2229 case CSSPropertyColumnFill: 2229 case CSSPropertyColumnFill:
2230 return CSSIdentifierValue::create(style.getColumnFill()); 2230 return CSSIdentifierValue::create(style.getColumnFill());
2231 case CSSPropertyColumnGap: 2231 case CSSPropertyColumnGap:
2232 if (style.hasNormalColumnGap()) 2232 if (style.hasNormalColumnGap())
2233 return CSSIdentifierValue::create(CSSValueNormal); 2233 return CSSIdentifierValue::create(CSSValueNormal);
(...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after
3645 case CSSPropertyAll: 3645 case CSSPropertyAll:
3646 return nullptr; 3646 return nullptr;
3647 default: 3647 default:
3648 break; 3648 break;
3649 } 3649 }
3650 ASSERT_NOT_REACHED(); 3650 ASSERT_NOT_REACHED();
3651 return nullptr; 3651 return nullptr;
3652 } 3652 }
3653 3653
3654 } // namespace blink 3654 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.in ('k') | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698