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

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

Issue 2392343005: Reflow comments in core/css (Closed)
Patch Set: Revert clang-format Created 4 years, 2 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // http://dev.w3.org/csswg/cssom/#serialize-a-list-of-media-queries 125 // http://dev.w3.org/csswg/cssom/#serialize-a-list-of-media-queries
126 String MediaQuery::cssText() const { 126 String MediaQuery::cssText() const {
127 if (m_serializationCache.isNull()) 127 if (m_serializationCache.isNull())
128 const_cast<MediaQuery*>(this)->m_serializationCache = serialize(); 128 const_cast<MediaQuery*>(this)->m_serializationCache = serialize();
129 129
130 return m_serializationCache; 130 return m_serializationCache;
131 } 131 }
132 132
133 DEFINE_TRACE(MediaQuery) { 133 DEFINE_TRACE(MediaQuery) {
134 // We don't support tracing of vectors of OwnPtrs (ie. std::unique_ptr<Vector< std::unique_ptr<MediaQuery>>>). 134 // We don't support tracing of vectors of OwnPtrs (ie.
135 // Since this is a transitional object we are just ifdef'ing it out when oilpa n is not enabled. 135 // std::unique_ptr<Vector<std::unique_ptr<MediaQuery>>>).
136 // Since this is a transitional object we are just ifdef'ing it out when
137 // oilpan is not enabled.
136 visitor->trace(m_expressions); 138 visitor->trace(m_expressions);
137 } 139 }
138 140
139 } // namespace blink 141 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaList.cpp ('k') | third_party/WebKit/Source/core/css/MediaQueryEvaluator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698