Line data Source code
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/. */
5 :
6 : #include "mozilla/ServoStyleContext.h"
7 :
8 : #include "nsStyleConsts.h"
9 : #include "nsStyleStruct.h"
10 : #include "nsPresContext.h"
11 :
12 : #include "mozilla/ServoBindings.h"
13 :
14 : using namespace mozilla;
15 :
16 0 : ServoStyleContext::ServoStyleContext(nsStyleContext* aParent,
17 : nsPresContext* aPresContext,
18 : nsIAtom* aPseudoTag,
19 : CSSPseudoElementType aPseudoType,
20 0 : already_AddRefed<ServoComputedValues> aComputedValues)
21 : : nsStyleContext(aParent, aPseudoTag, aPseudoType),
22 0 : mSource(Move(aComputedValues))
23 : {
24 0 : mPresContext = aPresContext;
25 :
26 0 : FinishConstruction();
27 :
28 : // No need to call ApplyStyleFixups here, since fixups are handled by Servo when
29 : // producing the ServoComputedValues.
30 0 : }
|