| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2006, 2010, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2006, 2010, 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 m_queries.append(mediaQuery); | 142 m_queries.append(mediaQuery); |
| 143 } | 143 } |
| 144 | 144 |
| 145 String MediaQuerySet::mediaText() const | 145 String MediaQuerySet::mediaText() const |
| 146 { | 146 { |
| 147 StringBuilder text; | 147 StringBuilder text; |
| 148 | 148 |
| 149 bool first = true; | 149 bool first = true; |
| 150 for (size_t i = 0; i < m_queries.size(); ++i) { | 150 for (size_t i = 0; i < m_queries.size(); ++i) { |
| 151 if (!first) | 151 if (!first) |
| 152 text.appendLiteral(", "); | 152 text.append(", "); |
| 153 else | 153 else |
| 154 first = false; | 154 first = false; |
| 155 text.append(m_queries[i]->cssText()); | 155 text.append(m_queries[i]->cssText()); |
| 156 } | 156 } |
| 157 return text.toString(); | 157 return text.toString(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 DEFINE_TRACE(MediaQuerySet) | 160 DEFINE_TRACE(MediaQuerySet) |
| 161 { | 161 { |
| 162 // We don't support tracing of vectors of OwnPtrs (ie. OwnPtr<Vector<OwnPtr<
MediaQuery>>>). | 162 // We don't support tracing of vectors of OwnPtrs (ie. OwnPtr<Vector<OwnPtr<
MediaQuery>>>). |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 } | 230 } |
| 231 | 231 |
| 232 DEFINE_TRACE(MediaList) | 232 DEFINE_TRACE(MediaList) |
| 233 { | 233 { |
| 234 visitor->trace(m_mediaQueries); | 234 visitor->trace(m_mediaQueries); |
| 235 visitor->trace(m_parentStyleSheet); | 235 visitor->trace(m_parentStyleSheet); |
| 236 visitor->trace(m_parentRule); | 236 visitor->trace(m_parentRule); |
| 237 } | 237 } |
| 238 | 238 |
| 239 } // namespace blink | 239 } // namespace blink |
| OLD | NEW |