OLD | NEW |
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 Loading... |
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 |
OLD | NEW |