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

Side by Side Diff: Source/core/css/parser/SizesAttributeParser.h

Issue 240503006: Oilpan: fix build after r171843. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 | « no previous file | Source/core/css/parser/SizesAttributeParser.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SizesAttributeParser_h 5 #ifndef SizesAttributeParser_h
6 #define SizesAttributeParser_h 6 #define SizesAttributeParser_h
7 7
8 #include "core/css/MediaValues.h" 8 #include "core/css/MediaValues.h"
9 #include "core/css/parser/MediaQueryParser.h" 9 #include "core/css/parser/MediaQueryParser.h"
10 #include "platform/heap/Handle.h"
10 #include "wtf/text/WTFString.h" 11 #include "wtf/text/WTFString.h"
11 12
12 namespace WebCore { 13 namespace WebCore {
13 14
14 class SizesAttributeParser { 15 class SizesAttributeParser {
16 STACK_ALLOCATED();
15 public: 17 public:
16 static unsigned findEffectiveSize(const String& attribute, PassRefPtr<MediaV alues>); 18 static unsigned findEffectiveSize(const String& attribute, PassRefPtr<MediaV alues>);
17 19
18 private: 20 private:
19 SizesAttributeParser(PassRefPtr<MediaValues> mediaValues) 21 SizesAttributeParser(PassRefPtr<MediaValues> mediaValues)
20 : m_mediaValues(mediaValues) 22 : m_mediaValues(mediaValues)
21 , m_length(0) 23 , m_length(0)
22 { 24 {
23 } 25 }
24 26
25 bool parse(Vector<MediaQueryToken>& tokens); 27 bool parse(Vector<MediaQueryToken>& tokens);
26 bool parseMediaConditionAndLength(TokenIterator startToken, TokenIterator en dToken); 28 bool parseMediaConditionAndLength(TokenIterator startToken, TokenIterator en dToken);
27 unsigned effectiveSize(); 29 unsigned effectiveSize();
28 bool calculateLengthInPixels(TokenIterator startToken, TokenIterator endToke n, unsigned& result); 30 bool calculateLengthInPixels(TokenIterator startToken, TokenIterator endToke n, unsigned& result);
29 bool mediaConditionMatches(PassRefPtr<MediaQuerySet> mediaCondition); 31 bool mediaConditionMatches(PassRefPtrWillBeRawPtr<MediaQuerySet> mediaCondit ion);
30 unsigned effectiveSizeDefaultValue(); 32 unsigned effectiveSizeDefaultValue();
31 33
32 RefPtr<MediaQuerySet> m_mediaCondition; 34 RefPtrWillBeMember<MediaQuerySet> m_mediaCondition;
33 RefPtr<MediaValues> m_mediaValues; 35 RefPtr<MediaValues> m_mediaValues;
34 unsigned m_length; 36 unsigned m_length;
35 }; 37 };
36 38
37 } // namespace 39 } // namespace
38 40
39 #endif 41 #endif
40 42
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/parser/SizesAttributeParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698