Commit Graph

22560 Commits

Author SHA1 Message Date
cku
23d67624cd Bug 1401069 - Part 8. Give a detailed comment to explain how to react when hitting this assertion in OpenDocument(). r=fatseng
MozReview-Commit-ID: 74UkMV3ZOWm

--HG--
extra : rebase_source : 5fedf61f8a737ecac5668d372bff48b224859fdb
2017-09-18 23:55:54 +08:00
cku
24298df89b Bug 1401069 - Part 7. Declare GetPageCount as a const member function. r=fatseng
MozReview-Commit-ID: IRM8FikStJi

--HG--
extra : rebase_source : 5eb8658bc684054cc3084372cc5bf491d4db161c
2017-09-18 23:46:44 +08:00
cku
87185c9c9e Bug 1401069 - Part 6. Fine tune ComputeScaleFactor. r=fatseng
Make the implementation of it moew consice.
MozReview-Commit-ID: J7v98HBLhT

--HG--
extra : rebase_source : bc6e55c6cb0833c14eafd18338e79fc1a32c46c1
2017-09-18 23:40:05 +08:00
cku
daf81c865b Bug 1401069 - Part 5. Remove two local variables since we do not need them. r=fatseng
dcWidth and dcHieght are used only once, we do not need to define a local
variable for any of them.
MozReview-Commit-ID: Fw5rHqtUPQN

--HG--
extra : rebase_source : 52b5381319fc6626e7f1ec4111dad70482a092cd
2017-09-18 23:28:08 +08:00
cku
4ba0283028 Bug 1401069 - Part 4. Change argument type from 'const RECT *' to reference type in WindowsEMF::Playback. r=fatseng
MozReview-Commit-ID: 4StsIm9sqeC

--HG--
extra : rebase_source : b1602542ed4478304352457ea5bfa220aae1dac7
2017-09-18 23:25:34 +08:00
cku
cc1dccb273 Bug 1401069 - Part 3. Declare WindowsEMF::GetDC as const member function. r=fatseng
MozReview-Commit-ID: BX7ahnIok2T

--HG--
extra : rebase_source : f245814808a1714895dc7e83e38f357fbe29a168
2017-09-18 23:19:31 +08:00
cku
7a420a808c Bug 1401069 - Part 2. Implement ReleaseAllResource to make WindowsEMF::InitForDrawing reusable. r=fatseng
Currently, WindowsEMF::InitForDrawing can be used once. With the change in this
patch, we can call WindowsEMF::InitForDrawing and Playback/SaveToFile in pair
as many times as we want.

MozReview-Commit-ID: 4fbY4Q6i9v5

--HG--
extra : rebase_source : 4df3fc7d8663d7f552c96204a16d73261bfc9dd7
2017-09-18 23:16:08 +08:00
cku
cbacd9e2bd Bug 1401069 - Part 1. Check the value of mPDFDoc and early return if it's invalid in both RenderPageToDC and DrawPageToFile. r=fatseng
MozReview-Commit-ID: LQ9LTL8ZRKJ

--HG--
extra : rebase_source : c74f3c5f317677cb76aa4cce741c5be76421af13
2017-09-18 23:59:29 +08:00
Louis Chang
b9a5a704b2 Bug 1399723 - Draw a grey background color when event state is active instead of hover. r=mats
MozReview-Commit-ID: CSX6xn1qy19

--HG--
extra : rebase_source : 0f173178586674379b365867fbe626495ff869df
2017-09-21 10:15:15 +08:00
Wes Kocher
a6b8d9e91b Merge inbound to central, a=merge
MozReview-Commit-ID: JpqY5uEi1nf
2017-09-20 17:18:21 -07:00
Brad Werth
fb488ded4b Bug 1401063: Cache remaining gtk window and button colors to eliminate on-demand gtk calls in ::NativeGetColor. r=karlt
MozReview-Commit-ID: HbZqBUG0w7y

--HG--
extra : rebase_source : 0b26c22113c2cda49129006fe933f20719b7a679
2017-09-19 13:00:28 -07:00
Sebastian Hengst
6ba627d8ce Backed out changeset 3844ac09ae6a (bug 1392200) 2017-09-20 18:13:07 +02:00
James Willcox
216f3c6511 Bug 1400878 - Don't show keyboard on Android unless the user caused it r=jchen
MozReview-Commit-ID: KURh08X4Q4U
2017-09-20 14:48:00 -05:00
Stephen A Pohl
b74f81bd13 Bug 1401297: Followup to fix the selector checks in changeset f53d94fca971. r=mstange 2017-09-20 09:26:59 -04:00
Stephen A Pohl
5f098941f0 Bug 1398582: Followup to fix the selector checks in changeset e4ac2e4268c7. r=mstange 2017-09-20 09:26:50 -04:00
Morris Tseng
3f12c82847 Bug 1392200 - Add backface-visibility support for layers-free mode. r=kats
For layers-full mode, we set the backface-visibility to visible because
visibility would be handled by FLB and layers.

MozReview-Commit-ID: CUbeUabfC7K

