Bug 1318805 - Move the code for the Web Painting module to layout/painting; r=mattwoodrow

This will help make it clearer that this code lives in a different
module for contributors.


--HG--
rename : layout/base/ActiveLayerTracker.cpp => layout/painting/ActiveLayerTracker.cpp
rename : layout/base/ActiveLayerTracker.h => layout/painting/ActiveLayerTracker.h
rename : layout/base/BorderCache.h => layout/painting/BorderCache.h
rename : layout/base/BorderConsts.h => layout/painting/BorderConsts.h
rename : layout/base/DashedCornerFinder.cpp => layout/painting/DashedCornerFinder.cpp
rename : layout/base/DashedCornerFinder.h => layout/painting/DashedCornerFinder.h
rename : layout/base/DisplayItemClip.cpp => layout/painting/DisplayItemClip.cpp
rename : layout/base/DisplayItemClip.h => layout/painting/DisplayItemClip.h
rename : layout/base/DisplayItemScrollClip.cpp => layout/painting/DisplayItemScrollClip.cpp
rename : layout/base/DisplayItemScrollClip.h => layout/painting/DisplayItemScrollClip.h
rename : layout/base/DisplayListClipState.cpp => layout/painting/DisplayListClipState.cpp
rename : layout/base/DisplayListClipState.h => layout/painting/DisplayListClipState.h
rename : layout/base/DottedCornerFinder.cpp => layout/painting/DottedCornerFinder.cpp
rename : layout/base/DottedCornerFinder.h => layout/painting/DottedCornerFinder.h
rename : layout/base/FrameLayerBuilder.cpp => layout/painting/FrameLayerBuilder.cpp
rename : layout/base/FrameLayerBuilder.h => layout/painting/FrameLayerBuilder.h
rename : layout/base/LayerState.h => layout/painting/LayerState.h
rename : layout/base/MaskLayerImageCache.cpp => layout/painting/MaskLayerImageCache.cpp
rename : layout/base/MaskLayerImageCache.h => layout/painting/MaskLayerImageCache.h
rename : layout/base/PaintTracker.cpp => layout/painting/PaintTracker.cpp
rename : layout/base/PaintTracker.h => layout/painting/PaintTracker.h
rename : layout/base/nsCSSRendering.cpp => layout/painting/nsCSSRendering.cpp
rename : layout/base/nsCSSRendering.h => layout/painting/nsCSSRendering.h
rename : layout/base/nsCSSRenderingBorders.cpp => layout/painting/nsCSSRenderingBorders.cpp
rename : layout/base/nsCSSRenderingBorders.h => layout/painting/nsCSSRenderingBorders.h
rename : layout/base/nsDisplayItemTypes.h => layout/painting/nsDisplayItemTypes.h
rename : layout/base/nsDisplayItemTypesList.h => layout/painting/nsDisplayItemTypesList.h
rename : layout/base/nsDisplayList.cpp => layout/painting/nsDisplayList.cpp
rename : layout/base/nsDisplayList.h => layout/painting/nsDisplayList.h
rename : layout/base/nsDisplayListInvalidation.cpp => layout/painting/nsDisplayListInvalidation.cpp
rename : layout/base/nsDisplayListInvalidation.h => layout/painting/nsDisplayListInvalidation.h
This commit is contained in:
Ehsan Akhgari 2016-11-18 19:37:13 -05:00
parent 06bfd8cd82
commit aca985efab
45 changed files with 80 additions and 51 deletions

View File

