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

Side by Side Diff: sky/engine/core/css/parser/CSSParserMode.h

Issue 871383002: Merge HTMLDocument into Document (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
3 * Copyright (C) 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above 9 * 1. Redistributions of source code must retain the above
10 * copyright notice, this list of conditions and the following 10 * copyright notice, this list of conditions and the following
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 CSSParserContext(const Document&, const KURL& baseURL = KURL()); 74 CSSParserContext(const Document&, const KURL& baseURL = KURL());
75 CSSParserContext(const CSSParserContext&); 75 CSSParserContext(const CSSParserContext&);
76 76
77 bool operator==(const CSSParserContext&) const; 77 bool operator==(const CSSParserContext&) const;
78 bool operator!=(const CSSParserContext& other) const { return !(*this == oth er); } 78 bool operator!=(const CSSParserContext& other) const { return !(*this == oth er); }
79 79
80 CSSParserMode mode() const { return HTMLStandardMode; } 80 CSSParserMode mode() const { return HTMLStandardMode; }
81 const KURL& baseURL() const { return m_baseURL; } 81 const KURL& baseURL() const { return m_baseURL; }
82 const Referrer& referrer() const { return m_referrer; } 82 const Referrer& referrer() const { return m_referrer; }
83 83
84 // This causes CSS parsing to be case insensitive and should be removed.
85 bool isHTMLDocument() const { return true; }
86
87 // FIXME: These setters shouldn't exist, however the current lifetime of CSS ParserContext 84 // FIXME: These setters shouldn't exist, however the current lifetime of CSS ParserContext
88 // is not well understood and thus we sometimes need to override these field s. 85 // is not well understood and thus we sometimes need to override these field s.
89 void setBaseURL(const KURL& baseURL) { m_baseURL = baseURL; } 86 void setBaseURL(const KURL& baseURL) { m_baseURL = baseURL; }
90 void setReferrer(const Referrer& referrer) { m_referrer = referrer; } 87 void setReferrer(const Referrer& referrer) { m_referrer = referrer; }
91 88
92 KURL completeURL(const String& url) const; 89 KURL completeURL(const String& url) const;
93 90
94 private: 91 private:
95 KURL m_baseURL; 92 KURL m_baseURL;
96 Referrer m_referrer; 93 Referrer m_referrer;
97 }; 94 };
98 95
99 const CSSParserContext& strictCSSParserContext(); 96 const CSSParserContext& strictCSSParserContext();
100 97
101 }; 98 };
102 99
103 #endif // SKY_ENGINE_CORE_CSS_PARSER_CSSPARSERMODE_H_ 100 #endif // SKY_ENGINE_CORE_CSS_PARSER_CSSPARSERMODE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/CSSGrammar.y ('k') | sky/engine/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698