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

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

Issue 2813863003: Rewrite references to "wtf/" to "platform/wtf/" in core/css and core/style. (Closed)
Patch Set: Rebase. 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
11 * version 2 of the License, or (at your option) any later version. 11 * version 2 of the License, or (at your option) any later version.
12 * 12 *
13 * This library is distributed in the hope that it will be useful, 13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details. 16 * Library General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU Library General Public License 18 * You should have received a copy of the GNU Library General Public License
19 * along with this library; see the file COPYING.LIB. If not, write to 19 * along with this library; see the file COPYING.LIB. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA. 21 * Boston, MA 02110-1301, USA.
22 */ 22 */
23 23
24 #include "core/css/StylePropertySerializer.h" 24 #include "core/css/StylePropertySerializer.h"
25 25
26 #include <bitset>
26 #include "core/CSSValueKeywords.h" 27 #include "core/CSSValueKeywords.h"
27 #include "core/StylePropertyShorthand.h" 28 #include "core/StylePropertyShorthand.h"
28 #include "core/css/CSSCustomPropertyDeclaration.h" 29 #include "core/css/CSSCustomPropertyDeclaration.h"
29 #include "core/css/CSSIdentifierValue.h" 30 #include "core/css/CSSIdentifierValue.h"
30 #include "core/css/CSSPendingSubstitutionValue.h" 31 #include "core/css/CSSPendingSubstitutionValue.h"
31 #include "core/css/CSSPropertyMetadata.h" 32 #include "core/css/CSSPropertyMetadata.h"
32 #include "core/css/CSSValuePool.h" 33 #include "core/css/CSSValuePool.h"
33 #include "wtf/StdLibExtras.h" 34 #include "platform/wtf/StdLibExtras.h"
34 #include "wtf/text/StringBuilder.h" 35 #include "platform/wtf/text/StringBuilder.h"
35 #include <bitset>
36 36
37 namespace blink { 37 namespace blink {
38 38
39 StylePropertySerializer::StylePropertySetForSerializer:: 39 StylePropertySerializer::StylePropertySetForSerializer::
40 StylePropertySetForSerializer(const StylePropertySet& properties) 40 StylePropertySetForSerializer(const StylePropertySet& properties)
41 : property_set_(&properties), 41 : property_set_(&properties),
42 all_index_(property_set_->FindPropertyIndex(CSSPropertyAll)), 42 all_index_(property_set_->FindPropertyIndex(CSSPropertyAll)),
43 need_to_expand_all_(false) { 43 need_to_expand_all_(false) {
44 if (!HasAllProperty()) 44 if (!HasAllProperty())
45 return; 45 return;
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 : repeat_x; 956 : repeat_x;
957 const CSSValue& y_value = 957 const CSSValue& y_value =
958 repeat_y_list ? repeat_y_list->Item(i % repeat_y_list->length()) 958 repeat_y_list ? repeat_y_list->Item(i % repeat_y_list->length())
959 : repeat_y; 959 : repeat_y;
960 AppendBackgroundRepeatValue(builder, x_value, y_value); 960 AppendBackgroundRepeatValue(builder, x_value, y_value);
961 } 961 }
962 return builder.ToString(); 962 return builder.ToString();
963 } 963 }
964 964
965 } // namespace blink 965 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleMedia.h ('k') | third_party/WebKit/Source/core/css/StylePropertySet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698