Commit Graph

53338 Commits

Author SHA1 Message Date
Ting-Yu Lin
3a0b73989e Bug 1304598 Part 4 - Sort #include statements in TouchManager.cpp and PresShell.h. r=dholbert
Need to add #includes "nsPresContext.h" and "nsThreadUtils.h" in
PresShell.h, and "nsViewportInfo.h" in MobileViewportManager.h to compile.

MozReview-Commit-ID: F8bmOwllOiH

--HG--
extra : rebase_source : cacbb30d854c68ea720f849d03b649bbd3c5da03
2016-11-30 11:14:28 +08:00
Ting-Yu Lin
4174a3a87e Bug 1304598 Part 3 - Rename nsPresShell.h/cpp to PresShell.h/cpp, and move exported header to mozilla/ subdir. r=dholbert
The class PresShell doesn't have ns-prefix, so it's better to drop ns-prefix
in the file names to avoid confusion.

MozReview-Commit-ID: IljxsF5CVjh

--HG--
rename : layout/base/nsPresShell.cpp => layout/base/PresShell.cpp
rename : layout/base/nsPresShell.h => layout/base/PresShell.h
extra : rebase_source : e73a6873f360a7223d87bd22d9854fc9603c499f
2016-11-30 11:14:28 +08:00
Ting-Yu Lin
b7450110f4 Bug 1304598 Part 2 - Strip "dom::" prefix by using namespace in TouchManager.cpp r=dholbert
MozReview-Commit-ID: EYDEQum6K1G

--HG--
extra : rebase_source : 825f38d069a4c71ed335286c76044cf682ec7f61
2016-11-30 11:14:27 +08:00
Ting-Yu Lin
5a4f377e61 Bug 1304598 Part 1 - Move PresShell to mozilla namespace. r=dholbert
MozReview-Commit-ID: 3nsP8Ukxfw9

--HG--
extra : rebase_source : 63d816b32e00c678e547f8950d4c2257f150b1a1
2016-11-30 11:14:27 +08:00
Ryan VanderMeulen
7af8f38714 Merge m-c to autoland on a CLOSED TREE. a=merge 2016-11-30 13:27:46 -05:00
Phil Ringnalda
430ec9a870 Merge m-c to autoland 2016-11-29 19:31:34 -08:00
Phil Ringnalda
ef3cede9a5 Merge m-i to m-c, a=merge
MozReview-Commit-ID: DAm5uRF7n91
2016-11-29 19:28:12 -08:00
Wes Kocher
afc3fce143 Backed out changeset 6114d21c87ca (bug 1320809) for android reftest failures a=backout 2016-11-29 14:04:53 -08:00
Wes Kocher
f0071bb179 Backed out 2 changesets (bug 504622) for android reftest failures a=backout
Backed out changeset c024721d9b03 (bug 504622)
Backed out changeset 056f728704e7 (bug 504622)
2016-11-29 14:04:40 -08:00
Hiroyuki Ikezoe
f94cef05e4 Bug 1319378 - Don't set NS_FRAME_MAY_BE_TRANSFORMED against nsIFrame that does not support transforms. r=dbaron
MozReview-Commit-ID: CuDA14ktcDL

--HG--
extra : rebase_source : 56ae5f6299391db62148ee562bc85f40b66c1d1f
2016-11-28 14:19:40 +09:00
Xidorn Quan
56ba06edd2 Bug 1313293 followup - Fix small issue of ServoCSSRuleList::InsertRule.
MozReview-Commit-ID: GGN5mXQSp7f

--HG--
extra : rebase_source : 4d7ecaa1e66d682cd833558bd0fef5e880e78c76
extra : source : 56d52ccdcb81135314966da33dcf3217599a0fbe
2016-11-30 14:36:00 +11:00
Phil Ringnalda
4f2b77776e Merge m-c to m-i
MozReview-Commit-ID: IQH3p0Fs2su
2016-11-29 19:32:37 -08:00
Tom Puttemans
6ddea38ea7 Bug 1052045 - Fix <select> validity status for listboxes and for non-placeholder empty valued options. r=bzbarsky
--HG--
rename : layout/reftests/css-invalid/select/select-required-multiple-invalid.html => layout/reftests/css-invalid/select/select-required-multiple-still-valid.html
rename : layout/reftests/css-valid/select/select-required-multiple-invalid.html => layout/reftests/css-valid/select/select-required-multiple-still-valid.html
2016-11-24 22:15:33 +01:00
Boris Zbarsky
7478659b49 Bug 1320809. Remove the unused IsChecked() and IsIndeterminate() methods from nsGfxCheckboxControlFrame. r=dholbert 2016-11-29 15:52:22 -05:00
Boris Zbarsky
c2aae6a433 Bug 504622 part 2. Allow fieldsets to shrink below their intrinsic min-width and below the width of their legend if their min-width is explicitly overridden. r=dbaron 2016-11-29 15:52:55 -05:00
Boris Zbarsky
5b089631f6 Bug 504622 part 1. Rewrite fieldset border drawing to just clip to the area outside the legend instead of doing it in pieces with different clip rects. r=mattwoodrow,dbaron
This change will allow the border drawing code to deal with the following
changes, which will make us no longer force the fieldset to be wider than the
legend.  Without this patch, allowing the fieldset to be narrower than the
legend causes the vertical inline-start-side and inline-end-side borders of the
fieldset to paint under the legend, because the current code only modifies the
painting of the block-start-side border (the one the legend is positioned on).

