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

2498 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano 6421357e7a Bug 1368318 Call TSFTextStore::ThinksHavingFocus() before clearing sEnabledTextStore since the method refers it r=m_kato
MozReview-Commit-ID: GdALZTWioNW

--HG--
extra : rebase_source : 66491f98c906ffe9cdd5bbc4558f86f75e0343cc
2017-05-29 12:18:11 +09:00
Ryan VanderMeulen 8543438674 Merge inbound to m-c. a=merge 2017-05-25 16:34:16 -04:00
Farmer Tseng f5f7370562 Bug 1359713 - Stop loading the contents of PDF files into memory in PDFViaEMFPrintHelper r=jwatt
This change changes PDFViaEMFPrintHelper so that instead of loading the entire
contents of a PDF document into memory to pass to PDFium, it now simply passes
PDFium a file system path to load the PDF from. This should help us reduce
memory use (and potentially avoid running out of memory) when larger PDFs are
printed.


MozReview-Commit-ID: GISolZYC2GJ

--HG--
extra : rebase_source : a59925542b6c075cd14c67577653163cc2d49c0f
2017-05-12 12:42:20 +08:00
Masayuki Nakano d565472d4f Bug 1366140 Try to avoid crash caused by COM objects which are owned by static or instance member of TSFTextStore r=m_kato, jimm
While initializing or destroying TSFTextStore, each object methods should be
called after the instance is grabbed by local variable since member variable
may be cleared by nested call to destroy a TSFTextStore instance.

MozReview-Commit-ID: CojLasqcDyB
2017-05-22 21:48:14 +09:00
Mats Palmgren 297b9d70e1 Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
MozReview-Commit-ID: IbwWM0FL6HF

--HG--
extra : source : bbb688fe1ba3f5201a190c6e25b693ef7272ea2d
2017-05-21 17:15:00 +08:00
Carsten "Tomcat" Book 1bdc87018b Merge mozilla-central to autoland
--HG--
extra : rebase_source : 4e9c2047973e5a540496b19e456a2e7bd14715ad
2017-05-22 15:48:11 +02:00
Carsten "Tomcat" Book 00d4ea331d Backed out changeset bbb688fe1ba3 (bug 1365614) 2017-05-22 15:45:31 +02:00
Mats Palmgren e706869580 Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz 2017-05-21 17:15:00 +08:00
Carsten "Tomcat" Book 2a6d28c4ab Merge mozilla-central to autoland 2017-05-22 13:08:46 +02:00
Masayuki Nakano dfc463ea5b Bug 1310454 part 2 - TSFTextStore::SetInputContext() should do nothing when it's called for initializing native IME context when a widget is created r=m_kato
On Windows, when nsWindow is created, IMEHandler::InitInputContext() is called.  Then, it calls TSFTextStore::SetInputContext().  However, at least for now, TSFTextStore needs to do nothing until the widget gets focus.

MozReview-Commit-ID: HBafHEUSCtd

--HG--
extra : rebase_source : 5c21e0f81dbc9b644965f7df42da1b6314b58a26
2017-05-19 15:52:59 +09:00
Masayuki Nakano d7ee8e545f Bug 1310454 part 1 - Log more info when TSFTextStore gets InputContext and InputScopes r=m_kato
MozReview-Commit-ID: GrF0IGLUPtA

--HG--
extra : rebase_source : 888616f60be060f8267cd8a1006ffec79f6bc02d
2017-05-19 15:20:00 +09:00
Nathan Froyd c1d1748428 Bug 1359490 - add an event loop spinning abstraction function; r=gerald
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
David Anderson 57800cc0bd Handle in-process device resets by recreating the entire rendering stack. (bug 1363126 part 2, r=rhunt) 2017-05-11 22:44:27 -07:00
David Anderson 37ffe38db0 Revert to synchronous resizes when the DWM is disabled. (bug 1363122, r=bas) 2017-05-10 10:48:16 -07:00
Carsten "Tomcat" Book 170faef00b Merge mozilla-central to mozilla-inbound 2017-05-05 15:25:16 +02:00
David Anderson 9332f7b6ca Don't synchronously composite when resizing widgets on Windows. (bug 1361257, r=bas) 2017-05-05 01:10:48 -07:00
Emilio Cobos Álvarez e44543aad4 Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam
MozReview-Commit-ID: 5Nzhyta5Hle

