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

253 Коммитов

Автор SHA1 Сообщение Дата
Phil Ringnalda 93456fb0f4 Backed out changeset 3d0093f961ee (bug 1410794) for Mac plugin crashes and Android test_worker_interfaces.html failures
MozReview-Commit-ID: 20UosHyIr0t
2017-10-24 22:46:36 -07:00
Nicholas Nethercote a861772b10 Bug 1410794 - Change some |string| occurrences in nsIPrefBranch.idl to |ACString|. r=erahm.
This makes the code nicer. In particular, it removes many getter_Copies()
calls. The patch also converts a lot of nsCStrings to nsAutoCString, which will
avoid heap allocation in the common case.

The patch also renames PREF_CopyCharPref() as PREF_GetCStringPref(), because
it's actually getting a string, not a char, and that matches the existing
GetCString() and GetDefaultCString() methods. Correspondingly, it also renames
PREF_SetCharPref() as PREF_SetCStringPref().

The |aPrefName| arguments in nsIPrefBranch.idl remain as |string| because they
almost always involve passing in C string literals, and passing "foo" is much
nicer than passing NS_LITERAL_CSTRING("foo").

It's worth noting that early versions of this patch used |AUTF8String| instead
of |ACString|. But it turns out that libpref stores prefs internally as Latin1.
And |ACString| is compatible with Latin1 but |AUTF8String| isn't, because
non-ASCII Latin1 strings are not valid UTF-8!

--HG--
extra : rebase_source : 725ccf57943283a60ef8c9d654afe4515b4089f8
2017-10-25 10:22:38 +11:00
Brad Werth fa4459596a Bug 1407987 Part 1: Change isRangeVisible to only use isRangeRendered for text within the viewport. r=mikedeboer
MozReview-Commit-ID: BUlZ5SGTiSR

--HG--
extra : rebase_source : 9addc94c32521923300b9a80e1ded8792370d482
2017-10-12 15:49:18 -07:00
Sebastian Hengst 1bb5155c5c Backed out changeset ed9097c98efa (bug 1407987) for failing eslint at toolkit/modules/tests/browser/browser_Finder_offscreen_text.js. r=backout
--HG--
extra : amend_source : f3893dbe5e77479ffdb92fe18db238f42727d6e7
2017-10-17 18:59:51 +02:00
Brad Werth 312bfcae03 Bug 1407987 Part 1: Change isRangeVisible to only use isRangeRendered for text within the viewport. r=mikedeboer
MozReview-Commit-ID: BUlZ5SGTiSR

--HG--
extra : rebase_source : 2811a240a3a25052ea639288b289edc1284d50aa
2017-10-12 15:49:18 -07:00
Brad Werth 1d1d5af74a Bug 1302470 Part 2: Branch IsRangeVisible to delegate to IsRangeRendered when range is in viewport. r=masayuki
MozReview-Commit-ID: LZyvt08I9vz

--HG--
extra : rebase_source : b99e68b3a201f2251302d2ce68459b782af20459
2017-04-20 10:21:52 -07:00
Brad Werth f9bcc75af9 Bug 1302470 Part 1: Create a IsRangeRendered function to test range visibility in the display list. r=mstange,smaug
MozReview-Commit-ID: u0N73luIz7

--HG--
extra : rebase_source : aad334c6cd0d163e380d9c1289c2bdc5dab35d63
2017-03-24 14:45:41 -07:00
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Nicholas Nethercote dfd3b7e7aa Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ

--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
Phil Ringnalda b8183bc0b4 Backed out 6 changesets (bug 1302470) for mochitest-chrome failures
CLOSED TREE

Backed out changeset 3aab8b1494ef (bug 1302470)
Backed out changeset fdd40abac611 (bug 1302470)
Backed out changeset a67bc2f1b624 (bug 1302470)
Backed out changeset 160522290018 (bug 1302470)
Backed out changeset 6b948c533944 (bug 1302470)
Backed out changeset 399011313b3c (bug 1302470)

