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

Unified Diff: sky/engine/core/html/HTMLMetaElement.h

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/engine/core/frame/SettingsDelegate.h ('k') | sky/engine/core/html/HTMLMetaElement-in.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLMetaElement.h
diff --git a/sky/engine/core/html/HTMLMetaElement.h b/sky/engine/core/html/HTMLMetaElement.h
index 85432ddada2566abe170045c2126a35fd84b386c..b75ccabc25f14d532394cc380dfd29155cf90662 100644
--- a/sky/engine/core/html/HTMLMetaElement.h
+++ b/sky/engine/core/html/HTMLMetaElement.h
@@ -23,19 +23,10 @@
#ifndef HTMLMetaElement_h
#define HTMLMetaElement_h
-#include "core/dom/ViewportDescription.h"
#include "core/html/HTMLElement.h"
namespace blink {
-enum ViewportErrorCode {
- UnrecognizedViewportArgumentKeyError,
- UnrecognizedViewportArgumentValueError,
- TruncatedViewportArgumentValueError,
- MaximumScaleTooLargeError,
- TargetDensityDpiUnsupported
-};
-
class HTMLMetaElement final : public HTMLElement {
abarth-chromium 2014/10/26 02:08:46 We can delete the whole HTMLMetaElement.
DEFINE_WRAPPERTYPEINFO();
public:
@@ -48,25 +39,11 @@ public:
private:
explicit HTMLMetaElement(Document&);
- typedef void (HTMLMetaElement::*KeyValuePairCallback)(const String& key, const String& value, void* data);
- void processViewportKeyValuePair(const String& key, const String& value, void* data);
- void parseContentAttribute(const String& content, KeyValuePairCallback, void* data);
-
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual InsertionNotificationRequest insertedInto(ContainerNode*) override;
virtual void didNotifySubtreeInsertionsToDocument() override;
- float parsePositiveNumber(const String& key, const String& value, bool* ok = 0);
-
- Length parseViewportValueAsLength(const String& key, const String& value);
- float parseViewportValueAsZoom(const String& key, const String& value, bool& computedValueMatchesParsedValue);
- bool parseViewportValueAsUserZoom(const String& key, const String& value, bool& computedValueMatchesParsedValue);
- float parseViewportValueAsDPI(const String& key, const String& value);
-
- void reportViewportWarning(ViewportErrorCode, const String& replacement1, const String& replacement2);
-
void process();
- void processViewportContentAttribute(const String& content, ViewportDescription::Type origin);
};
} // namespace blink
« no previous file with comments | « sky/engine/core/frame/SettingsDelegate.h ('k') | sky/engine/core/html/HTMLMetaElement-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698