--HG--
extra : rebase_source : c2e9d4bfb9239f5e851d110cd7dff98c1e1a8d8b
2017-04-30 17:30:08 +02:00
Farmer Tseng 54235886c3 Bug 1345710 - part3: implement PDFViaEMFPrintHelper to convert PDF to EMF r=cjku,jwatt
This class helps draw a PDF file to a given Windows DC.

MozReview-Commit-ID: IjZAIcN3bND

--HG--
extra : rebase_source : 035dfbf5380316aacae8e1e1591d81971c47b843
2017-01-10 17:43:16 +08:00
Farmer Tseng 4971e86b5c Bug 1345710 - part2: implement a PDFiumEngineShim class to link to PDFium symbols r=cjku,jwatt
This class exposes an interface to PDFium library and takes care of loading and
linking to the appropriate PDFium symbols.

MozReview-Commit-ID: 32jZD6d0KFw

--HG--
extra : rebase_source : 1d0580cbc8dc8687656ce32654d679da54104a33
2016-12-02 12:02:56 +08:00
Farmer Tseng 377e7ae977 Bug 1345710 - part1: implement a WindowsEMF class to support Windows Enhance Metafile r=cjku,jwatt
WindowsEMF could be initialized with the path of a file where the EMF data
should be stored. If pass null point to the constructor that means the EMF data
are store in memory. Consumers can call GetDC() to get a HDC. It can be drawn to
generate the EMF output. After finishing with the HDC, call FinishDocument() to
finish writing the EMF output. Then consumers can call Playback() to play the
EMF's drawing commands onto the given DC. Once consumers don't use WindowsEMF
anymore, call ReleaseEMFHandle() to release object's handle. If the EMF output
is in memory, it is deleted. If it is on disk, it is not.

Consumers also can initialize WindowsEMF with an existing EMF file. They can
only use Playback().

MozReview-Commit-ID: 8hUsx8b2CXz

--HG--
extra : rebase_source : 99e38e61a00bfae45ec9102b3b23a095a7f3af1e
2016-12-02 11:43:44 +08:00
Farmer Tseng 3222ef2cdb Bug 1361949 - Add missing 'using namespace::widget' to widget/windows/nsDragService.cpp r=jwatt
Because ModifierKeyState is in the 'mozilla::widget' namespace, this file uses
it without qualification.

MozReview-Commit-ID: H6t3AqLjRwJ

--HG--
extra : rebase_source : 69b788761ee332cc94acc4be6ae6ce0bb50f0e98
2017-05-04 17:31:23 +08:00
Jim Mathies 8bca136933 Bug 1351676 - Add Windows theme related look and feel values to the content process look and feel cache. r=mconley
MozReview-Commit-ID: FFGLOnH2TQS

--HG--
extra : rebase_source : d72db64c56821fb657555b9308f3ed01a35f64fa
2017-04-13 11:13:49 -05:00
Manish Goregaokar 0fbbeaac11 Bug 1349417 - Part 10: Use mutex to guard system font computation; r=bholley
MozReview-Commit-ID: CBKdItjolm9
2017-04-21 15:41:02 -07:00
Cervantes Yu cc5836fbae Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
NS_SetCurrentThreadName() is added as an alternative to PR_SetCurrentThreadName()
inside libxul. The thread names are collected in the form of crash annotation to
be processed on socorro.

MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Mike Conley 1f5fc5c065 Bug 1356575 - Don't warn on SetTransparencyMode on Windows if the mode isn't actually changing. r=jimm
MozReview-Commit-ID: J7dV0xKuEL7

