Olli Pettay
57474eca2b
Bug 1394719 - Optimize HasRTLChars usage and reduce malloc/free, r=ehsan
2017-08-31 14:54:46 +03:00
Olli Pettay
6328b18cd6
Bug 1393232, use nsStringBuffer for nsTextFragment::m2b r=ehsan
2017-08-31 14:48:07 +03:00
Eric Rahm
bf94c13168
Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
...
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.
2017-08-16 16:48:52 -07:00
Masayuki Nakano
18a829648e
Bug 1392181 - part1: nsTextFragment::SetTo() shouldn't use CheckedInt r=smaug
...
nsTextFragment::SetTo() may be hot path of performance test but it needs to be
careful for computing allocation size. However, nsTextFragment uses uint32_t
with only 29 bits to store its text length and using CheckedInt sometimes causes
appearing CheckedInt in profile. So, using CheckedInt in it doesn't make sense
(and also wrong).
This patch defines NS_MAX_TEXT_FRAGMENT_LENGTH and make SetTo() check the length
of new text by itself.
MozReview-Commit-ID: 5zHtU1Kk6X2
2017-08-21 17:23:41 +09:00
Masayuki Nakano
6efc3e7f2f
Bug 1391538 - nsTextFragment for text nodes in <input> or <textarea> shouldn't store text as single byte characters even if all characters are less than U+0100 r=smaug
...
nsTextFrame stores text as single byte character array if all characters are
less than U+0100. Although, this saves footprint, but retrieving and modifying
text needs converting cost. Therefore, if it's created for a text node in
<input> or <textarea>, it should store text as char16_t array.
MozReview-Commit-ID: 9Z82rketT7g
2017-08-18 16:05:16 +09:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Alexander Surkov
e63299dc7c
Bug 1372985 - ARIA owned children ordering may be incorrect. r=eeejay
2017-06-29 14:30:58 -04:00
Nicholas Nethercote
26b6e79d96
Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
...
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.
MozReview-Commit-ID: 1VS4Dney4WX
2016-04-27 14:16:50 +10:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Andrea Marchesini
26e004fd3c
Bug 1156632 - Remove unused forward class declarations - patch 1 - dom/base, r=ehsan
2015-04-22 08:29:15 +02:00
Jim Blandy
2bb4503427
Bug 1145051: Use MOZ_WARN_UNUSED_RESULT instead of NS_WARN_UNUSED_RESULT. r=glandium
2015-03-19 00:46:40 -07:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Mike Hommey
715db83e04
Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
2015-02-02 09:56:13 +09:00
David Major
d85f8b5439
Bug 1097283: Fix count/byte mismatches in NS_ABORT_OOM calls. r=froydnj
2014-11-12 21:13:44 +13:00
David Major
4954e07571
Backed out changeset 8a4595cc5ec4 for Linux build failure on a CLOESD TREE
...
just kidding it's a CLOSED TREE
2014-11-12 17:19:15 +13:00
David Major
3da2a00813
Bug 1097283: Fix count/byte mismatches in NS_ABORT_OOM calls. r=froydnj
2014-11-12 15:42:53 +13:00
Birunthan Mohanathas
e9068bbc4f
Bug 946065 - Part 12: Move content/base/ to dom/ and flatten subdirectories. r=peterv
2014-10-25 20:25:22 +03:00