Stephen A Pohl
4ea6dbca15
Bug 1466335: Automatically switch to the appropriate Firefox theme based on the macOS dark mode system preference. r=dao,mstange
2018-06-27 13:59:21 -04:00
Emilio Cobos Álvarez
20a1eba1f4
Bug 1468854: Restrict -moz-is-resource-document to UA and chrome stylesheets. r=mats
...
MozReview-Commit-ID: 3vpNtgdy0yl
2018-06-14 15:10:29 -07:00
Nazım Can Altınova
09ea267978
Bug 1451289 - Part 8: Merge ServoSupportsRule and CSSSupportsRule r=emilio
...
MozReview-Commit-ID: HX6NJNGJi0p
2018-06-05 15:17:08 +02:00
Xidorn Quan
03f92561ac
Bug 1448759 part 1 - Make KTableEntry an independent type. r=heycam
...
MozReview-Commit-ID: oZfJAigThN
2018-04-29 21:17:26 +10:00
Emilio Cobos Álvarez
b1a35fbef7
Bug 1447358: Unifdef the old style system code. r=jwatt
...
Summary:
This has been automatically generated using:
http://dotat.at/prog/unifdef/
And:
find $OBJDIR -type f -name '*.h' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
find $OBJDIR -type f -name '*.cpp' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
MozReview-Commit-ID: I4NdKqbMXzJ
Reviewers: jwatt
Bug #: 1447358
Differential Revision: https://phabricator.services.mozilla.com/D779
2018-03-21 10:20:34 +01:00
Emilio Cobos Álvarez
7555195ee6
Bug 1443205: followup: Fix a typo from the previous patch. r=me
...
MozReview-Commit-ID: Iv3sGbJUin8
2018-03-06 11:04:55 +01:00
Emilio Cobos Álvarez
e0d699fbf8
Bug 1443205: Convert media feature values to enum classes. r=xidorn
...
Reviewers: xidorn
Bug #: 1443205
Differential Revision: https://phabricator.services.mozilla.com/D677
MozReview-Commit-ID: E0zQHBv0Ysc
2018-03-06 10:04:08 +01:00
Hiroyuki Ikezoe
b1da8534e8
Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
...
It would be convenient to get nsPresContext from nsIDocument.
MozReview-Commit-ID: Ei6V3UE8XGr
2018-02-21 07:00:10 +09:00
Xidorn Quan
62c1fc529e
Bug 1435944 part 2 - Use atom for identifier media features. r=emilio
...
MozReview-Commit-ID: 8NHLNySwcSf
2018-02-08 13:50:42 +11:00
Cameron McCormack
34288f7f48
Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn
...
MozReview-Commit-ID: CIHyPdF7Exl
2018-02-01 15:04:04 +11:00
Emilio Cobos Álvarez
0f8bb89e8d
Bug 1434215: Simplify some ResistFingerprinting callers in nsMediaFeatures. r=xidorn
...
The docshell version just redirects to the document one, so no need to
ping-pong.
MozReview-Commit-ID: AggEoLubCIF
2018-01-30 11:05:32 +01:00
Emilio Cobos Álvarez
8c03fee402
Bug 1430608: Make nsMediaFeatures work with a document, not a pres context. r=heycam
...
Returning a zero-sized viewport in the case there's no shell / pres context.
For now, no other change yet. After this we can start tweaking the ShadowRoot
Stylist setup, and even try to return computed styles without a document \o/.
MozReview-Commit-ID: 3cT2PKQISri
2018-01-17 21:51:47 +01:00
Cameron McCormack
d0d7e8523c
Bug 1418222 - Move system metrics handling to nsMediaFeatures. r=TYLin
...
MozReview-Commit-ID: 25yWc29Wt4R
2017-11-17 15:35:26 +08:00
Martin Stransky
2d824f300d
Bug 1413166 - Export gtk_csd* atoms as media features, r=bz
...
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com >
MozReview-Commit-ID: 26IV2A3vZAB
2017-10-31 14:29:17 +01:00
Attila Craciun
789d2282b7
Backed out 5 changesets (bug 1413166) for failing valgrind-test at Conditional jump or move depends on uninitialised value(s) at nsCSSRuleProcessor::InitSystemMetrics / InitSystemMetrics / nsCSSRuleProcessor::HasSystemMetric / GetSystemMetric r=backout on a CLOSED TREE.
...
Backed out changeset b39bf4bf8127 (bug 1413166)
Backed out changeset e1ef2adcc815 (bug 1413166)
Backed out changeset 16fd21f5ad8c (bug 1413166)
Backed out changeset 9e5f5924dad8 (bug 1413166)
Backed out changeset 3b8671ab0719 (bug 1413166)
2017-11-03 15:55:56 +02:00
Martin Stransky
9ccc6e09a9
Bug 1413166 - Export gtk_csd* atoms as media features, r=bz
...
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com >
MozReview-Commit-ID: 26IV2A3vZAB
2017-10-31 14:29:17 +01:00
Emilio Cobos Álvarez
2b7fff58bb
Bug 1410074: Restrict system metric stuff in content pages. r=xidorn
...
MozReview-Commit-ID: 6rmMQfr8fzf
2017-10-19 16:23:45 +02:00
Ryan VanderMeulen
1c9d7c09d6
Backed out 3 changesets (bug 1410074) for Windows reftest failures.
...
Backed out changeset 5d54875788e3 (bug 1410074)
Backed out changeset 4d771e18c365 (bug 1410074)
Backed out changeset d045057cdf68 (bug 1410074)
2017-10-25 13:31:15 -04:00
Emilio Cobos Álvarez
689087d283
Bug 1410074: Restrict system metric stuff in content pages. r=xidorn
...
MozReview-Commit-ID: 6rmMQfr8fzf
2017-10-25 16:05:03 +02:00
Emilio Cobos Álvarez
adc492bd14
Bug 1408702: Don't honor privacy.resistFingerprinting for media features that aren't accessible to content pages. r=xidorn
...
This is kind of a band-aid because not all the media features chrome code uses
happen to be banned from content pages. But I'll change that soon.
Meanwhile this fixes scrollbars and such.
MozReview-Commit-ID: IVHljzpxc2z
2017-10-19 15:06:38 +02:00
Emilio Cobos Álvarez
89e73a8d09
Bug 1408839: Hide some moz-scrollbar media features in content docs. r=xidorn
...
MozReview-Commit-ID: 4I1697PAIy0
2017-10-16 09:24:24 +02:00
Emilio Cobos Álvarez
c19a40c163
Bug 1408838: Remove -moz-physical-home-button system metric. r=xidorn
...
MozReview-Commit-ID: A7nZdj6GQtM
2017-10-16 08:57:59 +02:00
Emilio Cobos Álvarez
41b553596d
Bug 1406631: Remove the color-picker-available system metric. r=xidorn
...
All our widgets support it with a constant true.
MozReview-Commit-ID: JMEItUsxYWq
2017-10-07 14:06:44 +02:00
Nicholas Nethercote
7dbfdaf890
Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
...
(Path is actually r=froydnj.)
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
MozReview-Commit-ID: 91U22X2NydP
2017-10-03 09:05:19 +11:00
Sebastian Hengst
31ab915b94
Backed out changeset f70d6fcdb760 (bug 1406631) for failing color related reftests like layout/reftests/writing-mode/ua-style-sheet-input-color-1.html on Android. r=backout
2017-10-07 20:08:12 +02:00
Emilio Cobos Álvarez
ac4350b60d
Bug 1406631: Remove the color-picker-available system metric. r=xidorn
...
All our widgets support it with a constant true.
MozReview-Commit-ID: JMEItUsxYWq
2017-10-07 14:06:44 +02:00
Phil Ringnalda
7672a7540d
Backed out 9 changesets (bug 1396066) for Windows reftest failures
...
CLOSED TREE
Backed out changeset e41f9295ee00 (bug 1396066)
Backed out changeset 7a22efa8df6b (bug 1396066)
Backed out changeset ed95eea7105c (bug 1396066)
Backed out changeset 635746c88630 (bug 1396066)
Backed out changeset 5b1997aeaead (bug 1396066)
Backed out changeset 19c9ea492f5e (bug 1396066)
Backed out changeset b9d8e4588584 (bug 1396066)
Backed out changeset 87b44ea10407 (bug 1396066)
Backed out changeset e5b9aed44133 (bug 1396066)
MozReview-Commit-ID: K9q3MfPBc5E
2017-10-06 20:48:23 -07:00
Emilio Cobos Álvarez
92620e3233
Bug 1396066: Remove -moz-physical-home-button. r=xidorn
...
MozReview-Commit-ID: IaXLKNuHomI
2017-10-06 14:34:59 +02:00
Emilio Cobos Álvarez
955709a826
Bug 1396066: Restrict -moz-is-glyph to UA and chrome only. r=xidorn
...
MozReview-Commit-ID: A2Jiw8KtJSM
2017-10-06 14:34:58 +02:00
Emilio Cobos Álvarez
c381074e54
Bug 1396066: Restrict -moz-windows-theme and -moz-os-version to UA and chrome only. r=xidorn
...
MozReview-Commit-ID: 9iEhkcZb52C
2017-10-06 14:34:57 +02:00
Emilio Cobos Álvarez
96a89c5b47
Bug 1396066: Restrict system-metric media features to UA and chrome sheets only. r=xidorn
...
MozReview-Commit-ID: 38jRV6mPbE3
2017-10-06 14:34:56 +02:00
Brad Werth
7cdf2f04b7
Bug 1376931 Part 3: Change Gecko media queries of resolution to compare in dppx units without unit conversion. r=heycam
...
MozReview-Commit-ID: DPdz1Tmv24R
2017-09-27 16:53:27 -07:00
Sebastian Hengst
eb1c9f75c2
Backed out changeset 61387758d1c4 (bug 1376931)
2017-10-05 00:15:02 +02:00
Brad Werth
332151901f
Bug 1376931 Part 3: Change Gecko media queries of resolution to compare in dppx units without unit conversion. r=heycam
...
MozReview-Commit-ID: DPdz1Tmv24R
2017-09-27 16:53:27 -07:00
James Willcox
dbe55d2755
Bug 1369815 - Add display mode to nsIDocShell and use it for media queries r=heycam
...
MozReview-Commit-ID: EVT0fTk6GfC
2017-08-22 09:08:39 -05:00
Dão Gottwald
e69ef6bb0e
Bug 1379938 - Rename the -moz-windows-accent-color-applies media query and make -moz-win-accentcolor available without it. r=jimm
...
MozReview-Commit-ID: 9zMr9JwkloF
2017-07-19 16:38:49 +02:00
Dão Gottwald
b2dfcfcfdd
Backed out changeset 5a5d8de65b70 (bug 1379938) on CLOSED TREE
2017-07-13 23:16:12 +02:00
Dão Gottwald
24595aac7e
Bug 1379938 - Rename the -moz-windows-accent-color-applies media query and make -moz-win-accentcolor available without it. r=jimm
...
MozReview-Commit-ID: BkDrm6KtiP3
2017-07-13 11:08:27 +02:00
Jonathan Watt
bb2be112b4
Bug 1344917, part 1 - Add a '-moz-windows-accent-color-applies' media query. r=heycam
...
The '-moz-windows-accent-color-applies' media query matches when the Windows 10
accent color should be used as the background of the title bar.
MozReview-Commit-ID: GM7nZij6MhQ
2017-06-08 14:49:21 +01:00
Olli Pettay
ef85f4fd4c
Bug 1323777, make GetDisplayMode more null-safe, r=bdahl
2017-01-25 23:32:50 +02:00
Emilio Cobos Álvarez
e7852e3a93
Bug 1331581: Clean up nsMediaFeatureValueGetter. r=heycam
...
MozReview-Commit-ID: DlmGk2JSJ1l
2017-01-19 12:55:18 +01:00
Nicholas Nethercote
8b2d264e0f
Bug 1325503 - Remove Windows {XP, Server 2003, Vista} support from widget/. r=jimm.
...
I did my best to remove as much stuff as possible in this patch. The starting
point was to remove all the IsVistaOrLater() and IsWin7OrLater() calls, but I
also grepped for various strings and found some other removable stuff that way.
I may have still missed some things.
Notable things done by this patch.
- It removes numerous blocklist entries.
- It removes CanComputeVirtualKeyCodeFromScanCode(), because it's always true
now.
- It removes ShowXP{Folder,File}Picker(), even though these were available as
fallbacks on Vista+. The "when platform is built without the longhorn SDK"
condition in the comment above nsFilePicker::ShowXPFolderPicker() sounds like
it won't ever happen any more.
- It removes the config.trim_on_minimize preference. This requires adding a
bool sHaveInitializedPrefs variable; previously the lack of pref
initialization was indicated by the tri-state sTrimOnMinimize variable having
the value 2.
Notable things *not* done by this patch.
- ClearThemeRegion() still exists. The comment suggests that it is XP/Vista
only, but the code suggests otherwise. jimm thinks the comment is wrong.
- The comment in WinWakeLockListener::Callback() suggests that the StartTimer()
call is no longer needed to block the screen saver. I'm uncertain about this
and so I think it's best left to a follow-up.
2016-12-23 13:13:31 +11:00
Daniel Holbert
e73b560488
Bug 1321495 part 3: Add needed #includes to various .cpp files in layout/style, to preemptively fix unified-build bustage. r=TYLin
...
MozReview-Commit-ID: GEjKZqc06FO
2016-12-01 10:40:04 -08:00
Jonathan Kingston
80b9bef57d
Bug 1302157 - Remove images-in-menu and images-in-button code (& associated icons) since it's deprecated in GTK. r=bz,dholbert
...
MozReview-Commit-ID: IIj8PvgdaRp
2016-09-29 00:22:32 +01:00
Xidorn Quan
7d6c4129ab
Bug 1304302 part 10 - Replace all uses of StyleSheetHandle. r=heycam
...
This commit is generated by the following commands with some minor
manual adjustment:
find . \( -name '*.h' -or -name '*.cpp' \) -not -path './layout/style/StyleSheet*' -exec sed -i -b \
-e '/^\(#include\|using\)/s/StyleSheetHandle/StyleSheet/g' \
-e 's/\(mozilla::\)\?StyleSheetHandle::RefPtr/RefPtr<\1StyleSheet>/g' \
-e 's/StyleSheetHandle()/nullptr/g' \
-e 's/->AsStyleSheet()//g' \
-e 's/StyleSheetHandle/StyleSheet*/g' {} +
sed -i -b 's/sheet->AsVoidPtr()/sheet.get()/' layout/style/Loader.cpp
sed -i -b 's/AsHandle()/this/' layout/style/StyleSheet.cpp
MozReview-Commit-ID: 7abdvlKHukd
2016-09-26 22:03:25 +10:00
Thomas Wisniewski
7e0d399ac0
Bug 1302937 - Remove -moz-mac-lion-theme. r=mstange
2016-09-16 14:42:19 -04:00
Wei-Cheng Pan
45e1140490
Bug 1259641 - Do not force reflow for all tabs when size mode changed. r=smaug
...
MozReview-Commit-ID: GoTCM60Hmlf
2016-04-20 11:41:42 +08:00
Brendan Dahl
a193c3220e
Bug 1104916 - Implement CSS media query display-mode. r=cam
2016-02-23 17:10:00 +01:00
Cameron McCormack
c0e9a631c2
Bug 1244074 - Part 4: Use StyleSheetHandle instead of concrete style sheet class in most places. r=dholbert
2016-02-24 18:01:12 +11:00
Cameron McCormack
bb3d0d65b9
Bug 1244074 - Part 3: Add skeleton ServoStyleSheet and a StyleSheetHandle smart pointer. r=dholbert
2016-02-24 18:01:11 +11:00