| Index: sky/engine/bindings-dart/core/dart/custom/DartStyleSheetCustom.cpp
|
| diff --git a/LICENSE b/sky/engine/bindings-dart/core/dart/custom/DartStyleSheetCustom.cpp
|
| similarity index 71%
|
| copy from LICENSE
|
| copy to sky/engine/bindings-dart/core/dart/custom/DartStyleSheetCustom.cpp
|
| index 972bb2edb099e58b6a1939fa57f8e74391159c0c..0d768991496cdf97c0ae8fe40162d5fc1d46115b 100644
|
| --- a/LICENSE
|
| +++ b/sky/engine/bindings-dart/core/dart/custom/DartStyleSheetCustom.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,24 @@
|
| // 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/DartStyleSheet.h"
|
| +
|
| +#include "bindings/core/dart/DartCSSStyleSheet.h"
|
| +
|
| +namespace blink {
|
| +
|
| +Dart_Handle DartStyleSheet::createWrapper(DartDOMData* domData, StyleSheet* styleSheet)
|
| +{
|
| + if (!styleSheet)
|
| + return Dart_Null();
|
| +
|
| + if (styleSheet->isCSSStyleSheet())
|
| + return DartCSSStyleSheet::createWrapper(domData, static_cast<CSSStyleSheet*>(styleSheet));
|
| +
|
| + // FIXME: implement proper object grouping.
|
| + return DartDOMWrapper::createWrapper<DartStyleSheet>(domData, styleSheet);
|
| +}
|
| +
|
| +}
|
|
|