@ -5,7 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/RestyleManagerBase.h"
#include "mozilla/StyleSetHandle.h"
#include "mozilla/StyleSetHandleInlines.h"
#include "nsIFrame.h"
namespace mozilla {

View File

@ -4,30 +4,6 @@
# 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/.
with Files('ActiveLayerTracker.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('Display*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('FrameLayerBuilder.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('LayerState.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('MaskLayerImageCache.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('PaintTracker.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('nsCSSRendering.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('nsDisplay*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('Restyle*'):
BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')
@ -55,14 +31,8 @@ if CONFIG['MOZ_DEBUG']:
XPIDL_MODULE = 'layout_base'
EXPORTS += [
'ActiveLayerTracker.h',
'CaretAssociationHint.h',
'DisplayItemClip.h',
'DisplayItemScrollClip.h',
'DisplayListClipState.h',
'FrameLayerBuilder.h',
'FramePropertyTable.h',
'LayerState.h',
'LayoutLogging.h',
'nsArenaMemoryStats.h',
'nsBidi.h',
@ -71,10 +41,6 @@ EXPORTS += [
'nsChangeHint.h',
'nsCompatibility.h',
'nsCSSFrameConstructor.h',
'nsDisplayItemTypes.h',
'nsDisplayItemTypesList.h',
'nsDisplayList.h',
'nsDisplayListInvalidation.h',
'nsFrameManager.h',
'nsFrameManagerBase.h',
'nsFrameTraversal.h',
@ -105,7 +71,6 @@ EXPORTS.mozilla += [
'ArenaRefPtrInlines.h',
'GeometryUtils.h',
'OverflowChangedTracker.h',
'PaintTracker.h',
'RestyleLogging.h',
'RestyleManager.h',
'RestyleManagerBase.h',
@ -119,27 +84,15 @@ UNIFIED_SOURCES += [
'AccessibleCaret.cpp',
'AccessibleCaretEventHub.cpp',
'AccessibleCaretManager.cpp',
'ActiveLayerTracker.cpp',
'DashedCornerFinder.cpp',
'DisplayItemClip.cpp',
'DisplayItemScrollClip.cpp',
'DisplayListClipState.cpp',
'DottedCornerFinder.cpp',
'FrameLayerBuilder.cpp',
'FramePropertyTable.cpp',
'GeometryUtils.cpp',
'LayoutLogging.cpp',
'MaskLayerImageCache.cpp',
'MobileViewportManager.cpp',
'nsBidiPresUtils.cpp',
'nsCaret.cpp',
'nsCounterManager.cpp',
'nsCSSColorUtils.cpp',
'nsCSSFrameConstructor.cpp',
'nsCSSRendering.cpp',
'nsCSSRenderingBorders.cpp',
'nsDisplayList.cpp',
'nsDisplayListInvalidation.cpp',
'nsDocumentViewer.cpp',
'nsFrameManager.cpp',
'nsFrameTraversal.cpp',
@ -152,7 +105,6 @@ UNIFIED_SOURCES += [
'nsQuoteList.cpp',
'nsStyleChangeList.cpp',
'nsStyleSheetService.cpp',
'PaintTracker.cpp',
'PositionedEventTargeting.cpp',
'RestyleManager.cpp',
'RestyleManagerBase.cpp',
@ -196,6 +148,7 @@ LOCAL_INCLUDES += [
'../forms',
'../generic',
'../mathml',
'../painting',
'../printing',
'../style',
'../svg',
@ -222,8 +175,6 @@ MARIONETTE_LAYOUT_MANIFESTS += ['tests/marionette/manifest.ini']
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome/chrome.ini']
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
if CONFIG['_MSC_VER']:
# This is intended as a temporary hack to support building with VS2015.
# 'type cast': conversion from 'unsigned int' to 'void *' of greater size

View File

@ -163,6 +163,7 @@
#endif
#include "mozilla/layers/CompositorBridgeChild.h"
#include "ClientLayerManager.h"
#include "GeckoProfiler.h"
#include "gfxPlatform.h"
#include "Layers.h"
@ -225,6 +226,7 @@ using namespace mozilla::layers;
using namespace mozilla::gfx;
using namespace mozilla::layout;
using PaintFrameFlags = nsLayoutUtils::PaintFrameFlags;
typedef FrameMetrics::ViewID ViewID;
CapturingContentInfo nsIPresShell::gCaptureInfo =
{ false /* mAllowed */, false /* mPointerLock */, false /* mRetargetToElement */,

View File

@ -24,6 +24,7 @@ LOCAL_INCLUDES += [
'../generic',
'../inspector',
'../mathml',
'../painting',
'../style',
'../tables',
'../xul',

View File

@ -47,6 +47,7 @@ LOCAL_INCLUDES += [
'../../editor/txmgr',
'../base',
'../generic',
'../painting',
'../style',
'../xul',
'/dom/base',

View File

@ -200,6 +200,7 @@ LOCAL_INCLUDES += [
'../../dom/plugins/base',
'../base',
'../forms',
'../painting',
'../style',
'../svg',
'../tables',

View File

@ -48,6 +48,7 @@ FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../base',
'../generic',
'../painting',
'../style',
'../tables',
'../xul',

View File

@ -20,6 +20,7 @@ DIRS += [
'inspector',
'tools/recording',
'reftests',
'painting',
]

66
layout/painting/moz.build Normal file
View File

@ -0,0 +1,66 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.
with Files('**'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
EXPORTS += [
'ActiveLayerTracker.h',
'DisplayItemClip.h',
'DisplayItemScrollClip.h',
'DisplayListClipState.h',
'FrameLayerBuilder.h',
'LayerState.h',
'nsDisplayItemTypes.h',
'nsDisplayItemTypesList.h',
'nsDisplayList.h',
'nsDisplayListInvalidation.h',
]
EXPORTS.mozilla += [
'PaintTracker.h',
]
UNIFIED_SOURCES += [
'ActiveLayerTracker.cpp',
'DashedCornerFinder.cpp',
'DisplayItemClip.cpp',
'DisplayItemScrollClip.cpp',
'DisplayListClipState.cpp',
'DottedCornerFinder.cpp',
'FrameLayerBuilder.cpp',
'MaskLayerImageCache.cpp',
'nsCSSRendering.cpp',
'nsCSSRenderingBorders.cpp',
'nsDisplayList.cpp',
'nsDisplayListInvalidation.cpp',
'PaintTracker.cpp',
]
include('/ipc/chromium/chromium-config.mozbuild')
LOCAL_INCLUDES += [
'/docshell/base',
'/dom/base',
'/layout/base',
'/layout/generic',
'/layout/style',
'/layout/svg',
'/layout/tables',
'/layout/xul',
]
FINAL_LIBRARY = 'xul'
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
if CONFIG['_MSC_VER']:
# This is intended as a temporary hack to support building with VS2015.
# 'type cast': conversion from 'unsigned int' to 'void *' of greater size
CXXFLAGS += ['-wd4312']
if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wno-error=shadow']

View File

@ -65,6 +65,7 @@ LOCAL_INCLUDES += [
'../../widget',
'../base',
'../generic',
'../painting',
'../style',
'../xul',
'/dom/base',

View File

@ -34,6 +34,7 @@ LOCAL_INCLUDES += [
'../../intl/unicharutil/util',
'../base',
'../generic',
'../painting',
'../style',
'../xul',
'/dom/base',

View File

@ -99,6 +99,7 @@ FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../base',
'../generic',
'../painting',
'../style',
'/dom/base',
]

View File

@ -45,6 +45,7 @@ LOCAL_INCLUDES += [
'../../base',
'../../forms',
'../../generic',
'../../painting',
'../../style',
'/dom/base',
]

View File

@ -249,6 +249,7 @@ LOCAL_INCLUDES += [
'/layout/base',
'/layout/forms',
'/layout/generic',
'/layout/painting',
'/layout/xul',
'/view',
'/widget',