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

Unified Diff: Source/core/css/MediaValuesCached.h

Issue 240063003: Revert "A sizes attribute parser" (https://codereview.chromium.org/224733011) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/MediaValues.cpp ('k') | Source/core/css/MediaValuesCached.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaValuesCached.h
diff --git a/Source/core/css/MediaValuesCached.h b/Source/core/css/MediaValuesCached.h
deleted file mode 100644
index 9bf9b4220a7d08ba64ce1442d9b271e5e0406dbe..0000000000000000000000000000000000000000
--- a/Source/core/css/MediaValuesCached.h
+++ /dev/null
@@ -1,68 +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 MediaValuesCached_h
-#define MediaValuesCached_h
-
-#include "core/css/MediaValues.h"
-
-namespace WebCore {
-
-class MediaValuesCached FINAL : public MediaValues {
-public:
- struct MediaValuesCachedData {
- // Members variables must be thread safe, since they're copied to the parser thread
- int viewportWidth;
- int viewportHeight;
- int deviceWidth;
- int deviceHeight;
- float devicePixelRatio;
- int colorBitsPerComponent;
- int monochromeBitsPerComponent;
- PointerDeviceType pointer;
- int defaultFontSize;
- int computedFontSize;
- bool hasXHeight;
- double xHeight;
- double zeroWidth;
- bool threeDEnabled;
- bool scanMediaType;
- bool screenMediaType;
- bool printMediaType;
- bool strictMode;
- };
-
- static PassRefPtr<MediaValues> create(Document&);
- static PassRefPtr<MediaValues> create(LocalFrame*, RenderStyle*);
- static PassRefPtr<MediaValues> create(MediaValuesCachedData&);
- virtual PassRefPtr<MediaValues> copy() const OVERRIDE;
- virtual bool isSafeToSendToAnotherThread() const OVERRIDE;
- virtual bool computeLength(double value, unsigned short type, int& result) const OVERRIDE;
-
- virtual int viewportWidth() const OVERRIDE;
- virtual int viewportHeight() const OVERRIDE;
- virtual int deviceWidth() const OVERRIDE;
- virtual int deviceHeight() const OVERRIDE;
- virtual float devicePixelRatio() const OVERRIDE;
- virtual int colorBitsPerComponent() const OVERRIDE;
- virtual int monochromeBitsPerComponent() const OVERRIDE;
- virtual PointerDeviceType pointer() const OVERRIDE;
- virtual bool threeDEnabled() const OVERRIDE;
- virtual bool scanMediaType() const OVERRIDE;
- virtual bool screenMediaType() const OVERRIDE;
- virtual bool printMediaType() const OVERRIDE;
- virtual bool strictMode() const OVERRIDE;
- virtual Document* document() const OVERRIDE;
- virtual bool hasValues() const OVERRIDE;
-
-protected:
- MediaValuesCached(LocalFrame*, RenderStyle*);
- MediaValuesCached(const MediaValuesCachedData&);
-
- MediaValuesCachedData m_data;
-};
-
-} // namespace
-
-#endif // MediaValuesCached_h
« no previous file with comments | « Source/core/css/MediaValues.cpp ('k') | Source/core/css/MediaValuesCached.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698