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

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

Issue 2737843003: [css-align] Implement place-items alignment shorthand (Closed)
Patch Set: More layout tests fixes. Created 3 years, 8 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
4 * rights reserved. 4 * rights reserved.
5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. 5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
6 * Copyright (C) 2013 Intel Corporation. All rights reserved. 6 * Copyright (C) 2013 Intel Corporation. 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 Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 26 matching lines...) Expand all
37 STACK_ALLOCATED(); 37 STACK_ALLOCATED();
38 38
39 public: 39 public:
40 explicit StylePropertySerializer(const StylePropertySet&); 40 explicit StylePropertySerializer(const StylePropertySet&);
41 41
42 String asText() const; 42 String asText() const;
43 String getPropertyValue(CSSPropertyID) const; 43 String getPropertyValue(CSSPropertyID) const;
44 44
45 private: 45 private:
46 String getCommonValue(const StylePropertyShorthand&) const; 46 String getCommonValue(const StylePropertyShorthand&) const;
47 String placeContentPropertyValue() const; 47 String getAlignmentShorthandValue(const StylePropertyShorthand&) const;
48 String borderPropertyValue() const; 48 String borderPropertyValue() const;
49 String getLayeredShorthandValue(const StylePropertyShorthand&) const; 49 String getLayeredShorthandValue(const StylePropertyShorthand&) const;
50 String get4Values(const StylePropertyShorthand&) const; 50 String get4Values(const StylePropertyShorthand&) const;
51 String borderSpacingValue(const StylePropertyShorthand&) const; 51 String borderSpacingValue(const StylePropertyShorthand&) const;
52 String getShorthandValue(const StylePropertyShorthand&, 52 String getShorthandValue(const StylePropertyShorthand&,
53 String separator = " ") const; 53 String separator = " ") const;
54 String fontValue() const; 54 String fontValue() const;
55 String fontVariantValue() const; 55 String fontVariantValue() const;
56 void appendFontLonghandValueIfNotNormal(CSSPropertyID, 56 void appendFontLonghandValueIfNotNormal(CSSPropertyID,
57 StringBuilder& result) const; 57 StringBuilder& result) const;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 std::bitset<numCSSProperties> m_longhandPropertyUsed; 137 std::bitset<numCSSProperties> m_longhandPropertyUsed;
138 bool m_needToExpandAll; 138 bool m_needToExpandAll;
139 }; 139 };
140 140
141 const StylePropertySetForSerializer m_propertySet; 141 const StylePropertySetForSerializer m_propertySet;
142 }; 142 };
143 143
144 } // namespace blink 144 } // namespace blink
145 145
146 #endif // StylePropertySerializer_h 146 #endif // StylePropertySerializer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698