Commit Graph

597203 Commits

Author SHA1 Message Date
Masayuki Nakano
d40825b1e4 Bug 1463327 - part 3: Change scope of some methods of HTMLEditor which won't be called by non-helper classes of editing to protected r=m_kato
HTMLEditor has 2 type of public methods.  One is rue-public methods.  I.e.,
they should be able to be called by anybody.  E.g., command handlers, event
listeners, or JS via nsIEditor interface.  The other is semi-public methods.
They are not called by the above examples but called by other classes which
are helper classes to handle edit actions.  E.g., TextEditRules, HTMLEditRules,
HTMLEditUtils, CSSEditUtils and Transaction classes.

When we will implement InputEvent.inputType, we need to create new stack
class and create its instance at every true-public methods to manage current
inputType (like TextEditRules::AutoSafeEditorData).  Therefore, it should not
happen that new code starts to call semi-public methods without the new
stack class instance.

For preventing this issue, we should make HTMLEditor have only the true-public
methods as public.  The other public methods should be protected and their
users should be friend classes.  Then, we can protect such method from external
classes.

Note that this patch just moves the methods without any changes in HTMLEditor.h
(except removes BlockTransformationType since it's unused and replaces
ResizingRequestID with new enum class ResizeAt since normal enum isn't hit by
searchfox.org).

MozReview-Commit-ID: 7PC8E8vD7w2

--HG--
extra : rebase_source : 13f51565f2b89ab816ba529af18ee88193a9c932
2018-05-22 18:28:50 +09:00
Masayuki Nakano
f615160008 Bug 1463327 - part 2: Change scope of some methods of TextEditor which won't be called by non-helper classes of editing to protected r=m_kato
TextEditor has 2 type of public methods.  One is true-public methods.  I.e.,
they should be able to be called by anybody.  E.g., command handlers, event
listeners, or JS via nsIEditor interface.  The other is semi-public methods.
 They are not called by the above examples but called by other classes which
are helper classes to handle edit actions.  E.g., TextEditRules, HTMLEditRules,
HTMLEditUtils, CSSEditUtils and Transaction classes.

When we will implement InputEvent.inputType, we need to create new stack
class and create its instance at every true-public methods to manage current
inputType (like TextEditRules::AutoSafeEditorData).  Therefore, it should not
happen that new code starts to call semi-public methods without the new
stack class instance.

For preventing this issue, we should make TextEditor have only the true-public
methods as public.  The other public methods should be protected and their
users should be friend classes.  Then, we can protect such method from external
classes.

Note that this patch just moves the methods without any changes in TextEditor.h.

MozReview-Commit-ID: Db3H6d1V8IU

--HG--
extra : rebase_source : d928a6bb378d02944c5a207de83211c33bb63613
2018-05-22 16:40:44 +09:00
Masayuki Nakano
40ab33fe29 Bug 1463327 - part 1: Change scope of some methods of EditorBase which won't be called by non-helper classes of editing to protected r=m_kato
EditorBase (and other editor classes) have 2 type of public methods.  One is
true-public methods.  I.e., they should be able to be called by anybody.
E.g., command handlers, event listeners, or JS via nsIEditor interface.
The other is semi-public methods.  They are not called by the above examples
but called by other classes which are helper classes to handle edit actions.
E.g., TextEditRules, HTMLEditRules, HTMLEditUtils, CSSEditUtils and Transaction
classes.

When we will implement InputEvent.inputType, we need to create new stack
class and create its instance at every true-public methods to manage current
inputType (like TextEditRules::AutoSafeEditorData).  Therefore, it should not
happen that new code starts to call semi-public methods without the new
stack class instance.

For preventing this issue, we should make EditorBase have only the true-public
methods as public.  The other public methods should be protected and their
users should be friend classes.  Then, we can protect such method from external
classes.