--HG--
extra : rebase_source : ae88579f3718884bd4ddd89dfc3885bada3f15a4
2017-09-13 11:25:58 +08:00
Wes Kocher
a594331a16 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7VZH3r52Gc7
2017-09-19 14:53:33 -07:00
Wes Kocher
3baa8a7e6e Merge inbound to central, a=merge
MozReview-Commit-ID: 5B5W6AHKcCb
2017-09-19 14:49:11 -07:00
Stephen A Pohl
99fab0adc9 Bug 1401297: Hide native titlebars on macOS 10.13 when exiting native fullscreen. r=mstange 2017-09-19 14:47:50 -04:00
Stephen A Pohl
9b750573b6 Bug 1398582: Prevent drawing titles in title bars on macOS 10.13 when we don't want them. r=mstange 2017-09-19 12:17:05 -04:00
Karl Tomlinson
90ba07bb95 bug 1401052 label GfxInfo files as Graphics BUG_COMPONENT r=jrmuizel
MozReview-Commit-ID: ANeqbmNDSsy

--HG--
extra : rebase_source : 86f37397a5ab7a644edbd42b4027ba4271d939cc
2017-09-19 12:10:50 +12:00
sebastian@ifyouwantblood.de
a0bf5a4eff bug 1400839 use -1 instead of 0 to indicate absent glxtest_pipe fd r=karlt
Englightenment closes fd 0 on child processes and so pipe() can return a zero fd.

MozReview-Commit-ID: 5d9xQXgwgfv

--HG--
extra : rebase_source : c31aa7ce731ba325993f463b79b446ae67c932dd
2017-09-19 11:47:12 +12:00
Wes Kocher
519bb0922b Merge inbound to central, a=merge
MozReview-Commit-ID: EK8iFR1hSRp
2017-09-18 16:21:01 -07:00
Ryan Hunt
5823900855 Bug 1397083 - Don't use CopySurface when drawing theme with nsNativeThemeGTK. r=lsalzman
CopySurface doesn't respect any existing clips that are applied to the draw
target. It doesn't look like nsNativeThemeGTK uses CopySurface normally, but
when OMTP is enabled the draw target is a DrawTargetCapture which can't
LockBits() which causes us to use CopySurface. This can cause a reftest failure.

MozReview-Commit-ID: 1mYMhQB0r3M

--HG--
extra : rebase_source : d2683dee37ce32049d8daeee786cbb06ba624438
extra : amend_source : 59c48b66f733108636d52047a55889ee0c4e2746
2017-09-13 15:03:34 -04:00
Nicholas Nethercote
ebf1cb320b Bug 1400148 - Don't use -1 to represent an unset nsCursor. r=karlt.
Because UBSan complains about casting -1:

> runtime error: load of value 4294967295, which is not a valid value for type 'nsCursor'

--HG--
extra : rebase_source : 037a96700228ea0d427afa7c25c40490c701cdc4
2017-09-15 14:34:37 +10:00
Stephen A Pohl
7081d0c7e8 Backout f89ae3c450ce (bug 1324892) for busting Thunderbird. r=me 2017-09-16 00:09:31 -04:00
Stephen A Pohl
cbdf6d6f74 Bug 1398582: Prevent drawing titles in title bars on macOS 10.13 when we don't want them. r=mstange 2017-09-15 11:05:11 -04:00
Sebastian Hengst
ec66bbd3e1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4dRrVdftJVy
2017-09-15 11:05:11 +02:00
Randall Barker
0cc6f26617 Bug 1392705 - part 3: Call nsBaseWidget::DestroyLayerManager() in nsWindow::Destroy to ensure IPC is not shutdown in the destructor for Android r=jchen
Due to the indeterminate nature of Gecko shutdown, the ref count of the
nsWindow on Android would sometimes go to zero before the XPCOM shutdown
observer was called in nsBaseWindow which is where the compositor thread
IPC is shutdown. If nsBaseWindow::Shutdown does not get called, then the
compositor thread IPC is shutdown in the nsBaseWindow destructor.
Unfortunately while the nsWindow is being deleted, it can be accessed in
the compositor thread and cause a crash in
LayerManagerComposite::RenderToPresentationSurface.
Calling nsBaseWidget::DestroyLayerManager() in nsWindow::Destroy()
ensures it gets called before the destructor gets invoked typically in
the Destroy() call.

MozReview-Commit-ID: KCv8SCmEjnb

--HG--
extra : rebase_source : f48fe01b15ff7e2e8763628dd22a2c926d051e9d
2017-09-05 13:00:06 -07:00
Markus Stange
0704012f36 Bug 1387594 - Add system colors for use in conjunction with -moz-font-smoothing-background-color and vibrant -moz-appearances. r=dbaron
MozReview-Commit-ID: IxXZwONxy41
2017-09-14 23:09:48 +02:00
Markus Stange
b5fdbfc62c Bug 1387594 - Stop getting the font smoothing background color from the theme. r=mattwoodrow
MozReview-Commit-ID: 2r1B8SvEkEl
2017-09-14 23:09:47 +02:00
Louis Chang
0228a3c058 Bug 1399776 - Draw a default background-color: white for checkbox/radio on Android. r=mats
MozReview-Commit-ID: HXUjbHtxLDj

