gecko-dev/layout/generic
Jeremy Chen 526327d9d5 Bug 1316482 - remove collapsible white spaces according to the White Space Processing Rules. r=jfkthame
This patch is an implementation of CSS Text 3 - 4.1.1 Phase 1 Step 1.

According to the specification, if white space characters are considered
collapsible, they should be removed before applying segment break transformation
rules during the text transform.

In this patch, a refactoring of text transformation logic has been made. Every
run of consecutive document white space characters (spaces/tabs/segment breaks)
is collected first. Then, we could apply the white space processing rules
accordingly.

MozReview-Commit-ID: 1JStjFk5TBs

--HG--
extra : rebase_source : b7a81e08c026d25482dc35994f4595989c8b09c0
2017-01-12 09:27:01 +08:00
..
crashtests Merge m-c to inbound a=merge 2017-01-09 16:44:58 -08:00
test Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley 2016-12-09 09:23:24 -10:00
AsyncScrollBase.cpp
AsyncScrollBase.h
BRFrame.cpp Bug 1304598 Part 7 - Move BRFrame to mozilla namespace, and rename nsBRFrame.cpp to BRFrame.cpp. r=dholbert 2016-11-30 11:14:29 +08:00
BlockReflowInput.cpp Backed out 8 changesets (bug 1311244) for OOM failures in Win7 debug R1 2017-01-08 21:11:25 -08:00
BlockReflowInput.h Bug 1232194 part 1 - [writing-mode] Drop "Get" from GetConsumedBSize() and add a WritingMode param. r=dholbert 2017-01-04 00:56:19 +01:00
CSSAlignUtils.cpp Bug 1321387 part 4: Add #includes to some .cpp files in layout/generic, to provide types/definitions used in those files. r=TYLin 2016-11-30 14:51:12 -08:00
CSSAlignUtils.h Bug 1321387 part 6: Add #includes & forward declarations to some headers in layout/generic, to provide types used in those files. r=TYLin 2016-11-30 14:52:26 -08:00
DetailsFrame.cpp Bug 1321166 - Wrap DetailsFrame's definition and implementation in mozilla namespace. r=dholbert 2016-12-01 13:18:03 +08:00
DetailsFrame.h Bug 1321166 - Wrap DetailsFrame's definition and implementation in mozilla namespace. r=dholbert 2016-12-01 13:18:03 +08:00
FrameChildList.cpp
FrameChildList.h Bug 1317430 - Avoid a unnecessary copy by passing a const & in layout/ r=mstange 2016-11-15 17:30:59 +01:00
JustificationUtils.h Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
MathMLTextRunFactory.cpp Bug 1280887 - patch 2 - Make gfxTextRun refcounted, replace usage of UniquePtr<> with RefPtr<> for textruns, and make nsTextFrame hold a strong reference to its run(s). r=mats 2016-08-19 13:14:22 +01:00
MathMLTextRunFactory.h Bug 1321387 part 3: Add "mozilla::" namespace prefix to some types in header files. r=TYLin 2016-11-30 14:50:22 -08:00
ReflowInput.cpp Bug 1325970 - Treat display:flow-root as a block-ish frame type. r=dholbert 2016-12-28 15:26:35 +01:00
ReflowInput.h (no bug) Drive-by ReflowInput whitespace fixup. r=dholbert 2017-01-10 18:55:42 -08:00
ReflowOutput.cpp Bug 1321387 part 1: Wrap ReflowOutput impl in "namespace mozilla {}". r=TYLin 2016-11-30 14:47:45 -08:00
ReflowOutput.h Bug 1277129 Part 5c - Rename nsHTMLReflowMetrics to ReflowOutput. r=dbaron 2016-07-21 18:36:38 +08:00
RubyUtils.cpp
RubyUtils.h Bug 1321387 part 6: Add #includes & forward declarations to some headers in layout/generic, to provide types used in those files. r=TYLin 2016-11-30 14:52:26 -08:00
ScrollSnap.cpp
ScrollSnap.h Bug 1321387 part 6: Add #includes & forward declarations to some headers in layout/generic, to provide types used in those files. r=TYLin 2016-11-30 14:52:26 -08:00
ScrollVelocityQueue.cpp
ScrollVelocityQueue.h
ScrollbarActivity.cpp Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
ScrollbarActivity.h
Selection.h Bug 1321623 - Implement DOM Selection.setBaseAndExtent(). r=smaug 2016-12-19 16:48:37 +01:00
SelectionChangeListener.h
StickyScrollContainer.cpp Bug 1316101 - Avoid excessive clamping in StickyScrollContainer::GetScrollRanges(). r=mstange 2016-11-14 19:01:37 -05:00
StickyScrollContainer.h
TextOverflow.cpp Bug 1303241 part 2 - Make GetVisitedDependentColor use style structs directly. r=dbaron 2016-12-31 00:57:37 +11:00
TextOverflow.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
ViewportFrame.cpp Bug 1321387 part 4: Add #includes to some .cpp files in layout/generic, to provide types/definitions used in those files. r=TYLin 2016-11-30 14:51:12 -08:00
ViewportFrame.h Bug 1304598 Part 6 - Rename nsViewportFrame.h/cpp to ViewportFrame.h/cpp, and move exported header to mozilla/ subdir. r=dholbert 2016-11-30 11:14:29 +08:00
Visibility.h Bug 1284350. Backed out changeset 69abdc731a99 (Bug 1261554 (Part 1) - Prepare for implementing in-displayport visibility tracking. r=mstange) 2016-09-12 00:19:08 -05:00
WritingModes.h Backed out 8 changesets (bug 1311244) for OOM failures in Win7 debug R1 2017-01-08 21:11:25 -08:00
broken-image.png
folder.png
frame-graph.py
jar.mn
loading-image.png
moz.build Bug 1304598 Part 7 - Move BRFrame to mozilla namespace, and rename nsBRFrame.cpp to BRFrame.cpp. r=dholbert 2016-11-30 11:14:29 +08:00
nsAbsoluteContainingBlock.cpp Bug 1269017 part 3 - [css-grid] Reduce scope of a mStaticPosIsCBOrigin check to *just* cover hypothetical-position calculation, and update comments. r=mats 2016-11-08 16:30:00 -08:00
nsAbsoluteContainingBlock.h Bug 1269046 part 2: Spin out a helper function to hold nsAbsoluteContainingBlock's code for resolving abspos offsets. r=mats 2016-10-31 08:58:18 -07:00
nsAtomicContainerFrame.h
nsAutoCopyListener.h Bug 1261299 - Add new clipboard kSelectionCache to cache the current selection for OSX service menu. Add a constructor to nsAutoCopyListener which sets the clipboard to copy to. Pass in kSelectionCache for OSX or kSelectionClipboard for linux. r=mstange 2016-06-03 12:04:22 -04:00
nsBackdropFrame.cpp Bug 1300369 part 4 - Refactor all ComputeAutoSize methods to take the full ComputeSizeFlags instead of just a "bool aShrinkWrap" for the eShrinkWrap flag (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
nsBackdropFrame.h Bug 1300369 part 4 - Refactor all ComputeAutoSize methods to take the full ComputeSizeFlags instead of just a "bool aShrinkWrap" for the eShrinkWrap flag (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
nsBlockDebugFlags.h Bug 1302758 Part 2 - Replace NOISY_FLOATMANAGER with nsBlockFrame::gNoisyFloatManager. r=dholbert 2016-09-15 14:32:12 +08:00
nsBlockFrame.cpp Bug 1232194 part 1 - [writing-mode] Drop "Get" from GetConsumedBSize() and add a WritingMode param. r=dholbert 2017-01-04 00:56:19 +01:00
nsBlockFrame.h Bug 1312379 part 1 - [css-align][css-flexbox][css-grid] Introduce nsIFrame methods for calculating baselines per CSS Alignment and CSS2 'vertical-align'. r=dholbert 2016-12-20 23:56:35 +01:00
nsBlockReflowContext.cpp Bug 1286468 followup - Fix naming issues. 2016-10-24 15:01:25 +08:00
nsBlockReflowContext.h Bug 1277129 Part 7c - Rename various RS variables to RI. r=dbaron 2016-07-21 18:36:39 +08:00
nsBulletFrame.cpp Bug 1303241 part 2 - Make GetVisitedDependentColor use style structs directly. r=dbaron 2016-12-31 00:57:37 +11:00
nsBulletFrame.h Bug 1316556 - Remove zeroing allocation in class nsIPresShell. r=dbaron. 2016-12-01 09:06:50 +01:00
nsCanvasFrame.cpp Bug 1304598 Part 3 - Rename nsPresShell.h/cpp to PresShell.h/cpp, and move exported header to mozilla/ subdir. r=dholbert 2016-11-30 11:14:28 +08:00
nsCanvasFrame.h Bug 1318156 - Convert background colors into layers if we're forcing active layers. r=mstange 2016-11-24 18:11:29 +13:00
nsColumnSetFrame.cpp Bug 1232194 part 1 - [writing-mode] Drop "Get" from GetConsumedBSize() and add a WritingMode param. r=dholbert 2017-01-04 00:56:19 +01:00
nsColumnSetFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsContainerFrame.cpp Bug 1322257. Always position child views in nsContainerFrame::ReflowChild. r=dholbert 2016-12-20 13:49:32 -06:00
nsContainerFrame.h Bug 1300369 part 4 - Refactor all ComputeAutoSize methods to take the full ComputeSizeFlags instead of just a "bool aShrinkWrap" for the eShrinkWrap flag (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
nsDirection.h
nsFirstLetterFrame.cpp Bug 1325355 part 2 - Rename nsIFrame::GetWritingMode to WritingModeForLine to make its purpose clearer. r=jfkthame 2016-12-31 18:16:32 +01:00
nsFirstLetterFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsFlexContainerFrame.cpp Bug 1312379 part 2 - [css-flexbox] Improve support for CSS Alignment 'last baseline' alignment by exporting the last baseline when asked for. r=dholbert 2016-12-20 23:56:35 +01:00
nsFlexContainerFrame.h Bug 1312379 part 2 - [css-flexbox] Improve support for CSS Alignment 'last baseline' alignment by exporting the last baseline when asked for. r=dholbert 2016-12-20 23:56:35 +01:00
nsFloatManager.cpp Backed out 8 changesets (bug 1311244) for OOM failures in Win7 debug R1 2017-01-08 21:11:25 -08:00
nsFloatManager.h Backed out 8 changesets (bug 1311244) for OOM failures in Win7 debug R1 2017-01-08 21:11:25 -08:00
nsFontInflationData.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsFontInflationData.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsFrame.cpp Bug 1320014 Part 14 - Convert NS_SIDE_TO_HALF_CORNER to a constexpr function. r=mats 2017-01-05 16:23:16 +08:00
nsFrame.h Bug 1320815 - Make nsIFrame::IsSelectable non-virtual, and move implementation from nsFrame to nsIFrame. r=xidorn 2016-11-28 15:31:29 -08:00
nsFrameIdList.h Bug 1239100 - Implement SVGGeometryElement interface. r=cam r=peterv 2016-12-18 11:11:47 +00:00
nsFrameList.cpp Bug 1295192 - part 1 - remove CPP_THROW_NEW on layout struct operator new overloads that forward to nsPresShell::AllocateByObjectID; r=dholbert 2016-08-17 15:28:45 -04:00
nsFrameList.h Bug 1295192 - part 1 - remove CPP_THROW_NEW on layout struct operator new overloads that forward to nsPresShell::AllocateByObjectID; r=dholbert 2016-08-17 15:28:45 -04:00
nsFrameSelection.h Bug 1309628 - Hide support for dispatching selection events on the contents of text controls behind a pref; r=mystor 2016-10-13 16:52:07 -04:00
nsFrameSetFrame.cpp Bug 1325734 - Simplify ElementData and eliminate the concept of consuming styles. r=emilio 2017-01-09 11:50:16 -08:00
nsFrameSetFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsFrameState.cpp
nsFrameState.h
nsFrameStateBits.h Bug 1322191 part 2b - Replace "NS_BLOCK_FLOAT_MGR | NS_BLOCK_MARGIN_ROOT" with NS_BLOCK_FORMATTING_CONTEXT_STATE_BITS. r=dholbert 2016-12-23 19:11:04 +01:00
nsFrameUtil.cpp
nsGfxScrollFrame.cpp Bug 1327095 - Shift the rootCompBounds to maximize overlap with the displayportBase before intersecting. r=tnikkel 2017-01-09 21:46:56 -05:00
nsGfxScrollFrame.h Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
nsGridContainerFrame.cpp Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
nsGridContainerFrame.h Bug 1312379 part 1 - [css-align][css-flexbox][css-grid] Introduce nsIFrame methods for calculating baselines per CSS Alignment and CSS2 'vertical-align'. r=dholbert 2016-12-20 23:56:35 +01:00
nsHTMLCanvasFrame.cpp Bug 1300369 part 9 - Add a ComputeSizeFlags param to nsFrame::ComputeSizeWithIntrinsicDimensions (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
nsHTMLCanvasFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsHTMLParts.h Bug 1322191 part 2b - Replace "NS_BLOCK_FLOAT_MGR | NS_BLOCK_MARGIN_ROOT" with NS_BLOCK_FORMATTING_CONTEXT_STATE_BITS. r=dholbert 2016-12-23 19:11:04 +01:00
nsIAnonymousContentCreator.h Bug 1321284 - Part 1: Make StyleChildrenIterator skip NAC generated by root element primary frame ancestors. r=bholley 2016-12-01 11:34:57 +08:00
nsIFrame.h Merge m-c to m-i 2016-12-31 11:32:38 -08:00
nsIFrameInlines.h Bug 1312379 part 4 - Rename GetBaseline() to BaselineBOffset(). r=me 2016-12-20 23:56:35 +01:00
nsIFrameUtil.h
nsILineIterator.h
nsIObjectFrame.h
nsIPageSequenceFrame.h
nsIScrollPositionListener.h
nsIScrollableFrame.h Bug 41708, support scrolling when hovering over the edge of a scrollframe while dragging, r=smaug 2016-12-20 13:39:30 -05:00
nsIStatefulFrame.h Bug 1300206: Add some missing #includes & namespaces in layout/generic, to prevent unified build bustage. r=mats 2016-09-02 15:01:09 -07:00
nsImageFrame.cpp Bug 1325734 - Simplify ElementData and eliminate the concept of consuming styles. r=emilio 2017-01-09 11:50:16 -08:00
nsImageFrame.h Bug 1304598 Part 1 - Move PresShell to mozilla namespace. r=dholbert 2016-11-30 11:14:27 +08:00
nsImageMap.cpp
nsImageMap.h
nsInlineFrame.cpp Bug 1317588 Part 3 - Remove #define NS_SIDE_TOP/RIGHT/BOTTOM/LEFT. r=mats 2016-11-18 18:12:25 +08:00
nsInlineFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsIntervalSet.cpp
nsIntervalSet.h
nsLeafFrame.cpp Bug 1300369 part 4 - Refactor all ComputeAutoSize methods to take the full ComputeSizeFlags instead of just a "bool aShrinkWrap" for the eShrinkWrap flag (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
nsLeafFrame.h Bug 1300369 part 4 - Refactor all ComputeAutoSize methods to take the full ComputeSizeFlags instead of just a "bool aShrinkWrap" for the eShrinkWrap flag (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
nsLineBox.cpp Bug 1316556 - Remove zeroing allocation in class nsIPresShell. r=dbaron. 2016-12-01 09:06:50 +01:00
nsLineBox.h Bug 1297306 - part7:replace StyleClear related NS_ASSERTION with MOZ_ASSERT. r=xidorn 2016-09-07 10:20:17 +08:00
nsLineLayout.cpp Bug 1317588 Part 3 - Remove #define NS_SIDE_TOP/RIGHT/BOTTOM/LEFT. r=mats 2016-11-18 18:12:25 +08:00
nsLineLayout.h Bug 1277129 Part 7c - Rename various RS variables to RI. r=dbaron 2016-07-21 18:36:39 +08:00
nsPageContentFrame.cpp Bug 1321387 part 2: Add missing "using namespace" declarations to a few .cpp files in layout/generic. r=TYLin 2016-11-30 14:47:45 -08:00
nsPageContentFrame.h Bug 1304598 Part 6 - Rename nsViewportFrame.h/cpp to ViewportFrame.h/cpp, and move exported header to mozilla/ subdir. r=dholbert 2016-11-30 11:14:29 +08:00
nsPageFrame.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsPageFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsPlaceholderFrame.cpp Bug 1223561 - Support putting <table> into fullscreen. r=dbaron 2016-11-22 16:31:56 +11:00
nsPlaceholderFrame.h Bug 1171419 part 3 - Override RenumberFrameAndDescendants in nsPlaceholderFrame instead and deal with it there rather than nsContainerFrame. r=xidorn 2016-09-01 17:36:22 +02:00
nsPluginFrame.cpp Bug 1303241 part 2 - Make GetVisitedDependentColor use style structs directly. r=dbaron 2016-12-31 00:57:37 +11:00
nsPluginFrame.h Bug 1313560: Undefine LoadImage in nsPluginFrame.h (alongside other undefines) to prevent windows.h macros from causing unified bustage in other files. rs=dmajor 2016-10-28 05:59:17 -07:00
nsQueryFrame.h
nsRubyBaseContainerFrame.cpp Bug 1321394 - Remove unnecessary loop in nsRubyBaseContainerFrame. r=dholbert 2016-12-01 13:47:26 +11:00
nsRubyBaseContainerFrame.h Bug 1267515 part 2 - Place ruby annotations outside annotations from ruby descendants. r=dholbert 2016-10-26 17:40:58 +11:00
nsRubyBaseFrame.cpp
nsRubyBaseFrame.h
nsRubyContentFrame.cpp
nsRubyContentFrame.h
nsRubyFrame.cpp Bug 1267515 part 1 - Refactor ruby leadings into a helper RubyBlockLeadings struct. r=dholbert 2016-11-10 11:10:42 +11:00
nsRubyFrame.h Bug 1267515 part 1 - Refactor ruby leadings into a helper RubyBlockLeadings struct. r=dholbert 2016-11-10 11:10:42 +11:00
nsRubyTextContainerFrame.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsRubyTextContainerFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsRubyTextFrame.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsRubyTextFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsSelection.cpp Bug 1329086 - Make Selection::ToString flush frames. r=bzbarsky 2017-01-06 15:21:19 +08:00
nsSimplePageSequenceFrame.cpp Bug 1328275 - Refactor and comment nsSimplePageSequenceFrame::PrintNextPage to make it easier to understand. r=bobowen 2016-12-28 11:26:31 +00:00
nsSimplePageSequenceFrame.h Backed out changeset 7e747433d1c9 (bug 1301640) for causing bug 1325751. r=backout 2016-12-25 10:43:04 +09:00
nsSplittableFrame.cpp Bug 1232194 part 2 - [writing-mode] Make ConsumedBSize() return the block-axis size, not the physical height. r=dholbert 2017-01-04 00:56:19 +01:00
nsSplittableFrame.h Bug 1232194 part 2 - [writing-mode] Make ConsumedBSize() return the block-axis size, not the physical height. r=dholbert 2017-01-04 00:56:19 +01:00
nsSubDocumentFrame.cpp Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
nsSubDocumentFrame.h Bug 1300369 part 4 - Refactor all ComputeAutoSize methods to take the full ComputeSizeFlags instead of just a "bool aShrinkWrap" for the eShrinkWrap flag (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
nsTextFrame.cpp Bug 1315274 - rename mozilla::MakeRange to mozilla::IntegerRange; r=Waldo 2017-01-06 09:22:53 -05:00
nsTextFrame.h Bug 1316556 - Remove zeroing allocation in class nsIPresShell. r=dbaron. 2016-12-01 09:06:50 +01:00
nsTextFrameUtils.cpp Bug 1316482 - remove collapsible white spaces according to the White Space Processing Rules. r=jfkthame 2017-01-12 09:27:01 +08:00
nsTextFrameUtils.h Bug 1316482 - remove collapsible white spaces according to the White Space Processing Rules. r=jfkthame 2017-01-12 09:27:01 +08:00
nsTextRunTransformations.cpp Bug 1322989 - Preserve accent on Greek disjunctive eta (ή) when applying text-transform:uppercase. r=m_kato 2016-12-20 10:06:51 +00:00
nsTextRunTransformations.h Bug 1321387 part 3: Add "mozilla::" namespace prefix to some types in header files. r=TYLin 2016-11-30 14:50:22 -08:00
nsVideoFrame.cpp Bug 1319318: When resolving a video/audio frame's shrinkwrapped BSize from controls, check whether controls are orthogonal when reading its size. r=mats 2016-12-08 09:20:25 -10:00
nsVideoFrame.h Bug 1313285 - remove nsVideoFrame::mBorderPadding. r=dholbert 2016-11-25 14:03:15 +08:00