Note that this patch just moves the methods without any changes in EditorBase.h
(except removes GetName() since there is no body of this method and removes
IterDirection since it's unused).

MozReview-Commit-ID: HBseKLL6pxx

--HG--
extra : rebase_source : 2251ff659d831d01a6778d38f4e2714fcf2d6ef4
2018-05-22 16:08:43 +09:00
Dão Gottwald
5d6053a080 Bug 1463685 - Change font-weight:500 to 600 to get a semibold font on Windows. r=mak
MozReview-Commit-ID: CIIOcpdw4Bk

--HG--
extra : rebase_source : 9ae55d18001bbb719a79a4a3e2bb10d94f54aa27
2018-05-24 14:03:35 +02:00
Miko Mynttinen
c6432bd30e Bug 1463752 - Part 2: Avoid allocating AutoTArray when there are no items that can be merged together r=mattwoodrow
MozReview-Commit-ID: 2t0ehABBPy4

--HG--
extra : rebase_source : 4b53bd8845b39da023eca44ba9afd6ac9727ba15
2018-05-22 23:46:11 +02:00
Miko Mynttinen
1bc60d55af Bug 1463752 - Part 1: Avoid unnecessary cast in FLBDisplayItemIterator::StartNested() r=mattwoodrow
MozReview-Commit-ID: 4oEpvVFSaU3

--HG--
extra : rebase_source : fbdf743048b212c27345139cff486682ead1023b
extra : intermediate-source : 5719eed9feccf6da6789fd347ab179e3b850ccd1
extra : source : 3cde092461e59cff7fe518742e9514f9f2346f60
2018-04-26 13:11:11 +02:00
Martin Stransky
7cc5f69e7a Bug 1463753 - [DragAndDrop] Update mTarget(Wayland)DragContext unconditionally and check its validity after that, r=jhorak
MozReview-Commit-ID: KiNaPDDVvLu

--HG--
extra : rebase_source : 2614c6e33b5a49f809cff5d4590d5f7f4053e808
2018-05-24 11:51:17 +02:00
Noemi Erli
303e1e01d9 Backed out changeset ac922efad9fd (bug 1463687) for failures in build/build/src/layout/base/nsLayoutUtils.cpp on a CLOSED TREE 2018-05-24 13:55:51 +03:00
Xidorn Quan
837eabb26b Bug 1463978 - Don't generate catch-all branch if a image layer keyword value is exhaustive. r=emilio
MozReview-Commit-ID: H8T9Low6kqY

--HG--
extra : rebase_source : 98506d3c01df27c4fd408c1f01de040dd17df350
2018-05-24 14:12:55 +10:00
Emilio Cobos Álvarez
c2d8ef1e49 Bug 1463511: Remove impossible combinations from forms.css. r=heycam
Those classes are only applied when !IsSingleLineTextControl(). No need for the
rules.

MozReview-Commit-ID: KOIWJVaw4pt

--HG--
extra : rebase_source : f4c738b7b1637c9cc7ad6958b53705cd82966864
2018-05-22 19:54:18 +02:00
Emilio Cobos Álvarez
10ce8b38a0 Bug 1463511: Remove useless form.css rule and nsTextControlFrame anon class. r=heycam
Only <textarea> has GetWrapRows() > 0, and the rule for textarea disappeared in
bug 82711.

MozReview-Commit-ID: ERcoLVcufbH

--HG--
extra : rebase_source : 687ae89ce94e0e7f3682f434264661f7b9554819
2018-05-22 19:52:41 +02:00
Margareta Eliza Balazs
546aeaa401 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-24 12:43:17 +03:00
Margareta Eliza Balazs
03394c438d Merge inbound to mozilla-central. a=merge 2018-05-24 12:37:58 +03:00
Xidorn Quan
f34d64c3c5 Bug 1463687 - Apply scrollbar style of root element to scrollbars of viewport. r=heycam
MozReview-Commit-ID: GWmhehtqO1U

--HG--
extra : rebase_source : 76e460a6f57a4caa852ee1ada1c8e213c598bbd1
2018-05-24 16:34:58 +10:00
Fabrice Desré
1d3ef19262 Bug 1452245 - The parent side isn't closed if the child dies unexpectedly, r=valentin 2018-05-23 15:22:00 +03:00
Hiroyuki Ikezoe
0408cbb49e Bug 1463605 - Check continuation or IB split sibling frames in nsDOMWindowUtils::CheckAndClearPaintedState. r=mstange
MozReview-Commit-ID: CgyErEGeZJS

--HG--
extra : rebase_source : 1e179f64a39e0cab6b32074fa6ebf6c1884c8b32
2018-05-23 18:18:43 +09:00
Hiroyuki Ikezoe
265c5c817a Bug 1463605 - A reftest that IB sibling frames are correctly marked as 'NeedsDisplayItemRebuild' when there is an animation on the frames. r=mattwoodrow
MozReview-Commit-ID: FG7SQYKOq3r

--HG--
extra : rebase_source : a42ffc7a601b4dc872f4a2dae83d2ea1366b2f86
2018-05-23 18:15:12 +09:00
Hiroyuki Ikezoe
c14fa231c7 Bug 1463605 - Check continuation or IB split sibling frames in nsDOMWindowUtils::CheckAndClearDisplayListState. r=mattwoodrow
MozReview-Commit-ID: 6PjC5INFyym

--HG--
extra : rebase_source : 3b6b39e700cf51ea926b8441c832e50118398f41
2018-05-23 18:15:12 +09:00
Hiroyuki Ikezoe
a28e0be181 Bug 1463605 - Call MarkNeedsDisplayItemRebuild() for IB split siblings too. r=mattwoodrow
MozReview-Commit-ID: 4vN69YLUbIy

--HG--
extra : rebase_source : dfb73c8d92395a18bbaeb1e68b60ea715e0ecbb4
2018-05-23 18:15:12 +09:00
Hiroyuki Ikezoe
c4fb9d14c7 Bug 1463605 - Check mMayHaveOpacityAnimation in nsFrame::HasOpacityInternal(). r=birtles
If the mMayHaveOpacityAnimation is false there, we don't need to check opacity
animations at all.

MozReview-Commit-ID: LTYPPXzF8V6

--HG--
extra : rebase_source : ee2c90e04003140944fb4cc255aa3c6f1c07f0b0
2018-05-23 18:15:12 +09:00
Hiroyuki Ikezoe
452c7f0e9a Bug 1463605 - Set mMayHaveOpacityAnimation and mMayHaveTransformAnimation flag to continuation or IB split sibling frames too. r=birtles
Without this fix layout/reftests/css-animations/ib-split-sibling-opacity.html
would have failed if the next change in this patch series is applied.

MozReview-Commit-ID: CFNXePkXuOs

--HG--
extra : rebase_source : 48df6bf107e1a14dd2b2ae7c23d38d29581aabcb
2018-05-23 18:15:12 +09:00
Mike Hommey
7c246fac68 Bug 1460838 - Avoid static initializers in mozjemalloc with MSVC. r=njn
--HG--
extra : rebase_source : dd2106192a90fbade6f89dfa1169c6e9ab3a553b
2018-05-24 11:23:10 +09:00
Chris Manchester
dd6a725aca Bug 1463921 - Re-run js configure when js/src/old-configure changes. r=gps
MozReview-Commit-ID: 2Rw4he9ZRpz

--HG--
extra : rebase_source : 2801965e246d6424ee37bac277472b294e783309
2018-05-23 17:22:09 -07:00
Xidorn Quan
cfe970a04f Bug 1463408 part 2 - Add profiler feature seqstyle for forcing sequential styling when profiling. r=emilio,mstange
MozReview-Commit-ID: 6fm8j7z1EbJ

--HG--
extra : rebase_source : 1715b6af2c72323f320ff3da8e46d1634f5f7367
2018-05-23 19:35:03 +10:00
Xidorn Quan
4f8d1e3a65 Bug 1463408 part 1 - Remove unused restyle profiler feature. r=mstange
MozReview-Commit-ID: F5i5W02jhEV

--HG--
extra : rebase_source : 5fdddf6383f334c831396dc8348a7d3c032c93a6
2018-05-23 19:34:23 +10:00
Andreea Pavel
e186d16906 Backed out changeset 240237473d9e (bug 1463624) for failing eslint at builds/worker/checkouts/gecko/services/sync/tests/unit/test_browserid_identity.js:279:9 on a CLOSED TREE 2018-05-24 03:04:36 +03:00
Mark Hammond
5f934337c0 Bug 1463624 - ensure sync knows there is a valid user on signin. r=eoger
MozReview-Commit-ID: 8hGU8eLYZKx

--HG--
extra : rebase_source : 227aa891910a0a3d30c910cafc9a0ce7db1368d7
2018-05-23 17:46:38 +10:00
Michal Novotny
574a724d01 Bug 1457084 - Increase max chunk memory usage limit, r=mayhemer
We can hit the limit very easily when writing javascript bytecode as alternative data to the cache entry because all data is written at once but CacheFileOutputStream splits it into chunks which are then written on a backgound thread. 40MB was chosen because bytecode is usually 4x-10x larger than the original data, so it can occupy most of the cache entry which is limited to 50MB.
2018-05-23 05:03:00 +03:00
Michal Novotny
f9b87f1b40 Bug 1456871 - Consider increasing disk cache size, r=mayhemer
The patch changes default cache size on desktop and mobile. The smart cache size calculation is changed to grow faster. It also introduces a cache size limit for users who have enabled clearing cache on shutdown, which should reduce number of shutdown crashes (bug 1356853).
2018-05-22 14:14:00 +03:00
Martin Stransky
0d7519b550 Bug 1462642 - [Wayland/EGL] Use dummy wl_egl_window instead of PBuffer, r=lsalzman
Wayland on desktop does not support/implement PBuffer. As a workaround
we create a dummy wl_egl_window instead and render to it.

As a side effect we need to store and release this wl_egl_window along
the associated EGLSurface on Wayland.

MozReview-Commit-ID: 1NlzZsOzXz9

--HG--
extra : rebase_source : 13f776ad0a9079f7155ba523b61f93441bf7fd5f
2018-05-22 10:34:32 +02:00
Jonathan Kingston
daad797972 Bug 1452666 - Simplify SessionHistory serialization code and test expanded principals are serialized and can restore tabs. r=bz,mikedeboer
MozReview-Commit-ID: EV39wz2TFlj

--HG--
extra : rebase_source : 736cc42fe3325f46856aba9bf894b1bad2a16368
2018-05-19 14:42:52 +01:00
Gijs Kruitbosch
286e8f602d Bug 1463782 - allow toolkit apps in kinto blocklist, r=leplatrem
MozReview-Commit-ID: G1uqNw1Njni

--HG--
extra : rebase_source : 31637d596df1a9e85d0f21cfaced08508139037b
2018-05-23 18:01:36 +01:00
Emilio Cobos Álvarez
fb4762b5e6 Bug 1461749: Fix slow path for finding the next sibling frame for appending in presence of Shadow DOM. r=mats
In this case we have a shadow hoot with display: contents, with no children.
Those children wouldn't be flattened tree children of the shadow host.

Instead of using the last light dom child and seek to it, use
FlattenedChildIterator's reverse iteration.

MozReview-Commit-ID: 18XL5Ong7ww

--HG--
extra : rebase_source : 2d34bd5b1fdd509a069ffa5052a7b7b3302be24c
2018-05-23 18:20:33 +02:00
Emilio Cobos Álvarez
10167dbcac Bug 1419802: Bailout from ScheduleViewManagerFlush if already destroying the shell. r=mats
MozReview-Commit-ID: Ixq9jwX2kET

--HG--
extra : rebase_source : c4fe85307a4247209bf085a20a913d577cf15788
2018-05-23 17:20:14 +02:00
Michael Kaply
e4045b3496 Bug 1455601 - Sandbox AutoConfig if sandbox_enabled pref is set. r=kmag
MozReview-Commit-ID: AaGWs1BmV4E

--HG--
extra : rebase_source : 42fa821b8105ebb8e3837395ef178133e1e8213e
2018-05-23 12:21:53 -05:00
Andreea Pavel
2c92aa2095 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-05-24 01:03:40 +03:00
Andreea Pavel
0dada2bb52 Merge inbound to mozilla-central. a=merge 2018-05-24 01:00:23 +03:00
Joel Maher
28e3660b54 Bug 1400895 - Better try support for test-verify. r=ahal 2018-05-23 10:00:03 -04:00
Joel Maher
8ff40400ce Bug 1461440 - test-verify should support MOZHARNESS_TEST_PATHS. r=gbrown 2018-05-23 09:59:51 -04:00
Jan de Mooij
e98e8c8cef Bug 1461938 part 26 - Move performanceMonitoring from JSCompartment to JS::Realm. r=luke 2018-05-23 15:27:36 +02:00
Jan de Mooij
e9f0432b1a Bug 1461938 part 25 - Move randomKeyGenerator_ from JSCompartment to JS::Realm. r=evilpie 2018-05-23 15:27:04 +02:00
Jan de Mooij
1c6e8b72c0 Bug 1461938 part 24 - Move randomNumberGenerator from JSCompartment to JS::Realm. r=evilpie 2018-05-23 15:26:33 +02:00
Jan de Mooij
4975a53b6d Bug 1461938 part 23 - Move debugModeBits from JSCompartment to JS::Realm. r=luke 2018-05-23 15:26:00 +02:00
Jan de Mooij
eea98b6d64 Bug 1461938 part 22 - Move template objects from JSCompartment to JS::Realm. r=anba 2018-05-23 15:25:20 +02:00
Jonathan Kew
71787557ea Bug 1392147 - Test/expectation adjustments for the change in default font on Android. r=xidorn 2018-05-23 13:52:08 +01:00
Jonathan Kew
ec10b3f21a Bug 1392147 - Use Roboto instead of Clear Sans as default sans-serif font on Android, for better webcompat. r=xidorn 2018-05-23 13:51:59 +01:00
Julian Seward
b47ba3757e Bug 1457059 - WebAssembly.Global takes init value as separate argument, not as part of the descriptor. r=lth.
This also has effect of changing the default value from NaN to 0 (as required).
2018-05-23 13:46:23 +02:00
Andrea Marchesini
5b45972dd9 Bug 1434553 - IPCBlobInputStreamParent reference must be increamented before calling any IPC method, r=me 2018-05-23 12:37:44 +02:00
Matthew Noorenberghe
601fe836d3 Bug 1462959 - Catch exceptions accessing .hostPort for non-http/ftp schemes in LoginHelper.doLoginsMatch. r=johannh
nsIURI.hostPort would throw NS_ERROR_FAILURE in this case

MozReview-Commit-ID: K4mK3X91ic0

--HG--
extra : rebase_source : a3a977e392b771bd15bbba4df476adcb4ee97c95
2018-05-22 19:46:53 -07:00
Dorel Luca
d6a248d5cd Backed out 3 changesets (bug 1346026) for Bugzilla linting
Backed out changeset 95410b5cdecc (bug 1346026)
Backed out changeset 705e8cb185d4 (bug 1346026)
Backed out changeset f293475f462d (bug 1346026)
2018-05-23 19:42:13 +03:00