Commit Graph

86 Commits

Author SHA1 Message Date
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
Wes Kocher
a673c445c3 Backed out changeset 4fa1296bd773 (bug 1104916) for win debug m(oth) permafails CLOSED TREE 2016-02-05 11:42:55 -08:00
Brendan Dahl
76b3e236c4 Bug 1104916 - Implement CSS media query display-mode. r=cam 2016-02-04 13:34:00 +01:00
Daniel Holbert
08a090d7c0 Bug 1239799 part 2: Add support for @media(-webkit-transform-3d) media query, for web compatibility. r=heycam 2016-01-18 09:24:44 -08:00
Daniel Holbert
576f001806 Bug 1239799 part 1: Make check for -webkit-device-pixel-ratio pref more targeted, so we can support other webkit-prefixed media queries. r=heycam 2016-01-18 09:24:16 -08:00
Cameron McCormack
bef1844e92 Bug 1238403 - Fix inconsistent indenting in layout/style/. r=xidorn 2016-01-11 10:28:35 +11:00
Nicholas Nethercote
a0edd1fb5f Bug 1230863 - Remove unused nsPresContext args from many functions. r=roc. 2015-12-06 17:15:53 -08:00
L. David Baron
2571b8bdfe Bug 1224464 patch 3 - Rename KTableValue to KTableEntry now that it is a struct. r=heycam 2015-11-19 18:09:07 -08:00
L. David Baron
75cee4ae72 Bug 1224464 patch 2 - Make nsCSSProps keyword tables be arrays of structs, to represent what they logically are. r=heycam 2015-11-19 18:08:57 -08:00
Daniel Holbert
f2c456dbb0 Bug 1176968 part 3: Add support for "-webkit-device-pixel-ratio" media query, along with its min/max variants (behind a pref). r=heycam 2015-11-09 18:09:40 -08:00
Daniel Holbert
dc02d46a63 Bug 1176968 part 2: Add "requirement flags" field to media query features, and logic for ignoring the feature if requirements aren't met. r=heycam 2015-11-09 18:09:40 -08:00
Nathan Froyd
4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Kathy Brade
d3a1d9ec91 Bug 418986 - Resist fingerprinting by preventing exposure of screen and system info. r=mrbkap, r=heycam 2015-06-07 09:02:00 -04:00
Tim Nguyen
fcd1fc55b1 Bug 1166867 - Support -moz-os-version: windows-win10. r=jimm 2015-05-21 12:16:00 +02:00
Nicholas Nethercote
0247de46d8 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
Josiah Bruner
783cbb1f13 Bug 1021309 - Add "mac-yosemite-theme" CSS system metric. r=mstange 2014-06-05 18:02:46 -04:00
Robert O'Callahan
5016a05a35 Bug 968118. Make nsCSSProps keyword tables be int16_t instead of int32_t for a small space win. r=heycam 2014-02-06 00:10:44 +13:00
Daniel Holbert
227c20388b Bug 936628: Add media query to check for whether we have a color picker backend available. r=jimm 2013-11-10 19:07:59 -08:00
Paul Rouget
6fec9c7b62 Bug 890195 - device-width media queries should use the page width, not the actual device width. r=bz 2013-11-07 14:40:23 +01:00
Ehsan Akhgari
fe4005d016 Bug 923151 - Part 2: Don't #include nsIDocument.h in mozilla/dom/Element.h; r=jst 2013-10-02 16:09:18 -04:00
Ehsan Akhgari
30faed685a Bug 919355 - Part 2: Don't #include nsDeviceContext.h in Units.h; r=roc 2013-09-23 07:55:35 -04:00
Paul Rouget
37189849e5 Backed out changeset 184a0076278b (bug 890195). Almost-perma orange 2013-09-18 17:53:15 +02:00
Paul Rouget
c60e3873e6 Bug 890195 - device-width media queries should use the page width, not the actual device width. r=bz 2013-07-17 05:08:00 +02:00
Ehsan Akhgari
1089e71462 Bug 916610 - Minimize the #includes in layout/style; r=roc 2013-09-15 21:06:52 -04:00
Doug Turner
7767c0773f Bug 906072 - Remove Maemo port. r=romaxa, r=ted, r=johns 2013-08-25 16:56:53 -07:00
Kartikaya Gupta
89c397da39 Bug 840916 - Back out e7d3b0866dd9 from bug 779527 as it is no longer needed. r=mbrubeck 2013-07-15 17:21:16 -04:00
Jim Mathies
3de81e87eb Bug 810399 - Add new css selectors and media queries for windows os versions. r=bz 2013-07-01 11:02:29 -05:00
Ehsan Akhgari
5e1c270167 Bug 882948 follow-up: Also implement the -moz-windows-theme: aero-lite media query 2013-06-13 20:47:19 -04:00
Michael Wu
63cde6a090 Bug 771551 - Add CSS Media Query for physical home buttons, r=heycam 2013-06-05 22:42:02 -04:00
Stephen Pohl
1be15adc9e Bug 636564 - Implement lion style scrollbars on Mac OSX 10.7+; r=roc 2013-05-02 10:58:00 -04:00
Stephen Pohl
fb5e086e62 Bug 678392 - Add support for swipe animation as in Safari. r=smichaud,jaws,felipc 2013-04-09 14:44:01 -05:00
David Zbarsky
47d0f865ea [Bug 847110] bustage fix 2013-03-02 20:20:07 -05:00
David Zbarsky
1c27c4d045 [Bug 847110] Fix up includes in layout/style r=dbaron 2013-03-02 19:31:48 -05:00
Robert Strong
70d4cf7361 Back out Bug 678392 2013-02-08 16:52:12 -08:00
Stephen Pohl
69610af859 Swipe availability check - Bug 678392 - [10.7] Add support for swipe animation as in Safari. r=smichaud 2013-02-08 13:57:28 -08:00
Matthew Noorenberghe
bc23cfab48 Bug 816803 - Add system metric and media query keyword to detect whether the current Windows desktop theme supports Aero Glass. r=jimm,sr=roc 2013-01-16 19:27:16 -08:00
Edwin Flores
b3c80728bc Bug 719286 - Add -moz-is-glyph media feature for setting default values for SVG glyphs in the browser SVG style sheet r=dbaron 2012-09-06 16:58:44 +12:00
Matt Brubeck
64e096cd46 Bug 779527 - Use the physical device resolution for media queries on mobile [r=dbaron] 2012-08-31 13:29:47 -07:00