This does change behavior in one situation, which the new tests test.  For
relatively positioned legends, we used to use the original vertical location but
the positioned horizontal location of the legend to decide which parts of the
border to not paint.  In the new setup, we use the original location for both.
I did check that this new behavior matches Chrome and Safari.  Edge seems to
have our old behavior.
2016-11-29 15:52:30 -05:00
Hiroyuki Ikezoe
1ef4ddc756 Bug 1289701 - Find the root style context by walkng up the style context tree instead of calling ResolveStyleFor or getting it from root element's primary frame. r=dbaron
The only call site of CalcLengthWith() with a null style context is
CalcLengthWithInitialFont(). CalcLengthWithInitialFont() calls
CalcLengthWith() with a valid nsStyleFont and aUseProvidedRootEmSize
true, so we can get the rem unit font size from the nsStyleFont when called
from CalcLengthWithInitialFont().

MozReview-Commit-ID: A9LKfQEozaB
2016-11-30 07:46:27 +09:00
Jeremy Chen
acdd7e353f Bug 1320239 - use nscoord instead of nsStyleCoord for outline-width. r=heycam
MozReview-Commit-ID: CaM12OvYeSW

--HG--
extra : rebase_source : 4147f2422257100bc43f988b9b5f667709fae8c4
2016-11-29 20:08:08 +08:00
Jeremy Chen
7e8439ba23 Bug 1320239 - use nscoord instead of nsStyleCoord for -webkit-text-stroke-width. r=heycam
MozReview-Commit-ID: 94fL7YgZqCl

--HG--
extra : rebase_source : ad651ab9270a9e19a21401b81745808cc7a8a74b
2016-11-29 20:08:08 +08:00
Jeremy Chen
8679794758 Bug 1320239 - use ComputeLineWidthValue helper to set border-width. r=heycam
MozReview-Commit-ID: At5du5sOyXU

--HG--
extra : rebase_source : da96fbd3e657bf65a864eb1b3630b8f1a9636b6a
2016-11-29 20:08:08 +08:00
Jeremy Chen
cf3e7a4295 Bug 1320239 - use ComputeLineWidthValue helper to set column-rule-width. r=heycam
MozReview-Commit-ID: 63wXy4TTXIs

--HG--
extra : rebase_source : a7f7bae1ad7b18a15f2fd52161920eaac43c6d01
2016-11-29 20:08:08 +08:00
Jeremy Chen
9e64ed51d8 Bug 1320239 - create ComputeLineWidthValue helper function for line-width computed values. r=heycam
This is the first patch which creates a helper function to compute a line-width
value to an absolute length. With this helper, we could share the computation
for other line-width value properties, e.g., border-width, column-rule-width.

MozReview-Commit-ID: GnsmzGl5KBo

--HG--
extra : rebase_source : efe7c253b07c7d15531106f841383bd8a5ad463a
2016-11-29 20:08:07 +08:00
Carsten "Tomcat" Book
68202ee27c merge mozilla-inbound to mozilla-central a=merge 2016-11-29 16:47:18 +01:00
Thomas Wisniewski
0d4727f3ae Bug 943918 - Part 3: reftest for tab-size:<length> and tab-size:<number>. r=heycam,r=xidorn 2016-11-28 22:51:49 -05:00
Thomas Wisniewski
bbec31e079 Bug 943918 - Part 2: layout for tab-size:<length> and tab-size:<number>. r=heycam 2016-11-25 00:18:11 -05:00
Thomas Wisniewski
390c3bda9a Bug 943918 - Part 1: style system support for tab-size:<length> and tab-size:<number>. r=heycam 2016-11-24 23:23:14 -05:00
Ryan Hunt
4026e2a704 Bug 1303408 - Create nsDisplayLayerEventRegions for positioned elements. r=mattwoodrow
--HG--
extra : rebase_source : 080e2261084aa28151abab20adfcb2ea598c4424
extra : amend_source : b39a00efe74d8af4d4f2f7f1c5bcbcf83161e322
2016-11-23 16:24:29 -06:00
Boris Zbarsky
6f55f6fce6 Bug 504622 part 2. Allow fieldsets to shrink below their intrinsic min-width and below the width of their legend if their min-width is explicitly overridden. r=dbaron 2016-11-29 15:52:55 -05:00
Boris Zbarsky
6b2f992350 Bug 504622 part 1. Rewrite fieldset border drawing to just clip to the area outside the legend instead of doing it in pieces with different clip rects. r=mattwoodrow,dbaron
This change will allow the border drawing code to deal with the following
changes, which will make us no longer force the fieldset to be wider than the
legend.  Without this patch, allowing the fieldset to be narrower than the
legend causes the vertical inline-start-side and inline-end-side borders of the
fieldset to paint under the legend, because the current code only modifies the
painting of the block-start-side border (the one the legend is positioned on).

