Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / html / CrossOriginAttribute.cpp
bloba8b2f695521bcd7e56cdefb5db8ed88b7b00d024
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "config.h"
6 #include "core/html/CrossOriginAttribute.h"
8 namespace blink {
10 CrossOriginAttributeValue crossOriginAttributeValue(const String& value)
12 if (value.isNull())
13 return CrossOriginAttributeNotSet;
14 if (equalIgnoringCase(value, "use-credentials"))
15 return CrossOriginAttributeUseCredentials;
16 return CrossOriginAttributeAnonymous;
19 } // namespace blink