Jeremy Chen
38e7820d15
Bug 1347819 - change nsFont::languageOverride to store uint32_t directly. r=jfkthame
...
Since font-language-override can only have a single three-letter tag, and it is
eventually converted to uint32_t while creating gfxFontStyle, we should be able
to move the conversion ahead, to an earlier stage.
In this patch, we move the ParseFontLanguageOverride to nsRuleNode, so we could
do the nsString-to-uint32_t conversion during computing time.
MozReview-Commit-ID: LA4Bv3wV7K
2017-03-23 21:59:55 +08:00
Cameron McCormack
0344da46e0
Bug 1330843 - Allow JS to create NAC pseudo-elements. r=bholley
...
MozReview-Commit-ID: 2aBPoCOsT6R
2017-03-17 15:30:34 +08:00
cku
14c0f9ceb9
Bug 1340044 - Part 2. Rename value in StyleGeometryBox. r=heycam
...
This change is to use gecko_enum_prefix in helpers.mako.rs, so that we do not
need to manually write code for nsStyleDisplay::mTransformBox.
MozReview-Commit-ID: 7UAL0iUcSIO
2017-03-16 15:18:10 +08:00
Xidorn Quan
eeb451c4a2
Bug 1345804 part 3 - Change will-change to store nsIAtom rather than nsString. r=heycam
...
MozReview-Commit-ID: 5ISVZwKw6LI
2017-03-10 12:26:53 +11:00
cku
07333a0c53
Bug 1345739 - Implement nsStyleImageRequest::GetImageURI. r=heycam
...
MozReview-Commit-ID: Jqhio1RaqG1
2017-03-09 13:03:32 +08:00
Boris Chiou
c7d71d646d
Bug 1248340 - Part 4: Implement Frames in the style system. r=dholbert
...
Use eCSSUnit_Function to store the frames timing function. Also, add one more
css keyword: frames.
The following changes are included in this:
1. Parser changes.
2. Serialization.
3. Computation in nsRuleNode.
4. Invalid and other values in property_database.js
MozReview-Commit-ID: 887QcXHQ2pU
2017-02-24 14:50:08 +08:00
Boris Chiou
2e08ec42b1
Bug 1248340 - Part 1: Add the type of Frames in nsTimingFunction. r=birtles
...
MozReview-Commit-ID: GPn8D9gwjqa
2017-02-24 14:34:08 +08:00
Neerja Pancholi
5fddb99f6b
Bug 1339298 - Add boilerplate code for CSS3 multicol column-span parsing and define pref 'layout.css.column-span.enabled' to toggle it. r=dholbert
...
MozReview-Commit-ID: 6aSlRhcKm8i
2017-02-13 16:57:33 -08:00
jeremychen@mozilla.com
8e500e1044
Bug 276079 - parse and compute CSS text-justify property. r=xidorn
...
MozReview-Commit-ID: K3bh0H2SPnE
2017-03-01 20:58:25 +08:00
Neerja Pancholi
55ce6ad5a8
Bug 1339619 - Refactor parsing code for '-moz-text-size-adjust' to use the (more conventional) keyword table approach to calculate computed style. r=dholbert
...
MozReview-Commit-ID: 2mawqnlUh8t
2017-02-16 13:27:16 -08:00
cku
1819876e04
Bug 1336905 - Part 1. Remove StyleShapeSource's template argument. r=heycam,TYLin
...
MozReview-Commit-ID: FHTwGyXHsce
2017-02-21 23:26:17 +08:00
Xidorn Quan
57b3c7d52d
Bug 1339394 - Don't serialize transparent color to transparent keyword when not necessary. r=heycam,jaws
...
MozReview-Commit-ID: 59cmaCoFJMR
2017-02-16 10:26:13 +11:00
Cameron McCormack
87f3ad6dfb
Bug 1297899 - Part 6: Move RestyleManagerHandle functionality into RestyleManager. r=bholley
...
MozReview-Commit-ID: 7lsti0bGzNr
2017-02-13 11:21:33 +08:00
Cameron McCormack
34c943ee6e
Bug 1297899 - Part 3: Rename RestyleManager to GeckoRestyleManager and RestyleManagerBase to RestyleManager. r=bholley
...
MozReview-Commit-ID: fFTZKwmGJm
2017-02-13 11:21:32 +08:00
Cameron McCormack
61f5edfdb9
Bug 1297899 - Part 1: Rename RestyleManager.{h,cpp} to GeckoRestyleManager.{h,cpp}. r=bholley
...
MozReview-Commit-ID: 1v0ufuGFtiD
2017-02-13 11:21:30 +08:00
Iris Hsiao
97929fe90a
Backed out changeset ae26b4e4d59b (bug 1339394) for developer's request
2017-02-15 13:10:35 +08:00
Xidorn Quan
5444bad47a
Bug 1339394 - Don't serialize transparent color to transparent keyword when not necessary. r=heycam
...
MozReview-Commit-ID: 59cmaCoFJMR
2017-02-14 22:43:32 +11:00
Xidorn Quan
4cdc3377d9
Bug 1339341- Downgrade several stylo errors to warnings. r=heycam
...
MozReview-Commit-ID: 2Sa8dS8uSo5
2017-02-14 18:26:10 +11:00
Carsten "Tomcat" Book
1bff0b1adf
Backed out changeset fb3c04effbd1 (bug 1336905) for bustage in stylo builds
2017-02-14 11:07:17 +01:00
cku
b2b713cfd2
Bug 1336905 - Part 1. Remove StyleShapeSource's template argument. r=heycam,TYLin
...
MozReview-Commit-ID: FHTwGyXHsce
2017-02-06 15:50:22 +08:00
Daniel Holbert
6153419a43
Bug 1336223 part 3: Add a missing #include to nsComputedDOMStyle.cpp. r=xidorn
...
MozReview-Commit-ID: ERFagYJrxeA
2017-02-02 15:18:38 -08:00
Boris Zbarsky
33b60b6ff4
Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8
2017-01-24 20:38:58 -05:00
Hiroyuki Ikezoe
37e7acf754
Bug 1330190 - Part 4: Resolve styles without animations in case of GetStyleContextForElementWithoutAnimation(). r=heycam
...
Now we skip nsAnimationManager::UpdateAnimations() and
EffectCompositor::UpdateEffectProperties() in case of
GetStyleContextForElementWithoutAnimation().
MozReview-Commit-ID: 4rF6n3XtMQq
2017-01-16 17:41:20 +09:00
Hiroyuki Ikezoe
6f69d969b2
Bug 1330190 - Part 1: Add nsComputedDOMStyle::GetStyleContextForElementWithoutAnimation. r=heycam
...
We need another variant of GetStyleContextForElement() that does not consider
animation rules at all to get the base styles of the target element (i.e.
styles without animations).
In subsequent patches we also skip nsAnimationManager::UpdateAnimations() and
EffectCompositor::UpdateEffectProperties() to avoid (indirect) recursive calls
for resolving style of the same element.
MozReview-Commit-ID: G5olgXIMtvY
2017-01-16 16:57:09 +09:00
Bobby Holley
0aaca3b258
Bug 1325734 - Simplify ElementData and eliminate the concept of consuming styles. r=emilio
2017-01-09 11:50:16 -08:00
Cameron McCormack
b0bc3dd2b1
Bug 1315155 - Part 1: Encapsulate nsStyleContentData. r=xidorn
...
MozReview-Commit-ID: LfEMxyM5meF
2016-10-20 10:22:46 +08:00
Iris Hsiao
273fb0f3c2
merge autoland to mozilla-central a=merge
2017-01-06 11:06:17 -05:00
Ting-Yu Lin
9eb2a46c79
Bug 1320014 Part 11 - Convert NS_FULL_TO_HALF_CORNER to a constexpr function. r=mats
...
Because the new function checks types, we need to change the fullCorner type
in nsComputedDOMStyle::GetEllipseRadii() and
StyleAnimationValue::ExtractComputedValue() from uint8_t to |Corner| to fix
build error.
MozReview-Commit-ID: 5NuFE3yA2QD
2017-01-05 14:59:17 +08:00
Ting-Yu Lin
9feaa919bb
Bug 1320014 Part 6 - Remove #define NS_CORNER_[TOP_LEFT/TOP_RIGHT/BOTTOM_RIGHT/BOTTOM_LEFT] r=mats
...
MozReview-Commit-ID: ERAwdxKZPf7
2017-01-04 18:15:30 +08:00
Cameron McCormack
5f9911da79
Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
...
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Olli Pettay
3898f7d882
Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
2017-01-03 21:47:55 +02:00
Daniel Holbert
d7f3526208
Bug 1326574: Add some needed includes/forward-declarations in layout/style, to preemptively fix unified bustage. r=xidorn
...
MozReview-Commit-ID: 2vM3aiR87T3
2016-12-31 16:10:45 -08:00
Xidorn Quan
8de7838e67
Bug 1326209 part 2 - Change background-color to use complex color. r=dholbert
...
MozReview-Commit-ID: 1n3TC3CVY7U
2016-12-30 02:03:29 +11:00
Bobby Holley
fa4099d657
Bug 1324627 - Add a special, explicit path for lazy style resolution and use it for GetComputedStyle. r=heycam
2016-12-28 15:49:12 +08:00
Phil Ringnalda
091c8b0527
Backed out changeset 5986d8880ad1 (bug 1324627) for a variety of computed style failures
...
MozReview-Commit-ID: AMTshx423hQ
2016-12-27 21:34:45 -08:00
Phil Ringnalda
9815c1cbe7
Merge m-c to m-i
...
MozReview-Commit-ID: 28f3Y4WDMFL
2016-12-27 20:38:00 -08:00
Bobby Holley
5245f35145
Bug 1324627 - Add a special, explicit path for lazy style resolution and use it for GetComputedStyle. r=heycam
...
MozReview-Commit-ID: ECnoeHYkpT
2016-12-28 11:33:18 +08:00
cku
b00f9ec88d
Bug 1311270 - Part 3. Replace {bg|mask}-origin/{bg|mask}-clip constants by StyleGeometryBox.
...
MozReview-Commit-ID: DYokhDa9fFQ
2016-11-22 15:30:01 +08:00
Ethan Lin
a4566c4e99
Bug 1303623 - Part2. Style structure changes. r=heycam
...
MozReview-Commit-ID: Lkdd5nAQRwG
2016-10-19 15:48:47 +08:00
Xidorn Quan
7749bec582
Bug 1063162 part 2 - Implement caret-color property. r=dholbert
...
MozReview-Commit-ID: DH7CX1d477R
2016-12-22 11:04:15 +11:00
Jonathan Kew
458d6a28c3
Bug 1321022 pt 4 - Implement CSS parsing of the font-variations-setting property, storing the value into nsFont. r=dholbert
2016-12-03 12:18:36 +00:00
Jeremy Chen
bf66a904c1
Bug 1320239 - use nscoord instead of nsStyleCoord for -webkit-text-stroke-width. r=heycam
...
MozReview-Commit-ID: 94fL7YgZqCl
2016-11-29 20:08:08 +08:00
Thomas Wisniewski
11bbab08f4
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
522acb2d7f
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
Thomas Wisniewski
1b2eecfd95
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
Bobby Holley
3775205e64
Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal. r=emilio
...
MozReview-Commit-ID: 7wH5XcILVmX
2016-11-25 10:06:39 -08:00
Ting-Yu Lin
7e10b6ab51
Bug 1317588 Part 3 - Remove #define NS_SIDE_TOP/RIGHT/BOTTOM/LEFT. r=mats
...
This patch was written with the help of the following script. Also, manually
add mozilla qualifier to the enum values in nsStyleCoord.h, gfxRect.h, and
Types.h to make it build.
function rename() {
find .\
-type f\
! -path "./obj*"\
! -path "./.git"\
! -path "./.hg"\
\( -name "*.cpp" -or\
-name "*.h" \)\
-exec sed -i -e "s/$1/$2/g" "{}" \;
}
rename "NS_SIDE_TOP" "eSideTop"
rename "NS_SIDE_RIGHT" "eSideRight"
rename "NS_SIDE_BOTTOM" "eSideBottom"
rename "NS_SIDE_LEFT" "eSideLeft"
MozReview-Commit-ID: 9T0ORsqM6nP
2016-11-18 18:12:25 +08:00
Ting-Yu Lin
03d0c3c4c4
Bug 1317588 Part 2 - Remove mozilla::css::Side typedef. r=mats
...
This patch is written with the help of the following script.
function rename() {
find .\
-type f\
! -path "./obj*"\
! -path "./.git"\
! -path "./.hg"\
\( -name "*.cpp" -or\
-name "*.h" \)\
-exec sed -i -e "s/$1/$2/g" "{}" \;
}
rename "css::Side" "Side"
MozReview-Commit-ID: DPV6vivpPUp
2016-11-18 16:28:38 +08:00
Cameron McCormack
317693f39e
Bug 1310560 - Part 1: Make cursor use nsStyleImageRequest for url() value storage. r=xidorn
...
MozReview-Commit-ID: JU76TS3kxbz
2016-11-21 14:34:11 +08:00
Brad Werth
efc46abdc4
Bug 1304636 Part 2: Make GetComputedStyle report 'auto' for min-height:auto flex/grid items. r=dholbert
...
MozReview-Commit-ID: BmMvny3HePe
2016-11-17 15:41:49 -08:00