author | Ehsan Akhgari <ehsan@mozilla.com> |
Fri, 28 Jul 2017 13:24:51 -0400 | |
changeset 371858 | 07320f178c144b1a4be67400e2168e04677edec0 |
parent 371857 | 1ba4cfc4fa6289f4ba92886099c131ed85edd8fd |
child 371859 | b5cbc88dede0b871548513e0d2d10b4c9d05178f |
push id | 47611 |
push user | archaeopteryx@coole-files.de |
push date | Sun, 30 Jul 2017 09:20:48 +0000 |
treeherder | autoland@8b577b152383 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | qdot |
bugs | 1385369 |
milestone | 56.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/dom/base/Selection.h +++ b/dom/base/Selection.h @@ -432,17 +432,17 @@ private: // us to perform binary searches when searching for existence of a range, // giving us O(log n) search time. // // Inserting a new range requires finding the overlapping interval, requiring // two binary searches plus up to an additional 6 DOM comparisons. If this // proves to be a performance concern, then an interval tree may be a // possible solution, allowing the calculation of the overlap interval in // O(log n) time, though this would require rebalancing and other overhead. - nsTArray<RangeData> mRanges; + AutoTArray<RangeData, 1> mRanges; RefPtr<nsRange> mAnchorFocusRange; RefPtr<nsFrameSelection> mFrameSelection; RefPtr<nsAutoScrollTimer> mAutoScrollTimer; FallibleTArray<nsCOMPtr<nsISelectionListener>> mSelectionListeners; nsRevocableEventPtr<ScrollSelectionIntoViewEvent> mScrollEvent; CachedOffsetForFrame* mCachedOffsetForFrame; nsDirection mDirection;