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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 * and are consistent with those of media queries used in CSS. | 48 * and are consistent with those of media queries used in CSS. |
49 * | 49 * |
50 * HTML5 (at the moment of writing still work in progress) references the Media
Queries | 50 * HTML5 (at the moment of writing still work in progress) references the Media
Queries |
51 * specification directly and thus updates the rules for HTML. | 51 * specification directly and thus updates the rules for HTML. |
52 * | 52 * |
53 * CSS 2.1 Spec (http://www.w3.org/TR/CSS21/media.html) | 53 * CSS 2.1 Spec (http://www.w3.org/TR/CSS21/media.html) |
54 * CSS 3 Media Queries Spec (http://www.w3.org/TR/css3-mediaqueries/) | 54 * CSS 3 Media Queries Spec (http://www.w3.org/TR/css3-mediaqueries/) |
55 */ | 55 */ |
56 | 56 |
57 MediaQuerySet::MediaQuerySet() | 57 MediaQuerySet::MediaQuerySet() |
58 : m_lastLine(0) | |
59 { | 58 { |
60 } | 59 } |
61 | 60 |
62 MediaQuerySet::MediaQuerySet(const MediaQuerySet& o) | 61 MediaQuerySet::MediaQuerySet(const MediaQuerySet& o) |
63 : RefCounted<MediaQuerySet>() | 62 : RefCounted<MediaQuerySet>() |
64 , m_lastLine(o.m_lastLine) | |
65 , m_queries(o.m_queries.size()) | 63 , m_queries(o.m_queries.size()) |
66 { | 64 { |
67 for (unsigned i = 0; i < m_queries.size(); ++i) | 65 for (unsigned i = 0; i < m_queries.size(); ++i) |
68 m_queries[i] = o.m_queries[i]->copy(); | 66 m_queries[i] = o.m_queries[i]->copy(); |
69 } | 67 } |
70 | 68 |
71 MediaQuerySet::~MediaQuerySet() | 69 MediaQuerySet::~MediaQuerySet() |
72 { | 70 { |
73 } | 71 } |
74 | 72 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(cssV
alue); | 300 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(cssV
alue); |
303 if (primitiveValue->isDotsPerInch() || primitiveValue->isDot
sPerCentimeter()) | 301 if (primitiveValue->isDotsPerInch() || primitiveValue->isDot
sPerCentimeter()) |
304 addResolutionWarningMessageToConsole(document, mediaQuer
ySet->mediaText(), primitiveValue); | 302 addResolutionWarningMessageToConsole(document, mediaQuer
ySet->mediaText(), primitiveValue); |
305 } | 303 } |
306 } | 304 } |
307 } | 305 } |
308 } | 306 } |
309 } | 307 } |
310 | 308 |
311 } | 309 } |
OLD | NEW |