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

Side by Side Diff: sky/engine/core/css/CSSComputedStyleDeclaration.cpp

Issue 762473003: Remove webkit-print-color-adjust (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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 | sky/engine/core/css/CSSPrimitiveValueMappings.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 * 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. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 CSSPropertyWebkitMaskImage, 240 CSSPropertyWebkitMaskImage,
241 CSSPropertyWebkitMaskOrigin, 241 CSSPropertyWebkitMaskOrigin,
242 CSSPropertyWebkitMaskPosition, 242 CSSPropertyWebkitMaskPosition,
243 CSSPropertyWebkitMaskRepeat, 243 CSSPropertyWebkitMaskRepeat,
244 CSSPropertyWebkitMaskSize, 244 CSSPropertyWebkitMaskSize,
245 CSSPropertyOrder, 245 CSSPropertyOrder,
246 CSSPropertyPerspective, 246 CSSPropertyPerspective,
247 CSSPropertyWebkitPerspective, 247 CSSPropertyWebkitPerspective,
248 CSSPropertyPerspectiveOrigin, 248 CSSPropertyPerspectiveOrigin,
249 CSSPropertyWebkitPerspectiveOrigin, 249 CSSPropertyWebkitPerspectiveOrigin,
250 CSSPropertyWebkitPrintColorAdjust,
251 CSSPropertyWebkitRtlOrdering, 250 CSSPropertyWebkitRtlOrdering,
252 CSSPropertyWebkitTapHighlightColor, 251 CSSPropertyWebkitTapHighlightColor,
253 CSSPropertyWebkitTextDecorationsInEffect, 252 CSSPropertyWebkitTextDecorationsInEffect,
254 CSSPropertyWebkitTextEmphasisColor, 253 CSSPropertyWebkitTextEmphasisColor,
255 CSSPropertyWebkitTextEmphasisPosition, 254 CSSPropertyWebkitTextEmphasisPosition,
256 CSSPropertyWebkitTextEmphasisStyle, 255 CSSPropertyWebkitTextEmphasisStyle,
257 CSSPropertyWebkitTextFillColor, 256 CSSPropertyWebkitTextFillColor,
258 CSSPropertyWebkitTextOrientation, 257 CSSPropertyWebkitTextOrientation,
259 CSSPropertyWebkitTextStrokeColor, 258 CSSPropertyWebkitTextStrokeColor,
260 CSSPropertyWebkitTextStrokeWidth, 259 CSSPropertyWebkitTextStrokeWidth,
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 if (style->boxDecorationBreak() == DSLICE) 1441 if (style->boxDecorationBreak() == DSLICE)
1443 return cssValuePool().createIdentifierValue(CSSValueSlice); 1442 return cssValuePool().createIdentifierValue(CSSValueSlice);
1444 return cssValuePool().createIdentifierValue(CSSValueClone); 1443 return cssValuePool().createIdentifierValue(CSSValueClone);
1445 case CSSPropertyBoxShadow: 1444 case CSSPropertyBoxShadow:
1446 case CSSPropertyWebkitBoxShadow: 1445 case CSSPropertyWebkitBoxShadow:
1447 return valueForShadowList(style->boxShadow(), *style, true); 1446 return valueForShadowList(style->boxShadow(), *style, true);
1448 case CSSPropertyCaptionSide: 1447 case CSSPropertyCaptionSide:
1449 return cssValuePool().createValue(style->captionSide()); 1448 return cssValuePool().createValue(style->captionSide());
1450 case CSSPropertyColor: 1449 case CSSPropertyColor:
1451 return cssValuePool().createColorValue(m_allowVisitedStyle ? style-> colorIncludingFallback(CSSPropertyColor).rgb() : style->color().rgb()); 1450 return cssValuePool().createColorValue(m_allowVisitedStyle ? style-> colorIncludingFallback(CSSPropertyColor).rgb() : style->color().rgb());
1452 case CSSPropertyWebkitPrintColorAdjust:
1453 return cssValuePool().createValue(style->printColorAdjust());
1454 case CSSPropertyTabSize: 1451 case CSSPropertyTabSize:
1455 return cssValuePool().createValue(style->tabSize(), CSSPrimitiveValu e::CSS_NUMBER); 1452 return cssValuePool().createValue(style->tabSize(), CSSPrimitiveValu e::CSS_NUMBER);
1456 case CSSPropertyCursor: { 1453 case CSSPropertyCursor: {
1457 RefPtr<CSSValueList> list = nullptr; 1454 RefPtr<CSSValueList> list = nullptr;
1458 CursorList* cursors = style->cursors(); 1455 CursorList* cursors = style->cursors();
1459 if (cursors && cursors->size() > 0) { 1456 if (cursors && cursors->size() > 0) {
1460 list = CSSValueList::createCommaSeparated(); 1457 list = CSSValueList::createCommaSeparated();
1461 for (unsigned i = 0; i < cursors->size(); ++i) 1458 for (unsigned i = 0; i < cursors->size(); ++i)
1462 if (StyleImage* image = cursors->at(i).image()) 1459 if (StyleImage* image = cursors->at(i).image())
1463 list->append(image->cssValue()); 1460 list->append(image->cssValue());
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
2440 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 2437 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
2441 CSSPropertyB ackgroundClip }; 2438 CSSPropertyB ackgroundClip };
2442 2439
2443 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); 2440 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated();
2444 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator)))); 2441 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator))));
2445 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator)))); 2442 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator))));
2446 return list.release(); 2443 return list.release();
2447 } 2444 }
2448 2445
2449 } // namespace blink 2446 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/css/CSSPrimitiveValueMappings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698