Bug 1048752. Part 10: Remove FrameLayerBuilder.h from nsDisplayList.h. r=tn

I was inspired by the previous patch to remove FrameLayerBuilder.h from
nsDisplayList.h too.

--HG--
extra : rebase_source : b34a01bea5865da4737817e2396b98d54cc6d1bf
This commit is contained in:
Robert O'Callahan 2014-08-06 17:19:25 +12:00
Родитель b8bd1730f3
Коммит 0de1b9e514
7 изменённых файлов: 37 добавлений и 16 удалений

Просмотреть файл

@ -14,6 +14,7 @@
#include "ImageLayers.h"
#include "DisplayItemClip.h"
#include "mozilla/layers/LayersTypes.h"
#include "LayerState.h"
class nsDisplayListBuilder;
class nsDisplayList;
@ -38,19 +39,6 @@ class LayerManagerData;
class ThebesLayerData;
class ContainerState;
enum LayerState {
LAYER_NONE,
LAYER_INACTIVE,
LAYER_ACTIVE,
// Force an active layer even if it causes incorrect rendering, e.g.
// when the layer has rounded rect clips.
LAYER_ACTIVE_FORCE,
// Special layer that is metadata only.
LAYER_ACTIVE_EMPTY,
// Inactive style layer for rendering SVG effects.
LAYER_SVG_EFFECTS
};
class RefCountedRegion {
private:
~RefCountedRegion() {}

26
layout/base/LayerState.h Normal file
Просмотреть файл

@ -0,0 +1,26 @@
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef LAYERSTATE_H_
#define LAYERSTATE_H_
namespace mozilla {
enum LayerState {
LAYER_NONE,
LAYER_INACTIVE,
LAYER_ACTIVE,
// Force an active layer even if it causes incorrect rendering, e.g.
// when the layer has rounded rect clips.
LAYER_ACTIVE_FORCE,
// Special layer that is metadata only.
LAYER_ACTIVE_EMPTY,
// Inactive style layer for rendering SVG effects.
LAYER_SVG_EFFECTS
};
}
#endif

Просмотреть файл

@ -21,6 +21,7 @@ EXPORTS += [
'DisplayListClipState.h',
'FrameLayerBuilder.h',
'FramePropertyTable.h',
'LayerState.h',
'nsArenaMemoryStats.h',
'nsBidi.h',
'nsBidiPresUtils.h',

Просмотреть файл

@ -55,6 +55,7 @@
#include "nsPrintfCString.h"
#include "UnitTransforms.h"
#include "LayersLogging.h"
#include "FrameLayerBuilder.h"
#include <stdint.h>
#include <algorithm>

Просмотреть файл

@ -19,11 +19,12 @@
#include "nsPoint.h"
#include "nsRect.h"
#include "plarena.h"
#include "Layers.h"
#include "nsRegion.h"
#include "FrameLayerBuilder.h"
#include "nsLayoutUtils.h"
#include "nsDisplayListInvalidation.h"
#include "DisplayListClipState.h"
#include "LayerState.h"
#include <stdint.h>
@ -38,6 +39,7 @@ class nsDisplayLayerEventRegions;
class nsCaret;
namespace mozilla {
class FrameLayerBuilder;
namespace layers {
class Layer;
class ImageLayer;

Просмотреть файл

@ -8,6 +8,9 @@
#include "nsFrame.h"
#include <stdarg.h>
#include <algorithm>
#include "mozilla/Attributes.h"
#include "mozilla/DebugOnly.h"
@ -30,7 +33,6 @@
#include "nsIPresShell.h"
#include "prlog.h"
#include "prprf.h"
#include <stdarg.h>
#include "nsFrameManager.h"
#include "nsLayoutUtils.h"
#include "RestyleManager.h"
@ -48,7 +50,7 @@
#include "nsNameSpaceManager.h"
#include "nsIPercentHeightObserver.h"
#include "nsStyleStructInlines.h"
#include <algorithm>
#include "FrameLayerBuilder.h"
#include "nsBidiPresUtils.h"

Просмотреть файл

@ -27,6 +27,7 @@
#include "mozilla/layers/LayerManagerComposite.h"
#include "mozilla/layers/CompositorChild.h"
#include "ClientLayerManager.h"
#include "FrameLayerBuilder.h"
typedef nsContentView::ViewConfig ViewConfig;
using namespace mozilla::dom;