Bug 1698786: part 2) Change some compile-time dependent `printf`s to `MOZ_LOG` in...
[gecko.git] / layout / style / ServoComputedDataInlines.h
blob2516fd3c0f4dd6adab8395c41f8570eba6827b84
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_ServoComputedDataInlines_h
8 #define mozilla_ServoComputedDataInlines_h
10 #include "mozilla/ServoComputedData.h"
11 #include "nsStyleStruct.h"
13 namespace mozilla {
14 #define STYLE_STRUCT(name_) \
15 struct Gecko##name_ { \
16 ServoManuallyDrop<nsStyle##name_> gecko; \
18 #include "nsStyleStructList.h"
19 #undef STYLE_STRUCT
20 } // namespace mozilla
22 #define STYLE_STRUCT(name_) \
23 const nsStyle##name_* ServoComputedData::GetStyle##name_() const { \
24 return &name_.mPtr->gecko.mInner; \
26 #include "nsStyleStructList.h"
27 #undef STYLE_STRUCT
29 #endif // mozilla_ServoComputedDataInlines_h