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

Side by Side Diff: third_party/WebKit/Source/core/css/MediaQuery.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 * CSS Media Query 2 * CSS Media Query
3 * 3 *
4 * Copyright (C) 2005, 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>. 4 * Copyright (C) 2005, 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>.
5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 10 matching lines...) Expand all
21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #include "core/css/MediaQuery.h" 29 #include "core/css/MediaQuery.h"
30 30
31 #include <memory>
31 #include "core/MediaTypeNames.h" 32 #include "core/MediaTypeNames.h"
32 #include "core/css/MediaQueryExp.h" 33 #include "core/css/MediaQueryExp.h"
33 #include "core/html/parser/HTMLParserIdioms.h" 34 #include "core/html/parser/HTMLParserIdioms.h"
34 #include "wtf/NonCopyingSort.h" 35 #include "platform/wtf/NonCopyingSort.h"
35 #include "wtf/text/StringBuilder.h" 36 #include "platform/wtf/text/StringBuilder.h"
36 #include <memory>
37 37
38 namespace blink { 38 namespace blink {
39 39
40 // http://dev.w3.org/csswg/cssom/#serialize-a-media-query 40 // http://dev.w3.org/csswg/cssom/#serialize-a-media-query
41 String MediaQuery::Serialize() const { 41 String MediaQuery::Serialize() const {
42 StringBuilder result; 42 StringBuilder result;
43 switch (restrictor_) { 43 switch (restrictor_) {
44 case MediaQuery::kOnly: 44 case MediaQuery::kOnly:
45 result.Append("only "); 45 result.Append("only ");
46 break; 46 break;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 const_cast<MediaQuery*>(this)->serialization_cache_ = Serialize(); 128 const_cast<MediaQuery*>(this)->serialization_cache_ = Serialize();
129 129
130 return serialization_cache_; 130 return serialization_cache_;
131 } 131 }
132 132
133 DEFINE_TRACE(MediaQuery) { 133 DEFINE_TRACE(MediaQuery) {
134 visitor->Trace(expressions_); 134 visitor->Trace(expressions_);
135 } 135 }
136 136
137 } // namespace blink 137 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQuery.h ('k') | third_party/WebKit/Source/core/css/MediaQueryEvaluator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698