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

Unified Diff: sky/engine/core/css/parser/SizesAttributeParser.h

Issue 732813002: Remove sizes attr. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/css/parser/SizesAttributeParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/parser/SizesAttributeParser.h
diff --git a/sky/engine/core/css/parser/SizesAttributeParser.h b/sky/engine/core/css/parser/SizesAttributeParser.h
deleted file mode 100644
index 10caf7a14fc931e513d0ba3aad7852773f5bb0b9..0000000000000000000000000000000000000000
--- a/sky/engine/core/css/parser/SizesAttributeParser.h
+++ /dev/null
@@ -1,43 +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 "platform/heap/Handle.h"
-#include "wtf/text/WTFString.h"
-
-namespace blink {
-
-class SizesAttributeParser {
- STACK_ALLOCATED();
-public:
- SizesAttributeParser(PassRefPtr<MediaValues>, const String&);
-
- bool viewportDependant() const { return m_viewportDependant; }
- unsigned length();
-
-private:
- bool parse(Vector<MediaQueryToken>& tokens);
- bool parseMediaConditionAndLength(MediaQueryTokenIterator startToken, MediaQueryTokenIterator endToken);
- unsigned effectiveSize();
- bool calculateLengthInPixels(MediaQueryTokenIterator startToken, MediaQueryTokenIterator endToken, unsigned& result);
- bool mediaConditionMatches(PassRefPtr<MediaQuerySet> mediaCondition);
- unsigned effectiveSizeDefaultValue();
-
- RefPtr<MediaQuerySet> m_mediaCondition;
- RefPtr<MediaValues> m_mediaValues;
- unsigned m_length;
- bool m_lengthWasSet;
- bool m_viewportDependant;
- Vector<MediaQueryToken> m_tokens;
- bool m_isValid;
-};
-
-} // namespace
-
-#endif
-
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/css/parser/SizesAttributeParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698