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

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

Issue 1519123003: Implement Style Containment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typos 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
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 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 list->append(cssValuePool().createValue(style.scale()->z(), CSSPrimi tiveValue::UnitType::Number)); 2693 list->append(cssValuePool().createValue(style.scale()->z(), CSSPrimi tiveValue::UnitType::Number));
2694 return list.release(); 2694 return list.release();
2695 } 2695 }
2696 case CSSPropertyContain: { 2696 case CSSPropertyContain: {
2697 if (!style.contain()) 2697 if (!style.contain())
2698 return cssValuePool().createIdentifierValue(CSSValueNone); 2698 return cssValuePool().createIdentifierValue(CSSValueNone);
2699 if (style.contain() == ContainsStrict) 2699 if (style.contain() == ContainsStrict)
2700 return cssValuePool().createIdentifierValue(CSSValueStrict); 2700 return cssValuePool().createIdentifierValue(CSSValueStrict);
2701 2701
2702 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparat ed(); 2702 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparat ed();
2703 if (style.contain() & ContainsStyle) 2703 if (style.containsStyle())
2704 list->append(cssValuePool().createIdentifierValue(CSSValueStyle)); 2704 list->append(cssValuePool().createIdentifierValue(CSSValueStyle));
2705 if (style.contain() & ContainsLayout) 2705 if (style.contain() & ContainsLayout)
2706 list->append(cssValuePool().createIdentifierValue(CSSValueLayout)); 2706 list->append(cssValuePool().createIdentifierValue(CSSValueLayout));
2707 if (style.contain() & ContainsPaint) 2707 if (style.contain() & ContainsPaint)
2708 list->append(cssValuePool().createIdentifierValue(CSSValuePaint)); 2708 list->append(cssValuePool().createIdentifierValue(CSSValuePaint));
2709 ASSERT(list->length()); 2709 ASSERT(list->length());
2710 return list.release(); 2710 return list.release();
2711 } 2711 }
2712 case CSSPropertyVariable: 2712 case CSSPropertyVariable:
2713 // Variables are retrieved via get(AtomicString). 2713 // Variables are retrieved via get(AtomicString).
2714 ASSERT_NOT_REACHED(); 2714 ASSERT_NOT_REACHED();
2715 return nullptr; 2715 return nullptr;
2716 case CSSPropertyAll: 2716 case CSSPropertyAll:
2717 return nullptr; 2717 return nullptr;
2718 default: 2718 default:
2719 break; 2719 break;
2720 } 2720 }
2721 ASSERT_NOT_REACHED(); 2721 ASSERT_NOT_REACHED();
2722 return nullptr; 2722 return nullptr;
2723 } 2723 }
2724 2724
2725 } 2725 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698