MozReview-Commit-ID: 2B3uMAkzNGv
2017-08-31 20:04:24 -07:00
Brad Werth 5b7e6137de Bug 1302470 Part 2: Branch IsRangeVisible to delegate to IsRangeRendered when range is in viewport. r=masayuki
MozReview-Commit-ID: LZyvt08I9vz

--HG--
extra : rebase_source : f6cb05812523f70877db8b6af35861a29767491c
2017-04-20 10:21:52 -07:00
Brad Werth bef81140eb Bug 1302470 Part 1: Create a IsRangeRendered function to test range visibility in the display list. r=mstange,smaug
MozReview-Commit-ID: u0N73luIz7

--HG--
extra : rebase_source : 962cf842a56ab650c4ee67d09060c034937d651e
2017-03-24 14:45:41 -07:00
Nicholas Nethercote 025461bde7 Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm.
These are all easy cases where an nsXPIDLCString local variable is set via
getter_Copies() and then is only used in ways that nsCStrings can also be used
(i.e. no null checks or implicit conversions to |char*|).

In every case the patch trivially replaces the nsXPIDLCString with an
nsCString. (Also, there are a couple of unused nsXPIDLCString variables that
the patch simply removes.)
2017-08-16 13:58:35 +10:00
Masayuki Nakano 2f92264fb7 Bug 1377978 - Make nsRange use uint32_t to offset r=smaug
DOM Standard defines that offset of Range is unsigned long.  However, nsRange uses int32_t to them.

This patch makes nsRange use uint32_t instead.  However, this patch does NOT allow to set over INT32_MAX as offset values since a lot of users of nsRange cannot treat the values as over INT32_MAX because a lot of internal APIs take int32_t as offsets.

For easier to search such points, this patch adds static_cast<int32_t> to uint32_t variables when they are used for int32_t arguments.

And note that nsContentUtils::ComparePoints() behaves odd.  It accepts negative offset and compares such value with valid offset simply.  This patch still uses int32_t offset variables in nsRange::CompareNodeToRange() even though it may be negative value if nsINode::IndexOf() returns -1 because the caller of it depends on this behavior.

MozReview-Commit-ID: 8RbOgA86JuT

--HG--
extra : rebase_source : 46d526c6d50dfa2f104439b19b8691477b17a4af
2017-07-19 22:49:52 +09:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Thomas Nguyen 31868155d0 Bug 1363163 - Playing sound in a seperated thread to avoid jank r=masayuki
MozReview-Commit-ID: KYN7fhA541S

--HG--
extra : rebase_source : 27b9bca140f9e4bdeae91a72f5b86745f99a33d4
2017-06-08 11:08:49 +08:00
Paolo Amadini 93316227a7 Bug 1364050 - Part 3 - Remove obsolete code from the nsIDownloadManager implementation. r=mak
A missing dependency in "nsTypeAheadFind.h" is also fixed to allow the removal of the include files from "nsToolkitCompsModule.cpp".

MozReview-Commit-ID: EefZA9bEUW0

--HG--
extra : rebase_source : 8ddfaf72f2b89c6e906561710045ec677e46da79
2017-05-15 11:55:50 +01:00
Sebastian Hengst e35a5d0b79 Backed out changeset f39e67694994 (bug 1302470) for failing mochitest test_bug263683.xul on opt-based builds on Linux and on debug on OSX, at least. r=backout 2017-04-21 19:09:12 +02:00
Sebastian Hengst 0565ac832f Backed out changeset 572662b36c77 (bug 1302470) 2017-04-21 19:09:12 +02:00
Sebastian Hengst 3e0e5a51d2 Backed out changeset a5a77d4a3cf3 (bug 1302470) 2017-04-21 19:09:11 +02:00
Brad Werth 9c187a972f Bug 1302470 Part 3: Branch IsRangeVisible to delegate to IsRangeRendered when range is in viewport. r=masayuki
MozReview-Commit-ID: LZyvt08I9vz

--HG--
extra : rebase_source : a522c79e2f7c4a8fb1ec2bd248a009aa1f4062fc
2017-04-20 10:21:52 -07:00
Brad Werth 8783d43316 Bug 1302470 Part 2: Create a IsRangeRendered function to test range visibility in the display list. r=mstange,smaug
MozReview-Commit-ID: u0N73luIz7

