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

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

Issue 2089593002: Add expansion of shorthands with custom properties to longhands using a pending substition value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix dates and remove unnecessary comments Created 4 years, 6 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void StyleResolverState::setCustomPropertySetForApplyAtRule(const String& string , StylePropertySet* customPropertySet) 79 void StyleResolverState::setCustomPropertySetForApplyAtRule(const String& string , StylePropertySet* customPropertySet)
80 { 80 {
81 m_customPropertySetsForApplyAtRule.set(string, customPropertySet); 81 m_customPropertySetsForApplyAtRule.set(string, customPropertySet);
82 } 82 }
83 83
84 StylePropertySet* StyleResolverState::customPropertySetForApplyAtRule(const Stri ng& string) 84 StylePropertySet* StyleResolverState::customPropertySetForApplyAtRule(const Stri ng& string)
85 { 85 {
86 return m_customPropertySetsForApplyAtRule.get(string); 86 return m_customPropertySetsForApplyAtRule.get(string);
87 } 87 }
88 88
89 void StyleResolverState::setCssValueForLonghandPropertyId(CSSPropertyID longhand PropertyId, const CSSValue* cssValue)
90 {
91 m_parsedLonghandCssValueForVariableResolver.set(longhandPropertyId, cssValue );
92 }
93
94 const CSSValue* StyleResolverState::cssValueForLonghandPropertyId(CSSPropertyID longhandPropertyId)
95 {
96 return m_parsedLonghandCssValueForVariableResolver.get(longhandPropertyId);
97 }
98
89 } // namespace blink 99 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698