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

20241 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano 569677d2f1 Bug 1278014 part.7 Rename SelectionType::SELECTION_IME_RAWINPUT to SelectionType::eIMERawClause r=smaug
MozReview-Commit-ID: BRe10Lyx5mt

--HG--
extra : rebase_source : e57239239fe8029040ce49faff9e37c5ad0b8305
2016-06-09 18:51:49 +09:00
Masayuki Nakano d960ef26d5 Bug 1278014 part.5 Rename SelectionType::SELECTION_NORMAL to SelectionType::eNormal r=smaug
MozReview-Commit-ID: AAdxTTKEvrk

--HG--
extra : rebase_source : 82e10db6b8b17d4f571625e34bb3c8f1905ef58a
2016-06-09 18:35:22 +09:00
Masayuki Nakano 00591135a4 Bug 1278014 part.2 Define mozilla::SelectionType as an enum class and use it instead of RawSelectionType as far as possible r=smaug
This patch defines mozilla::SelectionType as an enum class.  This is safer than nsISelectionController::SELECTION_* since setting illegal value to its variable is checked at build time.  So, as far as possible, this should be used everywhere (but of course, this isn't available in scriptable interfaces).

And also this implements some useful methods for managing SelectionType and RawSelectionType which are implemented in layout/nsSelection.cpp because nsISelectionController is implemented by both PresShell and nsTextEditorState.  Therefore, implementing one of them may make hard to find them.  On the other hand, nsSelection.cpp is a better file name to look for them.

Note that this patch creates mozilla::Selection::RawType() for binding.  Native code should keep using Selection::Type() but the binding code needs to use RawType() due to impossible to convert from SelectionType to RawSelectionType without explicit cast.

MozReview-Commit-ID: 81vX7A0hHQN

--HG--
extra : rebase_source : d9f88e217c713c60d1c2578ce6421c73ccba8650
2016-06-11 11:06:37 +09:00
Jonathan Watt 06b29e4abf Bug 1279628, part 2 - Switch all but one of the gfxASurface::CheckSurfaceSize calls to call Factory::CheckSurfaceSize. r=mstange 2016-06-10 13:32:01 +01:00
Jonathan Watt 09e31afca4 Bug 1278441 - Add a CoreGraphics subclass of PrintTarget. r=mstange
--HG--
extra : rebase_source : 3629f0a9152dad18b9a2e44d16b4d28359f414cf
2016-06-09 22:35:14 +01:00
rhunt ed53e4040d Bug 1219925 - Format cleartype gamma in converted form. r=jfkthame 2016-06-09 10:52:00 +02:00
rhunt acd669ac3f Bug 1219925 - Fix for format specifiers in getCleartypeParameters. r=jfkthame 2016-06-09 09:48:00 +02:00
Phil Ringnalda 1cce1f61f8 Back out 2 changesets (bug 1279628) for reftest bustage
CLOSED TREE

Backed out changeset 07e4432bd6b3 (bug 1279628)
Backed out changeset 416fa9aeec55 (bug 1279628)
2016-06-11 00:44:51 -07:00
Jonathan Watt 8ea6b72d47 Bug 1279628, part 2 - Replace all gfxASurface::CheckSurfaceSize calls with Factory::CheckSurfaceSize and remove gfxASurface::CheckSurfaceSize. r=mstange
--HG--
extra : rebase_source : 314cf522b5760e63e176418ae170301fafa80f89
2016-06-09 15:31:24 +01:00
Kartikaya Gupta bea6d03a52 Bug 1278268 - Ensure that no-op mousemove synthesizations on Windows still fire a mousemove event. r=jimm
MozReview-Commit-ID: EXZtvqy1BLu

--HG--
extra : rebase_source : 7dcaa9370c0733267940ad8374bf783cde65e9e7
2016-06-09 09:06:58 -04:00
stefanh@inbox.com d1ad4b0dc8 Bug 1279017 - Remove code specific to 10.6-10.8 in widget/cocoa. r=mstange. 2016-06-10 23:30:25 +02:00
Ralph Giles 8afeefb1d2 Bug 1275744 - Reference MOZ_LOG in windows widget comments. r=erahm
NSPR_LOG_MODULES is deprecated.

MozReview-Commit-ID: GbK7Qctk44

--HG--
extra : rebase_source : f689e53703107a81182e386e7d93cbab60d6837c
2016-05-26 11:19:40 -07:00
Ralph Giles d8b5bb25d4 Bug 1275744 - Reference MOZ_LOG in dom comments. r=erahm
NSPR_LOG_MODULES is deprecated.

MozReview-Commit-ID: GgJTpEHyZqJ

--HG--
extra : rebase_source : dea80975ee6281aff1476f99f1807f3093af82c9
2016-05-26 11:08:47 -07:00
Jonathan Kew 8b962d49c7 Bug 1278818 - Convert window coordinates to desktop pixels before passing to ScreenForRect. r=emk 2016-06-10 17:37:15 +01:00
Carsten "Tomcat" Book 2266139ee3 Merge mozilla-central to mozilla-inbound 2016-06-10 15:44:04 +02:00
Carsten "Tomcat" Book 4ee1ed2b8f merge mozilla-inbound to central a=merge
--HG--
extra : amend_source : 10247ace8885c608987dcf31d47368e0dec09b19
2016-06-10 15:39:23 +02:00
Carsten "Tomcat" Book 38ff08c882 Merge mozilla-central to fx-team 2016-06-09 15:42:30 +02:00
Carsten "Tomcat" Book afff301b32 Backed out changeset 5c836acf3197 (bug 906420) on developer request by baku
--HG--
extra : rebase_source : 9f109cdb706feef6d2bcd9a2e71f8c4d3c17ebdf
2016-06-09 15:30:53 +02:00
Mike de Boer 6a8dc01ced Bug 384458 - part 1: make the background color of the SELECTION_ATTENTION range fully transparent when modal highlighting is on. r=masayuki 2016-06-09 13:30:44 +02:00
Makoto Kato cadf9d8f77 Bug 1257731 - Part 1. Send HaveBidiKeyboards information to content process. r=masayuki
MozReview-Commit-ID: 87J4hE79e3n

--HG--
extra : rebase_source : fbfb473ebfd28a0f19b81b8030a0dfe60bc310a9
extra : histedit_source : e8b2ab1c0da578be8170ed5380d43cb4503ab299
2016-06-03 18:56:04 +09:00
Phil Ringnalda 2f02d62e38 Back out e9a46afd9375 (bug 1279017) for 10.10 reftest-e10s failures in async scrolling tests
CLOSED TREE
2016-06-08 20:34:36 -07:00
Jonathan Watt 4a3d84e333 Bug 1278278 - Remove gfxPDFSurface and move its logic to a PrintTargetPDF subclass of PrintTarget. r=Bas
--HG--
rename : gfx/thebes/gfxPDFSurface.cpp => gfx/thebes/PrintTargetPDF.cpp
rename : gfx/thebes/gfxPDFSurface.h => gfx/thebes/PrintTargetPDF.h
2016-06-06 16:10:28 +01:00
Jonathan Watt cc6d4f9c08 Bug 1278276 - Remove gfxPSSurface and move its logic to a PrintTargetPS subclass of PrintTarget. r=Bas
--HG--
rename : gfx/thebes/gfxPSSurface.cpp => gfx/thebes/PrintTargetPS.cpp
rename : gfx/thebes/gfxPSSurface.h => gfx/thebes/PrintTargetPS.h
2016-06-06 16:10:28 +01:00
Karl Tomlinson 8c5debe5af Bug 1250704 - use same widget heirarchy as GTK for tooltip text color. r=stransky
MozReview-Commit-ID: 41sDYu3IqYq

--HG--
extra : rebase_source : 425a04503441f3edfd4ebbd71a21921013690426
2016-06-07 18:06:04 +12:00
Karl Tomlinson 7d57ffab85 Bug 1250704 - use style from WidgetStyleCache for tooltip colors. r=stransky
MozReview-Commit-ID: 9xzL8ckxTRQ

--HG--
extra : rebase_source : 6855183140e76ce1c40f403bbcbfa29b98f8ed8f
2016-06-07 16:11:51 +12:00
Martin Stransky a7a4d14c62 Bug 1271523 - Construct tooltip style from path for Gtk >= 3.20, r=karlt
To apply it needs a patch from Bug 1277818.

MozReview-Commit-ID: 3xhYDliL4iw

--HG--
extra : rebase_source : 690e765e9cde78d0b83b9127ccc6e58fc86d415d
2016-06-07 06:22:00 +02:00
Masayuki Nakano c3611a1825 Bug 1278084 part.2 TSFTextStore should allow TSF to lock the document even during destroying r=m_kato
While a TSFTextStore instance is being destroyed, TSFTextStore::Destroy() tries to commit remaining composition and notify TSF of destroying the view.  At this moment, TSF/TIP may try to commit the composition or retrieve the contents with calling ITextStoreACP::RequestLock() but currently TSFTextStore disallows the requests to lock of them.  This means that TSFTextStore never sends composition commit events asynchronously.  Therefore, TextComposition may keep waiting remaining composition events but this causes odd behavior because they won't be fired.

For avoiding this issue, TSFTextStore should behave as normal even while it's being destroyed.  Fortunately, if there is a composition, it always has mLockedContent and mSelection.  So, it can compute expected results of TSF/TIP with them.

MozReview-Commit-ID: 2DSCGXXkLx1

--HG--
extra : rebase_source : 1dc5d08186bc50e7c3f1d9c5fe885ed855db8319
2016-06-08 19:12:07 +09:00
Masayuki Nakano 8cf45849ef Bug 1278084 part.1 Don't release TSF objects during handling a key message r=m_kato
While TIP is handling a key message, TSFTextStore shouldn't release any TSF objects since it may cause hitting a bug of TIPs.  Actually, MS-IME for Japanese on Windows 10 crashes when TSFTextStore is destroyed during composition because probably it accesses some destroyed objects to request to commit composition or query contents.

MozReview-Commit-ID: 9CTjHhAvG04

--HG--
extra : rebase_source : c34041962927795fe0d288aed10a96cf064b6243
2016-06-06 21:07:24 +09:00
Jonathan Watt 0676eabe9f Bug 1278269 - Make a PrintTarget class and PrintTargetThebes subclass and convert all nsIDeviceContextSpec subclasses to use them. r=Bas 2016-06-03 11:27:31 +01:00
Jonathan Watt 75b8790b2f Bug 1278236 - Convert GetSurfaceForGdkDrawable to return a DrawTarget. r=Bas 2016-06-03 11:27:31 +01:00
Nathan Froyd c318cb200a Bug 1278871 - use MOZ_FALLTHROUGH in widget/android/; r=snorp 2016-06-09 18:44:34 -04:00
Carsten "Tomcat" Book 801ccd962d Merge mozilla-central to mozilla-inbound 2016-06-09 15:41:40 +02:00
Neil Deakin ea192c61f5 Bug 1174798, propagate keyboard indicator state down to child processes, r=smaug 2016-06-09 07:59:31 -04:00
stefanh@inbox.com a5320d1288 Bug 1279017 - Remove code specific to 10.6-10.8 in widget/cocoa. r=mstange. 2016-06-08 22:02:22 +02:00
Dylan Roeh 26e9a5cd2f Bug 1136364 - Move EGLSurface creation out of GLController.java. r=snorp 2016-06-08 08:38:45 -05:00
Carsten "Tomcat" Book 976efc5585 Backed out changeset a7334430aef0 (bug 1271523) for valgrind leak
--HG--
extra : rebase_source : 7f597cdb9d4d55f5fa8fc629de657ce95d88788a
2016-06-08 13:46:26 +02:00
Carsten "Tomcat" Book c16173e7f1 Backed out changeset f6f125b1088b (bug 1250704)
--HG--
extra : rebase_source : 5082ad5ea6f81bb1b2635db9a148b3c3034a7296
2016-06-08 13:46:13 +02:00
Carsten "Tomcat" Book 10d020481e Backed out changeset af36af25ecf4 (bug 1250704)
--HG--
extra : rebase_source : 7e7ad4291b89b8f95ec395c766b7ab4114ca7a49
2016-06-08 13:46:11 +02:00
Karl Tomlinson 1cf78cca84 Bug 1250704 - use same widget heirarchy as GTK for tooltip text color. r=stransky
MozReview-Commit-ID: 41sDYu3IqYq

--HG--
extra : transplant_source : %19U%DC%0E%14J%BFW%C1%B9-%863%1A%1D%F7%C7%11D%BC
2016-06-07 18:06:04 +12:00
Karl Tomlinson dc092e5197 Bug 1250704 - use style from WidgetStyleCache for tooltip colors. r=stransky
MozReview-Commit-ID: 9xzL8ckxTRQ

--HG--
extra : transplant_source : %CB_%B9f%FD%10/%CD%5D%AF%85e%BE%A1%25psL%0A%0A
2016-06-07 16:11:51 +12:00
Martin Stransky 34f103fe45 Bug 1271523 - Construct tooltip style from path for Gtk >= 3.20, r=karlt
To apply it needs a patch from Bug 1277818.
2016-06-07 06:22:00 +02:00
Masayuki Nakano 77a20b523d Bug 1270985 Hide mouse cursor in native keydown event handler if Command key isn't pressed r=m_kato
Currently, TextInputHandler::DispatchEvent() isn't used for WidgetKeyboardEvent nor WidgetCompositionEvent since TextEventDispatcher directly uses nsIWidget::DispatchEvent().  Therefore, old code hiding mouse cursor at dispatching eKeyPress event is never run in current mozilla-central since TextInputHandler dispatches eKeyPress events via TextEventDispatcher.

Additionally, it's not enough to hide mouse cursor only when widget dispatches eKeyPress events because if IME starts composition, eKeyPress event won't be fired until finishing the composition. So, I think that we should hide mouse cursor at receiving native keydown events.  The event handler receives keydown events before IME handles them.  Additionally, modifier key events which won't cause eKeyPress events are not using native keydown event handler, fortunately.  So, I believe that it's the best place to do it.

MozReview-Commit-ID: 9dnpiVEV2Lx

--HG--
extra : rebase_source : fd42be85f93fed9e38eeece2cbdbfb7ad45555ba
2016-06-08 14:37:51 +09:00
Bob Owen 2c47d974a1 Bug 1278537: When print settings have been initialized from prefs use them when initializing from the printer. r=jimm
MozReview-Commit-ID: AgRaoIjee2t
2016-06-10 09:44:45 +01:00
Randell Jesup 05bb25d9c0 Backed out changeset 36e71bcb0266 (bug 1192945) 2016-06-10 02:24:08 -04:00
Jonathan Kingston d0636b7947 Bug 1192945 - Use channel->ascynOpen2 in widget/windows/nsDataObj.cpp . r=ckerschb, r=jmathies
MozReview-Commit-ID: 5whNAj5KAjf

--HG--
extra : rebase_source : cbe970274e34fdf32d1f60539a22b004ca0bea51
2015-08-10 12:56:47 -07:00
Nicholas Nethercote 0068688a33 Bug 1278452 - Avoid a null deref in widget/. r=karlt.
--HG--
extra : rebase_source : 26464185d98b7b616b4bb819f4c13f49d66e5d2f
2016-06-07 16:03:34 +10:00
Nicholas Nethercote 86cec920da Bug 1278452 - Remove unnecessary null checks in widget/gtk/. r=karlt.
|operator new| is infallible now.

--HG--
extra : rebase_source : 980a9097a84e75971bf514b10efe345abe09c51b
2016-06-07 15:00:47 +10:00
Nicholas Nethercote 4e8f3b6d6e Bug 1276824 (part 2) - Fix up checks for calls to gfxContext::Create{,PreservingTransform}OrNull(). r=milan.
--HG--
extra : rebase_source : 80644c1a6658da553c13ae1ab3b8d03e916ee6e7
2016-06-07 11:17:48 +10:00
Nicholas Nethercote a02611e830 Bug 1276824 (part 1) - Rename gfxContext::ForDrawTarget{,WithTransform}(). r=milan.
The new names Create{,PreservingTransform}OrNull() better communicate that
these functions (a) do object creation, and (b) are fallible.

--HG--
extra : rebase_source : a36bd9a2bcdfae281868959403f811f2bc690ad4
2016-06-07 09:39:56 +10:00
Michael Layzell bd973fcaa4 Bug 906420 - Part 1: Implement DataTransferItem and DataTransferItemList, r=baku 2016-06-07 18:05:55 -04:00