--HG--
extra : rebase_source : b5356bee613912817ee8710b3fb4a0dd919ec68c
2017-03-24 14:45:41 -07:00
Brad Werth 482ab3a774 Bug 1302470 Part 1: Remove trailing whitespace. r=mstange
MozReview-Commit-ID: 1vlEVEn07Qb

--HG--
extra : rebase_source : 1e5bc2b654990d3a71f80ec500fa6f6a3a2c20df
2016-11-09 13:46:17 -08:00
Carsten "Tomcat" Book 114ebfd44a Backed out changeset a4212d9e1d0b (bug 1302470) for eslint failure
--HG--
extra : rebase_source : 07bd41104145d6329f244f77be9c69dae36ff759
2017-04-21 17:11:02 +02:00
Carsten "Tomcat" Book 7b9ea72f65 Backed out changeset 87ae43ab52ed (bug 1302470)
--HG--
extra : rebase_source : 65f6245418155127ecc6ffc9c8347086db78cd4c
2017-04-21 17:10:46 +02:00
Carsten "Tomcat" Book a2d0d81548 Backed out changeset 1d664865e8e2 (bug 1302470)
--HG--
extra : rebase_source : 01a2d19ca9bef74f9fc8d8d69f5a06b0c0d1449c
2017-04-21 17:10:43 +02:00
Brad Werth 3b8a0f6bc7 Bug 1302470 Part 3: Branch IsRangeVisible to delegate to IsRangeRendered when range is in viewport. r=masayuki
MozReview-Commit-ID: LZyvt08I9vz

--HG--
extra : rebase_source : 56f44a967a3647a3c6bc326232467eaf69b7f447
2017-04-20 10:21:52 -07:00
Brad Werth 341fe37811 Bug 1302470 Part 2: Create a IsRangeRendered function to test range visibility in the display list. r=mstange,smaug
MozReview-Commit-ID: u0N73luIz7

--HG--
extra : rebase_source : e9e240074002b08a91f4a05ba33c3a6c069e69db
2017-03-24 14:45:41 -07:00
Brad Werth 22f0b9f51b Bug 1302470 Part 1: Remove trailing whitespace. r=mstange
MozReview-Commit-ID: 1vlEVEn07Qb

--HG--
extra : rebase_source : 9cd9f09370344a511e5653a5672882d6f4bb9d06
2016-11-09 13:46:17 -08:00
Sylvestre Ledru 4fca0399ff Bug 1338086 - Remove useless else blocks in order to reduce complexity in toolkit/components/typeaheadfind r=mstange
MozReview-Commit-ID: IdbRm6QFZb8

--HG--
extra : rebase_source : 3ac0bfafb5f5a14d30ea9557ba9961547dc020ac
2017-02-09 10:57:07 +01:00
Cameron McCormack babad063ff Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Wes Kocher 1b3fc382aa Backed out 5 changesets (bug 1302470) for causing bug 1323200 a=backout
Backed out changeset 005adbf78cd2 (bug 1302470)
Backed out changeset 113f7b13475c (bug 1302470)
Backed out changeset 3d2569996ebc (bug 1302470)
Backed out changeset b92b78271941 (bug 1302470)
Backed out changeset 5b92678afff8 (bug 1302470)


MozReview-Commit-ID: FgeA5OQV8WP

