Index: Source/core/css/parser/SizesAttributeParser.h |
diff --git a/Source/core/css/parser/SizesAttributeParser.h b/Source/core/css/parser/SizesAttributeParser.h |
deleted file mode 100644 |
index 4c6b73f8a4d0b17c4ec2e8ba5c0b864e6251db80..0000000000000000000000000000000000000000 |
--- a/Source/core/css/parser/SizesAttributeParser.h |
+++ /dev/null |
@@ -1,40 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef SizesAttributeParser_h |
-#define SizesAttributeParser_h |
- |
-#include "core/css/MediaValues.h" |
-#include "core/css/parser/MediaQueryParser.h" |
-#include "wtf/text/WTFString.h" |
- |
-namespace WebCore { |
- |
-class SizesAttributeParser { |
-public: |
- static unsigned findEffectiveSize(const String& attribute, PassRefPtr<MediaValues>); |
- |
-private: |
- SizesAttributeParser(PassRefPtr<MediaValues> mediaValues) |
- : m_mediaValues(mediaValues) |
- , m_length(0) |
- { |
- } |
- |
- bool parse(Vector<MediaQueryToken>& tokens); |
- bool parseMediaConditionAndLength(TokenIterator startToken, TokenIterator endToken); |
- unsigned effectiveSize(); |
- bool calculateLengthInPixels(TokenIterator startToken, TokenIterator endToken, unsigned& result); |
- bool mediaConditionMatches(PassRefPtr<MediaQuerySet> mediaCondition); |
- unsigned effectiveSizeDefaultValue(); |
- |
- RefPtr<MediaQuerySet> m_mediaCondition; |
- RefPtr<MediaValues> m_mediaValues; |
- unsigned m_length; |
-}; |
- |
-} // namespace |
- |
-#endif |
- |