2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:22 +04:00
|
|
|
# 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/.
|
|
|
|
|
2015-03-04 04:03:19 +03:00
|
|
|
with Files('nsBlock*'):
|
|
|
|
# Parts of these files are really Layout: Floats
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Block and Inline')
|
|
|
|
|
2016-10-13 21:41:51 +03:00
|
|
|
with Files('Block*'):
|
|
|
|
# Parts of these files are really Layout: Floats
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Block and Inline')
|
|
|
|
|
2015-03-04 04:03:19 +03:00
|
|
|
with Files('nsLine*'):
|
|
|
|
# Parts of these files are really Layout: Floats
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Block and Inline')
|
|
|
|
|
|
|
|
with Files('nsInlineFrame.*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Block and Inline')
|
|
|
|
|
2016-11-30 06:14:29 +03:00
|
|
|
with Files('BRFrame.*'):
|
2015-03-04 04:03:19 +03:00
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Block and Inline')
|
|
|
|
|
|
|
|
with Files('nsBulletFrame.*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Block and Inline')
|
|
|
|
|
|
|
|
with Files('nsFirstLetterFrame.*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Block and Inline')
|
|
|
|
|
|
|
|
with Files('MathML*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'MathML')
|
|
|
|
|
|
|
|
with Files('Text*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Text')
|
|
|
|
|
|
|
|
with Files('nsText*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Text')
|
|
|
|
|
|
|
|
with Files('nsFrameSetFrame*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: HTML Frames')
|
|
|
|
|
|
|
|
with Files('nsSubDocumentFrame*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: HTML Frames')
|
|
|
|
|
|
|
|
with Files('nsFloatManager.*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Floats')
|
|
|
|
|
|
|
|
with Files('nsIntervalSet.*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Floats')
|
|
|
|
|
|
|
|
with Files('nsHTMLCanvasFrame.*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Images')
|
|
|
|
|
|
|
|
with Files('nsImage*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Images')
|
|
|
|
|
|
|
|
with Files('nsAbsoluteContainingBlock.*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: R & A Pos')
|
|
|
|
|
2016-10-13 21:41:51 +03:00
|
|
|
with Files('Sticky*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: R & A Pos')
|
|
|
|
|
2015-03-04 04:03:19 +03:00
|
|
|
with Files('nsPluginFrame.*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Plug-ins')
|
|
|
|
|
|
|
|
with Files('nsVideoFrame.*'):
|
2017-03-23 03:23:12 +03:00
|
|
|
BUG_COMPONENT = ('Core', 'Audio/Video')
|
2015-03-04 04:03:19 +03:00
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'nsCanvasFrame.h',
|
2014-05-25 02:20:39 +04:00
|
|
|
'nsContainerFrame.h',
|
2013-08-07 00:19:11 +04:00
|
|
|
'nsDirection.h',
|
2014-05-25 02:20:39 +04:00
|
|
|
'nsFrame.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsFrameIdList.h',
|
|
|
|
'nsFrameList.h',
|
|
|
|
'nsFrameSelection.h',
|
2014-02-05 05:59:39 +04:00
|
|
|
'nsFrameState.h',
|
|
|
|
'nsFrameStateBits.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsHTMLParts.h',
|
|
|
|
'nsIAnonymousContentCreator.h',
|
|
|
|
'nsIFrame.h',
|
2013-10-02 01:00:38 +04:00
|
|
|
'nsIFrameInlines.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsILineIterator.h',
|
|
|
|
'nsIObjectFrame.h',
|
|
|
|
'nsIPageSequenceFrame.h',
|
|
|
|
'nsIScrollableFrame.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsIScrollPositionListener.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsIStatefulFrame.h',
|
2014-09-24 08:33:00 +04:00
|
|
|
'nsPluginFrame.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsQueryFrame.h',
|
2015-04-08 02:22:34 +03:00
|
|
|
'nsRubyBaseContainerFrame.h',
|
|
|
|
'nsRubyBaseFrame.h',
|
|
|
|
'nsRubyFrame.h',
|
|
|
|
'nsRubyTextContainerFrame.h',
|
|
|
|
'nsRubyTextFrame.h',
|
2014-05-25 02:20:39 +04:00
|
|
|
'nsSplittableFrame.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsSubDocumentFrame.h',
|
2017-05-05 00:25:16 +03:00
|
|
|
'nsTextFrameUtils.h',
|
2014-05-26 17:23:32 +04:00
|
|
|
'nsTextRunTransformations.h',
|
2015-04-08 02:22:34 +03:00
|
|
|
'RubyUtils.h',
|
2017-09-30 01:37:14 +03:00
|
|
|
'ScrollAnimationBezierPhysics.h',
|
2017-09-27 03:55:35 +03:00
|
|
|
'ScrollAnimationMSDPhysics.h',
|
2017-09-22 20:42:29 +03:00
|
|
|
'ScrollAnimationPhysics.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'ScrollbarActivity.h',
|
2016-03-22 04:32:28 +03:00
|
|
|
'ScrollSnap.h',
|
Bug 1357545 - handle text-shadows/decorations with webrender (layers-free) r=jrmuizel
This replaces our DrawTargetCapture hack with a similar but more powerful TextDrawTarget
hack. The old design had several limitations:
* It couldn't handle shadows
* It couldn't handle selections
* It couldn't handle font/color changes in a single text-run
* It couldn't handle decorations (underline, overline, line-through)
Mostly this was a consequence of the fact that it only modified the start and end
of the rendering algorithm, and therefore couldn't distinguish draw calls for different
parts of the text.
This new design is based on a similar principle as DrawTargetCapture, but also passes
down the TextDrawTarget in the drawing arguments, so that the drawing algorithm can
notify us of changes in phase (e.g. "now we're doing underlines"). This also lets us
directly pass data to TextDrawTarget when possible (as is done for shadows and selections).
In doing this, I also improved the logic copied from ContainsOnlyColoredGlyphs to handle
changes in font/color mid-text-run (which can happen because of font fallback).
The end result is:
* We handle all shadows natively
* We handle all selections natively
* We handle all decorations natively
* We handle font/color changes in a single text-run
* Although we still hackily intercept draw calls
* But we don't need to buffer commands, reducing total memcopies
In addition, this change integrates webrender's PushTextShadow and PushLine APIs,
which were designed for this use case. This is only done in the layerless path;
WebrenderTextLayer continues to be semantically limited, as we aren't actively
maintaining non-layers-free webrender anymore.
This also doesn't modify TextLayers, to minimize churn. In theory they can be
augmented to support the richer semantics that TextDrawTarget has, but there's
little motivation since the API is largely unused with this change.
MozReview-Commit-ID: 4IjTsSW335h
--HG--
extra : rebase_source : d69f69648ade5c7a8e6bb756f4b8ab9e2543e576
2017-06-19 17:58:28 +03:00
|
|
|
'TextDrawTarget.h',
|
2016-03-26 00:49:43 +03:00
|
|
|
'Visibility.h',
|
2015-03-26 10:29:31 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
2016-10-31 18:58:18 +03:00
|
|
|
'CSSAlignUtils.h',
|
2017-04-06 05:31:47 +03:00
|
|
|
'CSSOrderAwareFrameIterator.h',
|
2017-04-30 18:30:08 +03:00
|
|
|
'FrameTypeList.h',
|
2016-07-21 13:36:34 +03:00
|
|
|
'ReflowInput.h',
|
2016-07-21 13:36:37 +03:00
|
|
|
'ReflowOutput.h',
|
2016-11-30 06:14:29 +03:00
|
|
|
'ViewportFrame.h',
|
2013-12-27 21:58:37 +04:00
|
|
|
'WritingModes.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.layout += [
|
|
|
|
'FrameChildList.h',
|
|
|
|
]
|
|
|
|
|
2013-11-15 17:19:02 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2016-07-21 13:36:36 +03:00
|
|
|
'BlockReflowInput.cpp',
|
2016-11-30 06:14:29 +03:00
|
|
|
'BRFrame.cpp',
|
2016-10-31 18:58:18 +03:00
|
|
|
'CSSAlignUtils.cpp',
|
2017-04-06 05:31:47 +03:00
|
|
|
'CSSOrderAwareFrameIterator.cpp',
|
2016-01-20 18:20:41 +03:00
|
|
|
'DetailsFrame.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'FrameChildList.cpp',
|
2014-01-15 18:49:20 +04:00
|
|
|
'MathMLTextRunFactory.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsAbsoluteContainingBlock.cpp',
|
2016-01-28 02:11:00 +03:00
|
|
|
'nsBackdropFrame.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsBlockFrame.cpp',
|
|
|
|
'nsBlockReflowContext.cpp',
|
|
|
|
'nsBulletFrame.cpp',
|
|
|
|
'nsCanvasFrame.cpp',
|
|
|
|
'nsColumnSetFrame.cpp',
|
|
|
|
'nsContainerFrame.cpp',
|
|
|
|
'nsFirstLetterFrame.cpp',
|
|
|
|
'nsFlexContainerFrame.cpp',
|
|
|
|
'nsFloatManager.cpp',
|
|
|
|
'nsFontInflationData.cpp',
|
|
|
|
'nsFrame.cpp',
|
|
|
|
'nsFrameList.cpp',
|
2017-06-19 01:07:36 +03:00
|
|
|
'nsFrameSelection.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsFrameSetFrame.cpp',
|
2014-01-18 11:08:22 +04:00
|
|
|
'nsFrameState.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsGfxScrollFrame.cpp',
|
2014-02-27 11:45:29 +04:00
|
|
|
'nsGridContainerFrame.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsHTMLCanvasFrame.cpp',
|
|
|
|
'nsImageFrame.cpp',
|
|
|
|
'nsImageMap.cpp',
|
|
|
|
'nsInlineFrame.cpp',
|
|
|
|
'nsIntervalSet.cpp',
|
|
|
|
'nsLeafFrame.cpp',
|
|
|
|
'nsLineBox.cpp',
|
2017-04-01 00:06:33 +03:00
|
|
|
'nsLineLayout.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPageContentFrame.cpp',
|
|
|
|
'nsPageFrame.cpp',
|
|
|
|
'nsPlaceholderFrame.cpp',
|
2014-07-23 06:08:01 +04:00
|
|
|
'nsRubyBaseContainerFrame.cpp',
|
|
|
|
'nsRubyBaseFrame.cpp',
|
2015-01-08 10:28:09 +03:00
|
|
|
'nsRubyContentFrame.cpp',
|
2014-07-23 06:08:01 +04:00
|
|
|
'nsRubyFrame.cpp',
|
|
|
|
'nsRubyTextContainerFrame.cpp',
|
|
|
|
'nsRubyTextFrame.cpp',
|
2014-02-18 12:58:22 +04:00
|
|
|
'nsSimplePageSequenceFrame.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsSplittableFrame.cpp',
|
|
|
|
'nsSubDocumentFrame.cpp',
|
2013-07-31 04:36:09 +04:00
|
|
|
'nsTextFrame.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsTextFrameUtils.cpp',
|
|
|
|
'nsTextRunTransformations.cpp',
|
|
|
|
'nsVideoFrame.cpp',
|
2016-07-21 13:36:34 +03:00
|
|
|
'ReflowInput.cpp',
|
2016-07-21 13:36:37 +03:00
|
|
|
'ReflowOutput.cpp',
|
2014-12-12 13:30:43 +03:00
|
|
|
'RubyUtils.cpp',
|
2017-09-30 01:37:14 +03:00
|
|
|
'ScrollAnimationBezierPhysics.cpp',
|
2017-09-27 03:55:35 +03:00
|
|
|
'ScrollAnimationMSDPhysics.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'ScrollbarActivity.cpp',
|
2016-03-22 04:32:28 +03:00
|
|
|
'ScrollSnap.cpp',
|
2015-02-20 02:51:08 +03:00
|
|
|
'ScrollVelocityQueue.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'StickyScrollContainer.cpp',
|
|
|
|
'TextOverflow.cpp',
|
2016-11-30 06:14:29 +03:00
|
|
|
'ViewportFrame.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-07-03 01:09:08 +04:00
|
|
|
|
2014-09-24 08:33:00 +04:00
|
|
|
# nsPluginFrame.cpp needs to be built separately because of name clashes in the OS X headers.
|
2013-11-15 17:19:02 +04:00
|
|
|
SOURCES += [
|
2014-09-24 08:33:00 +04:00
|
|
|
'nsPluginFrame.cpp',
|
2013-11-15 17:19:02 +04:00
|
|
|
]
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-28 18:23:10 +04:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../../dom/plugins/base',
|
|
|
|
'../base',
|
|
|
|
'../forms',
|
2016-11-19 03:37:13 +03:00
|
|
|
'../painting',
|
2013-11-28 18:23:10 +04:00
|
|
|
'../style',
|
|
|
|
'../svg',
|
|
|
|
'../tables',
|
2013-12-04 05:06:16 +04:00
|
|
|
'../xul',
|
2017-11-16 08:46:54 +03:00
|
|
|
'/docshell/base',
|
2014-10-25 21:25:22 +04:00
|
|
|
'/dom/base',
|
2014-10-25 21:24:55 +04:00
|
|
|
'/dom/html',
|
2014-10-25 21:21:03 +04:00
|
|
|
'/dom/xul',
|
2013-11-28 18:23:10 +04:00
|
|
|
]
|
2013-12-10 11:18:11 +04:00
|
|
|
|
2014-02-05 05:59:39 +04:00
|
|
|
JAR_MANIFESTS += ['jar.mn']
|
2013-11-05 22:37:54 +04:00
|
|
|
|
2018-01-29 01:01:42 +03:00
|
|
|
CONTENT_ACCESSIBLE_FILES.html = [
|
2013-11-05 22:37:54 +04:00
|
|
|
'folder.png',
|
|
|
|
]
|
2014-02-20 19:14:52 +04:00
|
|
|
|
|
|
|
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
|
2014-07-24 19:55:33 +04:00
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
|
2016-03-16 08:06:26 +03:00
|
|
|
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
2014-07-24 19:55:33 +04:00
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|