--HG--
extra : rebase_source : 135659570f2d2bc25ed83e196a38936a64ab7394
2017-09-18 15:35:40 +08:00
Makoto Kato
17357e00a7 Bug 1397986 - Save to PDF doesn't work with content sandbox. r=haik
Due to content sandbox, NSPrintJobSavingURL will throws an exception on content process.  So we don't use NSPrintJobSavingURL on content process and print.print_via_parent=true.

Also, even if chrome process, SetToFileName should store file name to mToFileName.  Because SetToFileName uses mToFileName.

MozReview-Commit-ID: J7vlOG0gyGP

--HG--
extra : rebase_source : dfda2f625ca9dabefe131e40424609a2b921d430
2017-09-10 17:49:30 +09:00
Sebastian Hengst
006a58c35d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2iVDKexRjxu
2017-09-13 23:58:43 +02:00
Sebastian Hengst
7dd2b068b5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Andrea Marchesini
57228a9b15 Bug 1359017 - onmessageerror for WindowEventHandlers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Sebastian Hengst
66969c6b7b Backed out changeset 7b45c1aebf7f (bug 1359017) 2017-09-13 08:56:13 +02:00
Andrea Marchesini
68fed142b9 Bug 1359017 - onmessageerror for WindowEventHandlers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Mantaroh Yoshinaga
355019fdec Bug 1399336 - Memory leak of char16_t internal variables of widget/nsPrintOptionsImpl.cpp r=m_kato
A nsPrintOptionsImpl has char16_t internal variables, and gecko will not release
these allocated variable. So we should use nsString instead of char16_t.

MozReview-Commit-ID: 4ZMtUKoVCcR

--HG--
extra : rebase_source : 1720483301b900f8135c3d5f8f32d7051191aa8f
2017-09-13 14:23:59 +09:00
Jean-Yves Avenard
21b23b41d6 Bug 1352016 - P2. Allow nsIGfxInfo service in GPU process on Windows. r=dvander
We'll need it to determine if NV12 D3D11 surface are operationals.

MozReview-Commit-ID: FvsxGhnv7H1

--HG--
extra : rebase_source : 4580819b19aa36d7d26ee7d05934eaaddd17206a
2017-09-13 16:35:14 +02:00
Sebastian Hengst
f155e6119f Backed out changeset e28d6869f6a0 (bug 1359017) 2017-09-12 14:16:31 +02:00
Andrea Marchesini
92ba78b8c0 Bug 1359017 - onmessageerror for WindowEventHandlers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-12 11:57:26 +02:00
Masayuki Nakano
4b414a44a2 Bug 1395876 - Initialize TSF modules after we create first normal window r=m_kato
Currently, we initialize TSF modules when there is only message window (this
started from bug 1341915).  At this time, QQ Input (Simplified Chinese TIP)
fails to initialize itself.

Therefore, we should put off to initialize TSF modules after creating first
normal window.  Then, initialize its IMC and input context for the window.

IMEHandler::InitInputContext() should be called when each normal window is
created.  Therefore, calling Initialize() from it can guarantee there is
at least one normal window when Initialize() is called.

MozReview-Commit-ID: IfR4y3pYv6J

--HG--
extra : rebase_source : 3f36acfa65567f140eea9c7fc12d6268aadbd5ef
2017-09-08 16:26:54 +09:00
Wes Kocher
2a30786cad Merge inbound to central, a=merge
MozReview-Commit-ID: 4FEkd1x2GD
2017-09-08 13:36:31 -07:00
Jim Mathies
2a7901349f Bug 1387507 - Remove a11y e10s checks and preferences. r=felipe 2017-09-08 09:31:06 -05:00
Sebastian Hengst
e52b8eb6e4 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: E6LQYNHgmiv
2017-09-08 10:53:26 +02:00
Karl Tomlinson
00beb33110 bug 1396722 remove no-op ReleaseStyleContext() r=stransky+263117
MozReview-Commit-ID: DgKM0wrStrk

--HG--
extra : rebase_source : a26fdc5e5d6c63e21bb98a19ee7bf58042f9b3ba
2017-09-05 09:16:01 +12:00
Markus Stange
d652526dcd Bug 1391689 - Simplify titlebar image update logic. r=mattwoodrow
MozReview-Commit-ID: 4HPBNazSHDY

--HG--
extra : rebase_source : 35e14b0090956f46c5420b32c92766b9a39ceb84
2017-09-07 15:21:01 +02:00
Markus Stange
7e9246990d Bug 1391689 - Pass the correct origin when drawing the titlebar overlay with webrender. r=mattwoodrow
MozReview-Commit-ID: DdMjUFr0LR9

--HG--
extra : rebase_source : b6014d729a1c3140a8c4124d3f56091b1a674342
2017-09-07 15:15:45 +02:00
Sebastian Hengst
92ec846a75 merge mozilla-central to autoland. r=merge a=merge 2017-09-08 00:05:35 +02:00