--HG--
extra : rebase_source : bdf309e0fbae9d78a7b6968b3e43e0fdeb0edc94
2017-04-18 14:35:38 -04:00
Jim Mathies e1d348db3d Bug 1344907 - Fire observer events informing front end about changes in input method (touch vs. pointer input). r=masayuki
MozReview-Commit-ID: 4YOKD0tWZNN
2017-04-18 10:19:02 -05:00
Masatoshi Kimura df6ee97f6a Bug 1356218 - Make screen.colorDepth multi-monitor aware. r=jimm
MozReview-Commit-ID: JrQL23DgZsw

--HG--
extra : rebase_source : 932e17cc61ba1a7344b1740ed14ece0484200e32
2017-04-18 00:21:55 +09:00
Masatoshi Kimura ea4c0cc826 Bug 1354020 - Use per-monitor v2 on Creators Update. r=jfkthame
MozReview-Commit-ID: FiO3DupULFu

--HG--
extra : rebase_source : f2d2018cb549a07f89e18a42f842886a7ef9c063
2017-04-07 07:14:14 +09:00
Sebastian Hengst d8496d0a1f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EjT9dcum69m
2017-04-14 23:56:10 +02:00
Joel Maher 99137683e9 Bug 1355089 - add BUG_COMPONENT to widget/* files. r=mstange,jimm
MozReview-Commit-ID: 49Ug2HTqHnf
2017-04-14 05:54:36 -04:00
Masatoshi Kimura 7e1158fd16 Bug 1356023 - Remove nsIScreenManager.systemDefaultScale. r=jfkthame
MozReview-Commit-ID: 6Ha8XrJBSiU

--HG--
extra : rebase_source : a83a64acf01dc9d1a0593c0ddbff76f74809a79b
2017-04-13 07:20:35 +09:00
Wes Kocher 4fab232444 Merge autoland to central, a=merge 2017-04-13 13:03:43 -07:00
Kartikaya Gupta b4341d2689 Merge m-c to graphics
MozReview-Commit-ID: EGaA6e4loBM
2017-04-13 11:08:02 -04:00
Kartikaya Gupta aa20d100c1 Merge m-c to graphics
MozReview-Commit-ID: Ij5C7MUete4
2017-04-11 10:09:54 -04:00
sotaro 292e80ffe3 Bug 1354474 - Add FlushRendering() and Composite() support to WebRenderLayerManager r=mattwoodrow 2017-04-10 15:58:29 +09:00
Milan Sreckovic 20edf8ccd6 Bug 1257375: If the first adapter found is 0/0, look for a valid device using the alternative approach (already used for the second GPU detection.) r=kats
MozReview-Commit-ID: FryxdDPUBtA

--HG--
extra : rebase_source : 38b04bbb718f20b6b8483be887cf868a0d5e4384
2017-04-11 21:39:20 -04:00
Masatoshi Kimura 6d0441a40a Bug 1352773 - Take into account DefaultScaleOverride in Screen::GetDefaultCSSScaleFactor. r=kanru
MozReview-Commit-ID: EJidy1NH3DX

--HG--
extra : rebase_source : d095c493de0acdd12cebc61b47d406a9547601ed
2017-04-05 22:11:34 +09:00
Masatoshi Kimura e4f7bfae30 Bug 1316717 - Use the system DPI scaling factor to calculate the icon size in GetGutterSize. r=jfkthame
We have to use the system scale here for consistency because GetThemePartSize and GetThemeMargins will always assume the system scale and callers of GetGutterSize will adjust the size using GetThemeDpiScaleFactor.

This patch will also fix an existing bug where native-themed elements are not scaled when layout.css.devPixelsPerPx has a non-default value on Windows 7.

MozReview-Commit-ID: ILHiOrkTPoT

--HG--
extra : rebase_source : 130dd313ed478d1fe8a9b88ce2705df985c817c3
2017-04-09 10:00:08 +09:00
Wes Kocher 3d900a5d7e Merge inbound to central, a=merge 2017-04-05 14:16:37 -07:00
Mike Conley 6e00fea9a3 Bug 1344839 - Don't allow transparent top-level windows on Windows. r=jimm
MozReview-Commit-ID: 6bXHqDuUMw6

--HG--
extra : rebase_source : 0a9c115d135b9fa25e0c771da1c0ed7c0ff114d3
2017-03-21 22:15:55 -04:00
Stone Shih c2ff93f196 Bug 1345398 - Fire WidgetMouseEvent by handling pen generated mouse messages to get Windows native dnd supports. r=jimm
Due to Windows doesn't support dnd in the pen message handler, we can't handle and consume WM_POINTER* to fire WidgetMouseEvent. On the other hand, we can't get some pen related attributes from Windows mouse messages. This patch gets and caches the attributes by handling WM_POINTER* but not fire WidgetMouseEvent to support dnd and pen related attributes. When handling the subsequent Windows mouse messages, we use the cached attributes to fire WidgetMouseEvent. Considering we might need to use WM_POINTER* someday, use a preference to control the behavior.

MozReview-Commit-ID: 5E60KO1zo0W
2017-03-13 15:40:52 +08:00
Farmer Tseng d754d0f933 Bug 1352368 - Remove some old Windows defines from WinMessages.h r=jwatt
These defines cause include ordering issues that can result in build errors if
WinMessages.h is included before certain Windows headers.

To solve this issue this commit simply removes those defines since nowadays we
require Visua Studio 2015 to build and no longer need them.

MozReview-Commit-ID: GHMU05GUwHM

--HG--
extra : rebase_source : fcaadb93be6ff43f36ba98f164018d93c98a4e22
2017-04-01 00:44:26 +08:00
Farmer Tseng 2f28a673b1 Bug 1352339 - Add missing 'using namespace mozilla' to nsWindowDbg.cpp r=jwatt
Needed because LogLevel is in the 'mozilla' namespace, but this file uses it
without qualification.

MozReview-Commit-ID: 5o2KV1GlcqM

--HG--
extra : rebase_source : 2b6bb2b6a6b0464b9c01c055101b23373d386c0f
2017-04-01 00:42:35 +08:00
Farmer Tseng 5baa803bf8 Bug 1352339 - Add missing WinCompositorWidget.h include to nsWindowsGfx.cpp r=jwatt
We need the definition of CompositorWidgetDelegate in order to use
mCompositorWidgetDelegate.

MozReview-Commit-ID: Gr5G0SvCckk

--HG--
extra : rebase_source : 17db54c13bebb97c2d39e2dc0b69b7ad28346385
2017-04-01 00:41:00 +08:00
Wes Kocher 734b25e05c Merge m-c to inbound, a=merge 2017-04-03 14:51:06 -07:00
Tom Ritter d6b740402b Bug 1351720 Add compiler guards for MOZ_WM_STARTA11Y r=jimm
MozReview-Commit-ID: FE53LsSAF2S

--HG--
extra : rebase_source : 8362ca200f00e1ab24646c81dbfedbab93ae3ffc
2017-03-29 11:18:24 -05:00
Oriol 9d380b2acf Bug 1325980 - Get full GFX DLL paths from UserModeDriverName as a fallback. r=kats
MozReview-Commit-ID: 1DFr2okgAdQ
2017-04-01 15:46:41 -04:00
Masatoshi Kimura 0190f40378 Bug 1351832 - Always put the primary monitor at the top of the screen list. r=kanru
MozReview-Commit-ID: 3ZrInOUJ5bj

--HG--
extra : rebase_source : 2f68012bfc8fc71e6dda241891e5964eb24e2c55
2017-03-30 22:49:10 +09:00
Makoto Kato bf5a003dc8 Bug 1348177 - Part 3. Remove GetProcAddress for shell32 to use Vista+/7+ API (widget part). r=jimm
It is unnecessary to use Vista/7+ API via GetProcAddress

MozReview-Commit-ID: ELxCJev2jaZ

--HG--
extra : rebase_source : e1207ce5416d603090bd572ba745a703dadd93bf
2017-03-17 11:05:04 +09:00
Sebastian Hengst dbd9b6d728 Backed out changeset b6a97b374a6d (bug 1344839) 2017-03-29 01:18:22 +02:00