| Index: sky/engine/bindings-dart/core/dart/custom/DartCSSValueCustom.cpp
|
| diff --git a/LICENSE b/sky/engine/bindings-dart/core/dart/custom/DartCSSValueCustom.cpp
|
| similarity index 62%
|
| copy from LICENSE
|
| copy to sky/engine/bindings-dart/core/dart/custom/DartCSSValueCustom.cpp
|
| index 972bb2edb099e58b6a1939fa57f8e74391159c0c..96bf90c774f85dfdc7cfd184eef888c332b68037 100644
|
| --- a/LICENSE
|
| +++ b/sky/engine/bindings-dart/core/dart/custom/DartCSSValueCustom.cpp
|
| @@ -1,4 +1,5 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Copyright 2011, Google Inc.
|
| +// All rights reserved.
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| @@ -25,3 +26,27 @@
|
| // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +
|
| +#include "config.h"
|
| +#include "bindings/core/dart/DartCSSValue.h"
|
| +
|
| +#include "bindings/core/dart/DartCSSPrimitiveValue.h"
|
| +#include "bindings/core/dart/DartCSSValueList.h"
|
| +#include "bindings/core/dart/DartWebKitCSSTransformValue.h"
|
| +
|
| +namespace blink {
|
| +
|
| +Dart_Handle DartCSSValue::createWrapper(DartDOMData* domData, CSSValue* impl)
|
| +{
|
| + if (!impl)
|
| + return Dart_Null();
|
| + if (impl->isTransformValue())
|
| + return DartWebKitCSSTransformValue::createWrapper(domData, static_cast<CSSTransformValue*>(impl));
|
| + if (impl->isValueList())
|
| + return DartCSSValueList::createWrapper(domData, static_cast<CSSValueList*>(impl));
|
| + if (impl->isPrimitiveValue())
|
| + return DartCSSPrimitiveValue::createWrapper(domData, static_cast<CSSPrimitiveValue*>(impl));
|
| + return DartDOMWrapper::createWrapper<DartCSSValue>(domData, impl);
|
| +}
|
| +
|
| +}
|
|
|