--HG--
extra : histedit_source : 4513cf8271a0bf4d2ca373b5b87aac2c5beeddf9%2C489053b6db62d02f62b4f240fcd9a40fee09dbfb
2016-12-16 16:45:09 -08:00
Brad Werth 123cccb1d7 Bug 1302470 Part 4: Augment the IsRangeVisible function to test for opaque overdraw. r=mstange
MozReview-Commit-ID: F2qbu0WLl9O
2016-11-30 17:03:27 -08:00
Mike de Boer d0a0fb4fcf Bug 1302470 Part 2: Use a hit-test method to determine if the rect of a range is visible on the page or not to the eye, for use in find-in-page. r=mstange,smaug
MozReview-Commit-ID: 9P7gf0GcREv
2016-11-09 15:09:36 -08:00
Brad Werth 065fcdf91a Bug 1302470 Part 1: Remove trailing whitespace. r=mstange
MozReview-Commit-ID: 1vlEVEn07Qb
2016-11-09 13:46:17 -08:00
Sebastian Hengst 75c41a7cee Backed out changeset e7c190a25bfa (bug 1302470)for failing bc browser_Finder.js and chrome test test_browserElement_inproc_Find.html. r=backout 2016-11-20 20:32:31 +01:00
Sebastian Hengst 705e3df40e Backed out changeset cc04b61c9f23 (bug 1302470) 2016-11-20 20:31:31 +01:00
Sebastian Hengst 203e8ec725 Backed out changeset 3ce8e7ccf045 (bug 1302470) 2016-11-20 20:31:26 +01:00
Brad Werth b96e085956 Bug 1302470 Part 3: Augment the IsRangeVisible function to test for opaque overdraw. r=mstange
MozReview-Commit-ID: F2qbu0WLl9O

--HG--
extra : rebase_source : 0191d2efdd2e03ccbb087bc90e5dc031552b9c39
2016-11-09 16:08:56 -08:00
Mike de Boer 87e7094923 Bug 1302470 Part 2: Use a hit-test method to determine if the rect of a range is visible on the page or not to the eye, for use in find-in-page. r=mstange,smaug
MozReview-Commit-ID: 9P7gf0GcREv

--HG--
extra : rebase_source : 498fbc14d6b2e09b8dc7cfb6962b7698a6b38c52
2016-11-09 15:09:36 -08:00
Brad Werth 8aab2da9f4 Bug 1302470 Part 1: Remove trailing whitespace. r=mstange
MozReview-Commit-ID: 1vlEVEn07Qb

--HG--
extra : rebase_source : 9280ba88c7ee0b778813ef778635ad6caa98ce70
2016-11-09 13:46:17 -08:00
Sebastian Hengst 695e85fecd Backed out changeset a71cde237471 (bug 1302470) for failing mochitests browser_Finder.js and test_browserElement_inproc_Find.html and various test failures in mochitest c3 on Linux x64 asan and debug (at least). r=backout 2016-11-17 17:51:24 +01:00
Sebastian Hengst 9a38c0010b Backed out changeset 8243da10a171 (bug 1302470) 2016-11-17 17:49:46 +01:00
Sebastian Hengst 28b6f830fc Backed out changeset 811c1368e51b (bug 1302470) 2016-11-17 17:49:37 +01:00
Brad Werth 378dbf2973 Bug 1302470 Part 4: Augment the IsRangeVisible function to test for opaque overdraw. r=mstange
MozReview-Commit-ID: F2qbu0WLl9O

--HG--
extra : rebase_source : 06a1e73379ad82b3eeb73d3ae280e2637e144b9c
2016-11-09 16:08:56 -08:00
Mike de Boer 7ee955cbdc Bug 1302470 Part 2: Use a hit-test method to determine if the rect of a range is visible on the page or not to the eye, for use in find-in-page. r=mstange,smaug
MozReview-Commit-ID: 9P7gf0GcREv

--HG--
extra : rebase_source : b3565372bf9ab52a126f91795d54a2a22231f150
2016-11-09 15:09:36 -08:00
Brad Werth 01f9e7bb58 Bug 1302470 Part 1: Remove trailing whitespace. r=mstange
MozReview-Commit-ID: 1vlEVEn07Qb

--HG--
extra : rebase_source : 4605902523c4876c046df5e6c3d1f86729283719
2016-11-09 13:46:17 -08:00
Michael Layzell 36e08437d0 Bug 1018486 - Part 8: Various other changes, r=smaug
MozReview-Commit-ID: B0dsomkWgEk
2016-09-07 10:50:45 -04:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Mike de Boer fe68c53f4b Bug 269442 - whole word matching support for nsFind. r=ehsan,dao. ui-r=shorlander
MozReview-Commit-ID: KIDWHyjOSYL
2016-06-28 15:13:53 +02:00