Граф коммитов

22062 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book 435cf4602a merge mozilla-inbound to mozilla-central a=merge 2017-06-12 13:16:36 +02:00
sotaro 4929035c77 Bug 1368882 - Prevent ClientSize becomes minus value r=jrmuizel 2017-06-12 12:44:49 +09:00
Masayuki Nakano ec9ae17b0c Bug 1368554 ContentCacheInParent::mPendingCompositionCount should be decreased when TextCompositin which has dispatched composition events to corresponding remote process r=m_kato
ContentCacheInParent::mPendingCompositionCount is now managed with composition events which TabParent received. However, TextComposition doesn't dispatch composition events after coming request to commit active composition.  Therefore, composition is committed forcibly in a remote process over 255 times, the main process crashes.

It's the safest way to use TextComposition to manage ContentCacheInParent::mPendingCompositionCount.

MozReview-Commit-ID: DEhzYcK1zcW

--HG--
extra : rebase_source : a47891b1d620bbe4e380e73134ec6da5d21f4ea9
2017-06-10 02:42:16 +09:00
Wei-Cheng Pan fafefc69a1 Bug 1354143 - Commit jump list on lazy idle thread. r=florian,jimm
Since committing will do IO on the main thread, it would be better to do it on
an idle thread instead. We have to change JavaScript code too because now the
API is asynchrous.

This patch also updates its xpcshell test.

Now mozilla::widget::AsyncDeleteAllFaviconsFromDisk will get profile directory
on the main thread to prevent it happens on off-main-threads, thus prevents
off-main-thread assertion.

MozReview-Commit-ID: CWcR0B2BC3n

--HG--
extra : rebase_source : 3685a07f9f4476bc94bdf92937734b78fb3fe309
2017-05-24 16:38:57 +08:00
Sebastian Hengst 0457405200 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: C5HD11ptDT0
2017-06-11 10:35:34 +02:00
Markus Stange 5addcc3d4c Bug 1370757 - Don't expand the dirty rect for Mac native widget drawing. r=mattwoodrow
Extending it didn't play well with invalidation; widgets would only be able to
draw outside if the invalidated region of the current paint was larger than the
widget's declared paint rect but not if the widget was the only thing that got
invalidated.

Any legitimate widget overflow should instead be handled by GetWidgetOverflow.
The DrawCellWithSnapping overflow is considered to stay within the focus
ring's bounds.

I fuzzed two reftests which have extremely slight variance when -moz-appearance
is combined with box-shadow. I don't really understand this failure but I don't
think it's worth looking into either.

MozReview-Commit-ID: ECYxnCTafdh

--HG--
extra : rebase_source : 2cf9b21812347d18cd98cf3f1570b80074551d94
2017-06-10 15:34:09 -04:00
Markus Stange fc1d76d038 Bug 1370757 - Improve widget overflow calculation. r=mattwoodrow
This fixes HiDPI and adds overflow for meter bars.

Meter bars should probably have their intrinsic size fixed instead, but
keeping the existing behavior for them is less risky.

MozReview-Commit-ID: xF83bqdDlz

--HG--
extra : rebase_source : d28b4c265298e870d7cc03b11038da605d920b49
2017-06-07 15:05:31 -04:00
Hiroshi Hatake dd655fb5a4 Bug 1366744 - Remove needless SetPaperSizeUnit override. r=haik
MozReview-Commit-ID: B2ovi3xuY0j

--HG--
extra : rebase_source : c3015ee84d3801c50455c1912796ebd4ba8b50d5
extra : histedit_source : 44cd10b9317139d86848045a482cecba2c5b4367
2017-06-07 14:24:05 +09:00
Hiroshi Hatake 7c7f32088a Bug 1366744 - Fix wrong PaperSizeUnit handling. r=haik
MozReview-Commit-ID: 9cI3smid34l

--HG--
extra : rebase_source : 4f8ab53e4caf18e9d6beb31f26eef7aca2f9274d
extra : histedit_source : 5fda30c2e2ba6175766305df78eb87f87839491a
2017-05-25 22:11:08 +09:00
Mike Conley a667d4ec7d Bug 1360946 - Consider a SetDocShellIsActive message a 'pending input event' so it can interrupt reflow. r=bz
MozReview-Commit-ID: 9tV1MFAtim4

--HG--
extra : rebase_source : 7230274a34900896237e2ccc89d1d94ecd9757e1
2017-05-26 18:27:45 -04:00
L. David Baron 8f0a832c01 Bug 1371157 - Cache results of Windows system font lookups. r=jimm
I haven't really tested that this fixes the performance problem observed
in a profile without the patch because the steps to use the Gecko
Profiler on local builds on Windows are rather complicated.

MozReview-Commit-ID: FmGFs2Cvquv

