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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h

Issue 1702013003: [css-grid] Swap columns and rows in grid-template shorthand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Swap columns and rows in tests under fast/repaint/ Created 4 years, 10 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) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d. 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 // Legacy parsing allows <string>s for animation-name 154 // Legacy parsing allows <string>s for animation-name
155 bool consumeAnimationShorthand(const StylePropertyShorthand&, bool useLegacy Parsing, bool important); 155 bool consumeAnimationShorthand(const StylePropertyShorthand&, bool useLegacy Parsing, bool important);
156 156
157 bool consumeColumns(bool important); 157 bool consumeColumns(bool important);
158 158
159 enum TrackSizeRestriction { FixedSizeOnly, AllowAll }; 159 enum TrackSizeRestriction { FixedSizeOnly, AllowAll };
160 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); 160 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition();
161 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti veValue>& numericValue, RefPtrWillBeRawPtr<CSSCustomIdentValue>& gridLineName); 161 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti veValue>& numericValue, RefPtrWillBeRawPtr<CSSCustomIdentValue>& gridLineName);
162 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); 162 bool parseGridItemPositionShorthand(CSSPropertyID, bool important);
163 bool parseGridTemplateRowsAndAreas(PassRefPtrWillBeRawPtr<CSSValue>, bool im portant); 163 PassRefPtrWillBeRawPtr<CSSValue> parseGridTemplateColumns(bool important);
164 bool parseGridTemplateRowsAndAreasAndColumns(bool important);
164 bool parseGridTemplateShorthand(bool important); 165 bool parseGridTemplateShorthand(bool important);
165 bool parseGridShorthand(bool important); 166 bool parseGridShorthand(bool important);
166 bool parseGridAreaShorthand(bool important); 167 bool parseGridAreaShorthand(bool important);
167 bool parseGridGapShorthand(bool important); 168 bool parseGridGapShorthand(bool important);
168 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); 169 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&);
169 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(); 170 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList();
170 bool parseGridTrackRepeatFunction(CSSValueList&, bool& isAutoRepeat); 171 bool parseGridTrackRepeatFunction(CSSValueList&, bool& isAutoRepeat);
171 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu tList, TrackSizeRestriction = AllowAll); 172 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu tList, TrackSizeRestriction = AllowAll);
172 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*, TrackSizeRestriction = AllowAll); 173 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*, TrackSizeRestriction = AllowAll);
173 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); 174 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 bool m_implicitShorthand; 287 bool m_implicitShorthand;
287 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; 288 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation;
288 }; 289 };
289 290
290 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); 291 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&);
291 CSSValueID cssValueKeywordID(const CSSParserString&); 292 CSSValueID cssValueKeywordID(const CSSParserString&);
292 293
293 } // namespace blink 294 } // namespace blink
294 295
295 #endif // CSSPropertyParser_h 296 #endif // CSSPropertyParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698