Xidorn Quan
485964af30
Bug 1225018 part 1 - Trigger reflow on some text emphasis changes for line height calculation. r=dbaron
2015-12-04 11:58:59 +11:00
L. David Baron
9882014b12
Bug 1224251 patch 3 - Return nsChangeHint_UpdateUsesOpacity when opacity changes between 1 and non-1. r=xidorn
2015-11-30 21:25:54 -08:00
L. David Baron
136a157a4f
Bug 1227766 patch 3 - Make will-change cause creation of a containing block for fixed and absolutely positioned elements when needed. r=dholbert
2015-11-30 15:46:44 -08:00
L. David Baron
fd5897e3cd
Bug 1228501 patch 4 - Remove nsStyleFont::CalcFontDifference, which now duplicates the list of tests in nsFont::Equals. r=jdaggett
2015-11-30 14:02:25 -08:00
L. David Baron
fe8e08e802
Bug 1228501 patch 2 - Remove nsFont::decorations member variable. r=jdaggett
...
The member variable was always set to 0 or to NS_FONT_DECORATION_NONE,
which is 0.
Although this does leave a gap in the structure, I don't see any
opportunities for reordering members to actually shrink nsFont.
2015-11-30 14:02:25 -08:00
Carsten "Tomcat" Book
17dd3eef29
Backed out changeset 91898a35b414 (bug 1224251)
2015-11-30 12:10:43 +01:00
Carsten "Tomcat" Book
e54a0bc16a
Backed out changeset 3a3cd254f508 (bug 1228501)
2015-11-30 12:10:38 +01:00
Carsten "Tomcat" Book
1c3df9533b
Backed out changeset ec79945130ff (bug 1228501)
2015-11-30 12:10:35 +01:00
L. David Baron
3a88c49bad
Bug 1228501 patch 4 - Remove nsStyleFont::CalcFontDifference, which now duplicates the list of tests in nsFont::Equals. r=jdaggett
2015-11-29 23:15:26 -08:00
L. David Baron
98e2ba466f
Bug 1228501 patch 2 - Remove nsFont::decorations member variable. r=jdaggett
...
The member variable was always set to 0 or to NS_FONT_DECORATION_NONE,
which is 0.
Although this does leave a gap in the structure, I don't see any
opportunities for reordering members to actually shrink nsFont.
2015-11-29 23:15:01 -08:00
L. David Baron
1596db2fce
Bug 1224251 patch 3 - Return nsChangeHint_UpdateUsesOpacity when opacity changes between 1 and non-1. r=xidorn
2015-11-29 23:15:01 -08:00
Mats Palmgren
b1738be95a
Bug 1225376 part 1 - [css-align] Don't compute left/right to start in the style system anymore (due to pending spec change). Map the used value instead (in layout). r=dholbert
...
For background, see this www-style thread:
https://lists.w3.org/Archives/Public/www-style/2015Nov/0280.html
2015-11-28 21:37:44 +01:00
Xidorn Quan
e437717e1e
Bug 1040668 part 15 - Make the default value of text-emphasis-position aware of the language. r=dbaron
2015-11-28 11:56:33 +11:00
Xidorn Quan
c91d09b415
Bug 1040668 part 13 - Move first part of nsStyleFont::GetLanguage to nsPresContext::GetContentLanguage. r=dbaron
2015-11-28 11:56:33 +11:00
Xidorn Quan
713c472a8d
Bug 1040668 part 10 - Implement emphasis mark rendering. r=jfkthame
2015-11-28 11:56:33 +11:00
Xidorn Quan
0856abb2ea
Bug 1040668 part 2 - Parse and compute text emphasis properties. r=dbaron
2015-11-28 11:56:33 +11:00
L. David Baron
5c3ac7c18c
Bug 1227501 patch 3 - Handle custom properties correctly in transition-property. r=xidorn
...
Without the code change, the property_database.js changes lead to:
* 3 failures in test_value_cloning.html (one each for
transition-property, -moz-transition-property, and
-webkit-transition-property) that "computed value should be nonempty"
* 6 failures in test_value_computation.html (two each for
*transition-property) that "should not get empty value"
* 16 failures in test_value_storage.html "parse+compute+serialize...
should be idempotent": 2 for each longhand, 2 for the shorthand for
the unprefixed, and 4 for the shorthand for each prefixed
2015-11-24 17:45:02 -08:00
Mats Palmgren
f0324b0370
Bug 1226627 - Truncate the result in ZoomText/UnZoomText rather than rounding it for better performance. r=roc
2015-11-21 04:41:00 +01:00
Boris Chiou
842f2123db
Bug 1215406 - Part 2: Change the types of direction and fillmode in StyleAnimation. r=heycam
...
Use scoped enum mozilla::dom::FillMode and mozilla::dom::PlaybackDirection,
instead of uint8_t in StyleAnimation.
2015-11-20 06:09:00 +01:00
L. David Baron
cab615e8d5
Bug 1223653 patch 2 - Use an enum class for NS_STYLE_BOX_SIZING_*. r=heycam
...
The casts in nsCSSProps.cpp (defining kBoxSizingKTable) and in
nsComputedDOMStyle::DoGetBoxSizing (using
nsCSSProps::ValueToKeywordEnum) are a little bit annoying, though aren't
a net reduction in typesafety.
The casts in nsRuleNode.cpp (SetDiscrete) are a little more annoying,
though the change in this patch should be sufficient for converting all
properties -- but that may also mean reducing typesafety a bit for all
properties.
I'd like to find something better to do about them, but I think I'm ok
landing this before doing that. Bug 1224918 covers doing better.
2015-11-19 18:09:29 -08:00
Mats Palmgren
f0d397f047
Bug 1176792 part 1 - [css-grid] Implement the 'grid-column-gap', 'grid-row-gap', and 'grid-gap' properties in the style system. r=dholbert,dbaron
2015-11-18 19:52:27 +01:00
Mats Palmgren
82bc9e2c9b
Bug 576927 - Use saturating multiply when calculating zoomed app units to avoid integer overflow. r=roc
2015-11-16 17:32:39 +01:00
Wes Kocher
56a494823d
Backed out changeset cbc8ceae73a2 (bug 576927) for test_value_cloning.html bustage CLOSED TREE
2015-11-16 11:00:32 -08:00
Mats Palmgren
4cb197ac1a
Bug 576927 - Use saturating multiply when calculating zoomed app units to avoid integer overflow. r=roc
2015-11-16 17:32:39 +01:00
Daniel Holbert
97641f1556
Bug 1223568: Don't let fallback alignment values break flexbox special-case for "justify-content: stretch". r=mats
2015-11-11 14:42:21 -08:00
Mats Palmgren
3149757e26
Bug 1176782 part 6 - [css-align] Implement additional syntax and values for the 'align-content' property in the style system. r=cam
2015-11-03 15:18:06 +01:00
Mats Palmgren
623054f187
Bug 1176782 part 5 - [css-align] Implement additional syntax and values for the 'align-self' property in the style system. r=cam
2015-11-03 15:18:06 +01:00
Mats Palmgren
e0422d1e26
Bug 1176782 part 4 - [css-align] Implement additional syntax and values for the 'align-items' property in the style system. r=cam
2015-11-03 15:18:05 +01:00
Mats Palmgren
c3f3c9abcd
Bug 1176782 part 3 - [css-align] Implement additional syntax and values for the 'justify-content' property in the style system. r=cam
2015-11-03 15:18:05 +01:00
Mats Palmgren
1b223d253e
Bug 1176782 part 2 - [css-align] Implement the 'justify-self' property in the style system. r=SimonSapin
2015-11-03 15:18:05 +01:00
Mats Palmgren
f9f7acdb17
Bug 1176782 part 1 - [css-align] Implement the 'justify-items' property in the style system. r=SimonSapin
2015-11-03 15:18:05 +01:00
Markus Stange
e088587ab1
Bug 1201327 - Don't repaint the whole frame subtree when background-position changes. r=dbaron
2015-11-02 17:36:35 +01:00
L. David Baron
831fc09979
Bug 1216431 patch 2 - Pass nsStyleVisibility to nsStylePosition::CalcDifference to avoid computing new nsStyleVisibility during nsStyleContext::CalcStyleDifference. r=heycam
...
This is needed to avoid hitting the assertion:
Assertion failure: !!(structsFound & (1 << uint64_t(eStyleStruct_Visibility))) == !!PeekStyleVisibility() (PeekStyleData results must not change in the middle of difference calculation.), at ./nsStyleStructList.h:62
once exact PeekStyleData is backed out in the later patches.
Without this patch, we can compute a new nsStyleVisibility struct inside
of nsStylePosition::CalcDifference. This patch ensures we use
PeekStyleVisibility() instead of StyleVisibility().
2015-10-23 08:57:35 +09:00
Nicholas Nethercote
92e5e88b56
Bug 1038663 (part 1) - Make nsStyleText::mWordSpacing an nsStyleCoord. r=heycam.
...
This makes mWordSpacing a lot more like mLetterSpacing, while maintaining the
existing "'normal' computes to 0px" behaviour.
2015-10-21 22:13:11 -07:00
Xidorn Quan
66e929986f
Bug 1165538 part 2 - Add -moz-min-font-size-ratio internal property. r=heycam
2015-10-08 10:19:29 +11:00
Xidorn Quan
0b3cd463f7
Bug 1165538 part 1 - Use delegated constructor for nsStyleFont to simplify code and remove the need of nsStyleFont::Init. r=heycam
2015-10-08 10:19:29 +11:00
Xidorn Quan
2e24b2dda4
Bug 1126230 part 4 - Add -moz-top-layer internal CSS property and set it for fullscreen elements. r=dbaron
2015-10-07 14:04:32 +11:00
Nigel Babu
b3962e0c30
Backed out 9 changesets (bug 1126230) for Mulet Gij(25) and M(5) failures
...
Backed out changeset 8a9d8a556183 (bug 1126230)
Backed out changeset 441b55f015c2 (bug 1126230)
Backed out changeset 7bfa2a2d4e29 (bug 1126230)
Backed out changeset b55511536c65 (bug 1126230)
Backed out changeset ada76e419aac (bug 1126230)
Backed out changeset 745d659bef49 (bug 1126230)
Backed out changeset 7c303cc4c30b (bug 1126230)
Backed out changeset 8bf708acbad4 (bug 1126230)
Backed out changeset 590404aac357 (bug 1126230)
2015-10-02 13:39:20 +05:30
Xidorn Quan
c8c4f8a076
Bug 1126230 part 3 - Add -moz-top-layer internal CSS property and set it for fullscreen elements. r=dbaron
2015-10-02 16:34:09 +10:00
Daniel Holbert
c2f4e9afd6
Bug 1194480: Only update overflow region (& trigger DLBI) for changes to CSS 'box-shadow' or 'text-shadow', instead of triggering a reflow. r=heycam
2015-10-01 20:05:28 -07:00
Jonathan Kew
4be7576522
Bug 1099557 followup - Put the default setting for control-character visibility behind a runtime pref, and keep it off-by-default on release builds for now. r=dbaron
2015-10-01 12:26:52 +01:00
Jonathan Kew
572ff86a27
Backed out changeset b3937b455406 (bug 1099557) because an incomplete patch was pushed.
2015-10-01 12:19:39 +01:00
Jonathan Kew
f732bfded2
Bug 1099557 followup - Put the default setting for control-character visibility behind a runtime pref, and keep it off-by-default on release builds for now. r=dbaron
2015-10-01 12:13:33 +01:00
Cameron McCormack
bce6e5658b
Bug 1198708 - Part 1: Store exact timing-function type on nsTimingFunction and ComputedTimingFunction. r=birtles
...
Since Keyframe.easing should reflect the {transition,animation}-timing-
function value relevant to each keyframe, we'll need to store on
nsTimingFunction the specific timing function value that was used, and
copy it down into ComputedTimingFunction for
KeyframeEffectReadOnly.getFrames() to access. This includes storing
whether the optional start/end keyword in a steps() function was
specified.
2015-09-29 12:20:13 +10:00
Ehsan Akhgari
e7e5c8cb26
Bug 1208901 - Fix a typo in nsStyleClipPath::nsStyleClipPath; r=heycam
...
Found by Viva64. Seems to have been a copy-paste error.
2015-09-27 20:54:29 -04:00
Daniel Holbert
4cb3a85571
Bug 1198894: Use nsChangeHint_RepaintFrame instead of NS_STYLE_HINT_VISUAL to trigger simple repaints in nsStyleStruct.cpp CalcDifference methods. r=heycam
...
Specifically, this makes us use nsChangeHint_RepaintFrame for changes to font decorations, border-{color,style,radius,image}, color, background-{image,color}, text-decoration-{line,color}, text-overflow
2015-09-21 16:11:51 -07:00
Cameron McCormack
2092fefbc0
Bug 1203766 - Part 1: Generate nsPresArena::ObjectIDs with a preprocessor-included file. r=bzbarsky
2015-09-17 12:08:19 +10:00
Jonathan Kew
a20144d65d
Bug 1202993 - Remove the logical-direction-based keywords for caption-side, and instead interpret the old physical keywords as logical sides. r=dholbert
2015-09-15 22:02:30 +01:00
Jonathan Kew
b77cb4253f
Bug 1099557 - Make -moz-control-character-visibility default to 'visible' rather than 'hidden', so that spurious control characters are rendered as hexboxes. r=dbaron
2015-09-11 16:47:03 +01:00
Mats Palmgren
8975c4aa22
Bug 1151214 part 1 - Remove the optimization to ignore 'align-content' changes for single-line flex containers. It's invalid now that we'll support 'align-content' for other box types (grid). r=dbaron
...
Note that this also fixes a subtle bug: we *should* have returned
nsChangeHint_NeutralChange from CalcDifference when we ignored
the 'align-content' change (not zero). See bug 1176782 comment 14
(and the comments leading up to that) for details.
2015-09-10 21:07:26 +02:00