--HG--
extra : transplant_source : %CB%AD%1E%2A%8F%DB%0D%9E%25%08%A82%13fP%BFS%82%BF%FC
2017-06-09 08:59:12 -07:00
L. David Baron f37c8a671f Bug 1371157 - Use override keyword in windows nsLookAndFeel header. r=jimm
MozReview-Commit-ID: 8bwmXmBFZB4

--HG--
extra : transplant_source : %EB%3A-%D7%3E%5E%22%A7%24%CAL%7D%A0%BB%E6%A9p%3E%86J
2017-06-09 08:59:12 -07:00
sotaro c0d1925640 Bug 1367452 - Add DestroyLayerManager() to WM_DESTROY message r=jrmuizel 2017-06-12 10:11:44 +09:00
Chris Pearce f6c7ea61dd Bug 1346620 - Resolve symlinks and junction points in path to GMP dir when loading GMP process. r=bobowen
The sandbox blocks loading of GMPs when the GMP resides in a directory stored
in a path which contains a symlink or junction point. So resolve GMP paths
fully before instantiating the GMP process.

MozReview-Commit-ID: EvPCpNIDNwg

--HG--
extra : rebase_source : 7df8236c9988a674ae128faf63b949fd711ab4e0
2017-06-09 15:29:46 +12:00
Masayuki Nakano 24bfe124f4 Bug 1369695 Creating ITfInputProcessorProfiles and TSFStaticSink when they are used at first time r=m_kato
ITfProcessorProfiles are used by a debug method TSFTextStore::CurrentKeyboardLayoutHasIME() and TSFStaticSink (when it's initialized).  However, TSFStaticSink isn't necessary until when TSFTextStore needs to hack something for specific IME or notifying IMEHandler of active TIP change.  So, we can put off to create the instance of ITfInputProcessorProfiles and TSFStaticSink.

MozReview-Commit-ID: KcrqUbqz1do

--HG--
extra : rebase_source : f1821b782c6cd316a8f234a17ee3c92114547041
2017-06-08 23:55:57 +09:00
Masayuki Nakano e25479050a Bug 1369697 Create ITfDisplayAttributeMgr and ITfCategoryMgr when TSFTextStore::GetDisplayAttribute() needs to use them at first time r=m_kato
Creating them may be expensive due to allocating them in the heap.  So, let's put off to create them when first use.

MozReview-Commit-ID: HDgijJo7brU

--HG--
extra : rebase_source : 9e4e68bd048185fe38fd98bef9b5711e86f68999
2017-06-08 20:51:50 +09:00
Masayuki Nakano 696e4cb85a Bug 1250823 part 2 - IMEContentObserver should cache adding ranges as a range during document change r=smaug
Between nsIDocumentObserver::BeginUpdate() and nsIDocumentObserver::EndUpdate(), IMEContentObserver can cache added nodes as a range if they are consecutive nodes.  Even if a node is removed, a data node is changed or attribute is changed unexpectedly, IMEContentObserver can post text change of the added node range and handle it normally.

MozReview-Commit-ID: IttDHBkr92Y

--HG--
extra : rebase_source : f0849d5fab0b28bdfa311cf833a216d43b9215d2
2017-06-08 11:24:58 +09:00
Masayuki Nakano f6dd08693e Bug 1367692 - Make IMEHandler not restore default IMC unless legacy IMM-IME is active. r=m_kato
TIPs (and normal keyboard layouts) don't need IMC on focused window.  So, in most environment, it's not necessary to restore default IMC of focused window.

Therefore, this patch makes IMEHandler not restore default IMC unless legacy IMM-IME is active and disassociate IMC from focused window when IMM-IME isn't active.

However, this is risky change.  Therefore, the new behavior is disabled in default settings.  On the other hand, we need the new behavior only when MS-IME for Japanese is active on Win10.  Therefore, this patch adds a pref to enable/disable the hack and make it true in the default settings.

MozReview-Commit-ID: KAVxVT9CrsW
2017-06-07 11:42:27 +09:00
L. David Baron 88370e02d1 Bug 1367576 - Make IsWidgetStateSafe not truncate the bits that it needs to test. r=karlt
This fix a mistake that goes back to the original code from bug 174585
(gecko-dev 9611b23530, 2005-08-20).

(This makes me wonder how important the code is in the first place if it
didn't work correctly.)

MozReview-Commit-ID: B6q0o5n5hDw
2017-06-06 22:27:18 -07:00
L. David Baron e04a5a47c6 Bug 1367576 - Shrink existing caches to the size that's actually needed. r=karlt
Now that, thanks to bug 1367577, we have the theme constants in an enum,
we can make these arrays smaller rather than assuming that the constants
might use any valid uint8_t value.

MozReview-Commit-ID: A6GjTarVurc
2017-06-06 22:27:18 -07:00
L. David Baron d1ddf5e48e Bug 1367576 - Cache results of getting GTK widget borders. r=karlt
See comments in the header file.

This also clears out mSafeWidgetStates in ThemeChanged since that seems
like a good thing to do, and marks nsNativeThemeGTK as final.

MozReview-Commit-ID: 5Zne4eGbGlh
2017-06-06 22:27:18 -07:00
L. David Baron ee1674ecc5 Bug 1367576 - Refactor to allow for caching of some gtk widget padding/border results. r=karlt
This refactors the two nearly-identical callsites into a method so that
I can do caching in that method in the next patch.

Note that there was a slight difference between them in that the
aWidgetFlags parameter to GetGtkWidgetAndState was only passed from one
callsite.  However, given that the aState parameter is null, this
doesn't cause any behavior differences.  (Some controls in
GetGtkWidgetAndState null-check aWidgetFlags and some don't!)

Note also that this makes it always assign a result (often zero).  This
is fine for both callsites; GetWidgetPadding previously assigned zero
right before the call, and GetWidgetBorder did so at the start of the
function (and wasn't modified in between, since it was immediately
before the switch that the modified code is a case in).

MozReview-Commit-ID: IKurwry3UTi
2017-06-06 22:27:17 -07:00
L. David Baron 06ad92ffc6 Bug 1367576 - Remove unused ishtml parameter to moz_gtk_get_widget_border. r=karlt
This was needed for the (now-unused) GTK2 version of the code.

MozReview-Commit-ID: GocgC4OZ76p
2017-06-06 22:27:17 -07:00
Chris H-C c57d39227d bug 546387 - Don't try to set the GTK clipboard with null items r=karlt
It causes an assert failure in gtk which prints to the console.

MozReview-Commit-ID: A4106Z4rT36

--HG--
extra : rebase_source : 642c94a95cfa3939bc475e9139ee63caa78e3005
2017-05-26 11:50:13 -04:00
Masayuki Nakano 94170bb269 Bug 1370198 Back out the patch for bug 1369419 because the patch couldn't fix bug 1361132 and causes new crash bugs r=jimm
MozReview-Commit-ID: Eq7Dkk6Ghwc

--HG--
extra : rebase_source : edc2d10f4e0359152927830a269f74b75daf5883
2017-06-05 21:52:16 +09:00
Sebastian Hengst 5e4755df68 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IdRgoZ9hiXq
2017-06-03 20:15:27 +02:00
Jim Chen 4230e5eacd Bug 1369107 - 4. Remove GeckoAppShell.ContextGetter; r=snorp
Remove ContextGetter and all implementations now that it's no longer
being used.

MozReview-Commit-ID: G5jWFsQPfWw
2017-06-02 16:13:42 -04:00
Jim Chen c611475410 Bug 1369107 - 3. Don't use GeckoAppShell.getContext for plugin code; r=snorp
Use getApplicationContext or GeckoApp.getPluginContext instead of
getContext so we can get rid of ContextGetter.

MozReview-Commit-ID: B8tTPeZ5gvt
2017-06-02 16:13:41 -04:00
Masayuki Nakano d3789d2d6b Bug 1369419 GetMessage() and PeekMessage() shouldn't be used directly as far as possible r=jimm
In TSF mode, application should retrieve messages with ITfMessagePump::GetMessage() or ITfMessagePump::PeekMessage() since TSF/TIP may handle the message before or after the host application handles it.

This patch rewrites the API users with WinUtils::(Get|Peek)Message() which use ITfMessagePump if it's available.

MozReview-Commit-ID: LwHIgp7SxLH

--HG--
extra : rebase_source : aa5750af9812f9b107c29546cbee6f9eede6ebfa
2017-06-02 12:02:35 +09:00
James Willcox bd21ee4811 Bug 1367287 - Reference count GeckoSurfaceTexture r=jchen
MozReview-Commit-ID: 1JJVzCmANyH
2017-06-02 10:14:20 -05:00
Bob Owen 595abc49e3 Bug 1369386 Part 2: Follow-up #if to fix non-Windows build failures. r=me 2017-06-02 12:07:31 +01:00
Bob Owen 508a716403 Bug 1369386: Fix old invalid millimeter page size prefs using print_paper_size_type as trigger. r=jimm
These old invalid prefs were caused by us not clearing out old inch page size prefs when the
user switched to a standard mm page size (for example A4).
This fix uses the fact that an old print_paper_size_type pref was removed at the same time
to trigger a one off sanitization.
2017-06-02 11:58:44 +01:00
Karl Tomlinson 94ab0b4d5c Bug 1368597 label CompositorWidget and WindowSurface as Graphics BUG_COMPONENT r=rhunt
--HG--
extra : rebase_source : 5f2cf496030a5736424e66be1a3b8a53188d5e22
2017-05-30 14:29:22 +12:00
Carsten "Tomcat" Book f69c1db21b Merge mozilla-central to autoland 2017-06-01 13:57:22 +02:00
Carsten "Tomcat" Book 972b7a5149 merge mozilla-inbound to mozilla-central a=merge 2017-06-01 13:50:56 +02:00
Ryan VanderMeulen 984edc2be4 Merge m-c to inbound. a=merge 2017-05-31 20:26:16 -04:00
Ryan VanderMeulen b2f44e5181 Merge inbound to m-c. a=merge 2017-05-31 20:25:52 -04:00
Martin Stransky 5f9fc84d1a Bug 1364355 - Implement UpdateOpaqueRegion() by gdk_window_set_opaque_region(), r=karlt
MozReview-Commit-ID: 50N99ZlvFUh

--HG--
extra : rebase_source : d095f93a858271c8a622f127724b06246e9f4bf9
2017-05-26 21:27:32 +02:00
Martin Stransky 0d7ee0c159 Bug 1364355 - Add support for using ARGB windows with OMTC when an X11 compositor is active. r=karlt
Authored by Andrew Comminos <andrew@comminos.com>

MozReview-Commit-ID: FIQBHSXgjMh

--HG--
extra : rebase_source : 1ae73bed3b2b933d11803ae3b93afbf3d1e1f570
2017-06-01 11:28:50 +02:00
Andrew Comminos 302c93427f Bug 1364355 - Enable argb visual for GTK window behind hidden preference mozilla.widget.use-argb-visuals, r=karlt
This preference is default to false and allows to experiment with transparent widgets on Gtk.
Original patch autor is Andrew Comminos <andrew@comminos.com>.

MozReview-Commit-ID: JZkCjBWny3m

--HG--
extra : rebase_source : 116c4977d7d7f3927e6a4df203584d8b9c9ad57b
2017-05-25 15:45:22 +02:00
Botond Ballo 4810f9b6a9 Bug 1369074 - Store the layers id in a variable of the proper type (uint64_t) in nsBaseWidget::StartAsyncScrollbarDrag(). r=kats
MozReview-Commit-ID: App50MV57JJ

--HG--
extra : rebase_source : 5892eea589227df0511e63bc260d99ece9cbf9a4
2017-05-31 13:48:01 -04:00
Brendan Dahl 9541cf8db0 Bug 1367227 - Part 1 - Match headless fullscreen behavior to other widget backends. r=jrmuizel
Restore size mode after leaving fullscreen. Also, trigger fullscreen
and size mode changed events during MakeFullScreen.
2017-05-31 16:29:10 -07:00
Andrea Marchesini f9b3992646 Bug 1368941 - Remove gonk specific code from ProcessPriorityManager, r=gsvelto 2017-05-31 21:23:52 +02:00
Carsten "Tomcat" Book 1d032e6328 Merge mozilla-central to autoland 2017-05-31 12:35:56 +02:00
Jorg K 09557f6df0 Bug 1353625 - detect zero (0) as invalid resolution. r=bobowen a=tomcat 2017-05-30 23:44:00 +02:00
Ryan VanderMeulen bd262b8cd1 Merge inbound to m-c. a=merge 2017-05-30 16:09:14 -04:00
Kilik Kuo 444875671e Bug 1350253 - Provide GeckoHlsDemuxerWrapper & corresponding generated JNI files as the glue for HLSDemuxer and GeckoHlsPlayer. r=jolin,jya
MozReview-Commit-ID: 62cnGQsmdNS

--HG--
extra : rebase_source : 4431d9e55f4ee38faeae50d03b46fbb57629fb8e
2017-05-25 20:48:03 +08:00
James Cheng ce2fbd2836 Bug 1350250 - Add a GeckoHlsResourceWrapper java glue. r=jolin,jya
MozReview-Commit-ID: KMAqkJSk2tT

--HG--
extra : rebase_source : efe73b1f70e5bde6c6d9fd7ad36ee98ad21eaf7c
2017-05-17 17:05:42 +08:00
Andrea Marchesini c1c91c120d Bug 1368666 - Get rid of screen-state-changed observer in ProcessPriorityManager, r=gsvelto 2017-05-30 16:27:12 +02:00
Carsten "Tomcat" Book b318c7dca7 merge mozilla-inbound to mozilla-central + UPGRADE_NSS_RELEASE a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/xpcshell.ini => toolkit/components/extensions/test/xpcshell/xpcshell-common.ini
extra : amend_source : 458fd54fe8070ca3034ac441267ff7025adb5251
2017-05-30 11:37:46 +02:00