This does change behavior in one situation, which the new tests test.  For
relatively positioned legends, we used to use the original vertical location but
the positioned horizontal location of the legend to decide which parts of the
border to not paint.  In the new setup, we use the original location for both.
I did check that this new behavior matches Chrome and Safari.  Edge seems to
have our old behavior.
2016-11-29 15:52:30 -05:00
Boris Zbarsky
ec89866229 Bug 1320809. Remove the unused IsChecked() and IsIndeterminate() methods from nsGfxCheckboxControlFrame. r=dholbert 2016-11-29 15:52:22 -05:00
Mats Palmgren
d8418be439 Bug 1279354 part 3 - Crashtest. 2016-11-28 23:00:20 +01:00
Mats Palmgren
046c6cd826 Bug 1279354 part 2 - Make the nsProgressFrame code a bit more idiomatic by processing its actual child frames. r=dholbert 2016-11-28 23:00:20 +01:00
Mats Palmgren
7c01c6afca Bug 1279354 part 1 - Always call SetPrimaryFrame for NS_FRAME_ANONYMOUSCONTENTCREATOR_CONTENT frames (unless there is one already), including when mCreatingExtraFrames is true. r=dholbert 2016-11-28 23:00:20 +01:00
Nathan Froyd
2ebbd09068 Bug 1320752 - remove mozilla/Function.h; r=gerald
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Carsten "Tomcat" Book
4703a9d09f Merge mozilla-central to mozilla-inbound 2016-11-28 16:47:40 +01:00
Carsten "Tomcat" Book
d98418da69 merge mozilla-inbound to mozilla-central a=merge 2016-11-28 16:37:22 +01:00
Jeremy Chen
9dca2c80ea (no bug) minor indentation cleanup in nsTextFrameUtils.h. whitespace-only, no review, DONTBUILD
MozReview-Commit-ID: FIN0Tif6JZQ
2016-11-28 20:45:37 +08:00
Jeremy Chen
a09461846f (no bug) fix comment for nsTextFrameUtils::TransformText. comment-only, no review, DONTBUILD
MozReview-Commit-ID: Cu7zjjvOwQE
2016-11-28 20:45:37 +08:00
Julian Seward
e32070c1ac Bug 1320094 - Add missing mLoading assignments in {nsHTMLFramesetFrame,nsHTMLFramesetBorderFrame}::GetCursor. r=dbaron.
--HG--
extra : rebase_source : b339c012daab96990bf22bd5d31edc125135700d
2016-11-28 12:59:02 +01:00
Mats Palmgren
e6c84d38b0 Bug 1319958 - [css-grid] Sprinkle some place-items/self/content shorthands around in the Grid reftests to increase test coverage. 2016-11-28 00:44:22 +01:00
Mats Palmgren
0965da8493 Bug 1319958 - [css-align][css-grid][css-flexbox] Implement the place-items/self/content shorthands. r=dholbert 2016-11-28 00:44:22 +01:00
Sebastian Hengst
f6618cb892 Backed out changeset 8a6c538cf61a (bug 943918) for failing own test tab-size-length.html on at least Windows 8 x64 opt+debug and OS X debug. r=backout 2016-11-28 00:41:19 +01:00
Sebastian Hengst
8a78fcdecc Backed out changeset 0c5eb3fd9fb5 (bug 943918) 2016-11-28 00:39:27 +01:00
Sebastian Hengst
d88586f1c1 Backed out changeset 5cfdfff9c5c8 (bug 943918) 2016-11-28 00:39:23 +01:00
Xidorn Quan
5eac149d87 Bug 1258916 part 10 - Not attach HTTP directive to tests which need ahem font. r=dbaron
MozReview-Commit-ID: E4ItEEmThcC

--HG--
extra : source : 9c6424b5a452cd7244a5ff100b8d72b6fa89f49d
2016-11-28 10:13:08 +11:00
Xidorn Quan
3c31d970c0 Bug 1258916 part 9 - Optimize re.sub usage in import script. r=dbaron
This reduces the time to import by ~30% with css-writing-modes included.

MozReview-Commit-ID: JsnkRfTFnp6

--HG--
extra : source : 76731753ce13d2d9e427935112b02df2781cd44a
2016-11-28 10:13:08 +11:00
Thomas Wisniewski
d32b92271b Bug 943918 - Part 3: reftest for tab-size:<length> and tab-size:<number>. r=heycam 2016-11-25 00:22:56 -05:00
Thomas Wisniewski
813450469e Bug 943918 - Part 2: layout for tab-size:<length> and tab-size:<number>. r=heycam 2016-11-25 00:18:11 -05:00
Thomas Wisniewski
ae1257b378 Bug 943918 - Part 1: style system support for tab-size:<length> and tab-size:<number>. r=heycam 2016-11-24 23:23:14 -05:00
Sebastian Hengst
da69754231 Backed out changeset 39e0069c673e (bug 1317562) for failing reftest 368020-1.html on OS X and Windows. r=backout 2016-11-27 14:07:18 +01:00