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

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

Issue 1734863003: Remove webkit-background-composite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 * Copyright (C) 2015 Google Inc. All rights reserved. 7 * Copyright (C) 2015 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public 10 * modify it under the terms of the GNU Lesser General Public
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 for (; currLayer; currLayer = currLayer->next()) 1417 for (; currLayer; currLayer = currLayer->next())
1418 list->append(valueForFillRepeat(currLayer->repeatX(), currLayer->rep eatY())); 1418 list->append(valueForFillRepeat(currLayer->repeatX(), currLayer->rep eatY()));
1419 return list.release(); 1419 return list.release();
1420 } 1420 }
1421 case CSSPropertyMaskSourceType: { 1421 case CSSPropertyMaskSourceType: {
1422 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat ed(); 1422 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat ed();
1423 for (const FillLayer* currLayer = &style.maskLayers(); currLayer; currLa yer = currLayer->next()) 1423 for (const FillLayer* currLayer = &style.maskLayers(); currLayer; currLa yer = currLayer->next())
1424 list->append(valueForFillSourceType(currLayer->maskSourceType())); 1424 list->append(valueForFillSourceType(currLayer->maskSourceType()));
1425 return list.release(); 1425 return list.release();
1426 } 1426 }
1427 case CSSPropertyWebkitBackgroundComposite:
1428 case CSSPropertyWebkitMaskComposite: { 1427 case CSSPropertyWebkitMaskComposite: {
1429 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat ed(); 1428 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat ed();
1430 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskComposit e ? &style.maskLayers() : &style.backgroundLayers(); 1429 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskComposit e ? &style.maskLayers() : &style.backgroundLayers();
1431 for (; currLayer; currLayer = currLayer->next()) 1430 for (; currLayer; currLayer = currLayer->next())
1432 list->append(cssValuePool().createValue(currLayer->composite())); 1431 list->append(cssValuePool().createValue(currLayer->composite()));
1433 return list.release(); 1432 return list.release();
1434 } 1433 }
1435 case CSSPropertyBackgroundAttachment: { 1434 case CSSPropertyBackgroundAttachment: {
1436 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat ed(); 1435 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat ed();
1437 for (const FillLayer* currLayer = &style.backgroundLayers(); currLayer; currLayer = currLayer->next()) 1436 for (const FillLayer* currLayer = &style.backgroundLayers(); currLayer; currLayer = currLayer->next())
(...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 case CSSPropertyAll: 2749 case CSSPropertyAll:
2751 return nullptr; 2750 return nullptr;
2752 default: 2751 default:
2753 break; 2752 break;
2754 } 2753 }
2755 ASSERT_NOT_REACHED(); 2754 ASSERT_NOT_REACHED();
2756 return nullptr; 2755 return nullptr;
2757 } 2756 }
2758 2757
2759 } // namespace blink 2758 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698