Merge mozilla-central to autoland. CLOSED TREE
[gecko.git] / widget / uikit / nsNativeThemeUIKit.mm
blob19cde524265fae05a5f08d4663c25b11cb179163
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsNativeThemeUIKit.h"
8 using namespace mozilla;
9 using namespace mozilla::gfx;
10 using namespace mozilla::widget;
12 nsNativeThemeUIKit::nsNativeThemeUIKit() : Theme(ScrollbarStyle()) {}
14 already_AddRefed<Theme> do_CreateNativeThemeDoNotUseDirectly() {
15   if (gfxPlatform::IsHeadless()) {
16     return do_AddRef(new Theme(Theme::ScrollbarStyle()));
17   }
18   return do_AddRef(new nsNativeThemeUIKit());