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

Side by Side Diff: Source/core/css/MediaList.h

Issue 14065029: Improved parse error handling for CSSMQ. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/MediaList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv ed.
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 { 50 {
51 return adoptRef(new MediaQuerySet(mediaString, true)); 51 return adoptRef(new MediaQuerySet(mediaString, true));
52 } 52 }
53 ~MediaQuerySet(); 53 ~MediaQuerySet();
54 54
55 bool parse(const String&); 55 bool parse(const String&);
56 bool add(const String&); 56 bool add(const String&);
57 bool remove(const String&); 57 bool remove(const String&);
58 58
59 void addMediaQuery(PassOwnPtr<MediaQuery>); 59 void addMediaQuery(PassOwnPtr<MediaQuery>);
60 void replaceLastMediaQuery(PassOwnPtr<MediaQuery>);
60 61
61 const Vector<OwnPtr<MediaQuery> >& queryVector() const { return m_queries; } 62 const Vector<OwnPtr<MediaQuery> >& queryVector() const { return m_queries; }
62 63
63 int lastLine() const { return m_lastLine; } 64 int lastLine() const { return m_lastLine; }
64 void setLastLine(int lastLine) { m_lastLine = lastLine; } 65 void setLastLine(int lastLine) { m_lastLine = lastLine; }
65 66
66 String mediaText() const; 67 String mediaText() const;
67 68
68 PassRefPtr<MediaQuerySet> copy() const { return adoptRef(new MediaQuerySet(* this)); } 69 PassRefPtr<MediaQuerySet> copy() const { return adoptRef(new MediaQuerySet(* this)); }
69 70
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 }; 123 };
123 124
124 #if ENABLE(RESOLUTION_MEDIA_QUERY) 125 #if ENABLE(RESOLUTION_MEDIA_QUERY)
125 // Adds message to inspector console whenever dpi or dpcm values are used for "s creen" media. 126 // Adds message to inspector console whenever dpi or dpcm values are used for "s creen" media.
126 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*); 127 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*);
127 #endif 128 #endif
128 129
129 } // namespace 130 } // namespace
130 131
131 #endif 132 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698