Miko Mynttinen
d362fc5ee4
Bug 1512251 - Remove unused render only selection code r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D13829
2018-12-06 19:40:50 +00:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Tim Nguyen
790f9a6593
Bug 1508142 - Remove remains of tree cell-based selection code. r=bzbarsky,bgrins
...
Differential Revision: https://phabricator.services.mozilla.com/D12225
2018-11-22 09:59:02 +00:00
Kristen Wright
7d1c6ec488
Bug 1460439 - Conversion from NS_STYLE_BORDER_STYLE_* macro to StyleBorderStyle::* enum class r=emilio
...
Converted NS_STYLE_BORDER_STYLE_* consts to enum class. Updated corresponding values to enum class. reduced BCCornerInfo struct values to fit StyleBorderStyle values inside struct. Added defaults to switches that do not fully cover all instances of StyleBorderStyle.
2018-11-07 11:56:17 -08:00
Nicholas Nethercote
644f8ac68f
Bug 1497734 - Rename nsStaticAtom subclasses. r=heycam
...
Specifically:
- nsICSSAnonBoxPseudo --> nsCSSAnonBoxPseudoStaticAtom
- nsICSSPseudoElement --> nsCSSPseudoElementStaticAtom
The `nsI` prefix isn't necessary because these are no longer XPIDL types, and
the `StaticAtom` suffix makes their meaning clearer.
2018-10-10 16:49:13 +11:00
Nicholas Nethercote
1f2bbbc16e
Bug 1449787 - Make static atom pointers constexpr. r=froydnj,emilio
...
This saves one word per static atom, per process.
The `nsGkAtoms` change is only a small part of this commit.
In regen_atoms.py:
- There is now only one link name per platform: nsGkAtoms::sAtoms[].
- But there is a new constant per atom, giving the index into
nsGkAtoms::sAtoms[].
- And the `atom!` macro for each atom indexes into nsGkAtoms::sAtoms[] using
the index constant.
- A couple of `*mut` pointers are now `*const`.
Elsewhere, the `(nsStaticAtom*)` casts within the `AppendElement()` calls are
necessary to avoid link errors, presumably due to some template instantiation
wrinkle.
2018-10-04 09:16:11 +10:00
Tim Nguyen
6c4bd03a9b
Bug 1491688 - Introduce ::-moz-tree-row(blur) selector. r=emilio
2018-10-03 08:55:43 +02:00
Cameron McCormack
e84b70ae83
Bug 1482782 - Part 5: Move CSS anonymous box atoms to nsGkAtoms. r=njn,emilio
...
Summary: Depends On D3283
Reviewers: njn!, emilio!
Tags: #secure-revision
Bug #: 1482782
Differential Revision: https://phabricator.services.mozilla.com/D3284
2018-08-15 15:46:39 +10:00
Narcis Beleuzu
ace8b010f2
Backed out 8 changesets (bug 1483121, bug 1482782) for build bustages on nsDirectoryService.cpp. CLOSED TREE
...
Backed out changeset 0a8334bbcf45 (bug 1483121)
Backed out changeset cb2dcb859071 (bug 1482782)
Backed out changeset c834d4ca2eef (bug 1482782)
Backed out changeset 887de0efbb67 (bug 1482782)
Backed out changeset 018fdb50a6be (bug 1482782)
Backed out changeset 33a8aa8096c9 (bug 1482782)
Backed out changeset e3632354f16e (bug 1482782)
Backed out changeset 46f8319bee82 (bug 1482782)
2018-08-15 09:14:41 +03:00
Cameron McCormack
f242832b4e
Bug 1482782 - Part 5: Move CSS anonymous box atoms to nsGkAtoms. r=njn,emilio
...
Summary: Depends On D3283
Reviewers: njn!, emilio!
Tags: #secure-revision
Bug #: 1482782
Differential Revision: https://phabricator.services.mozilla.com/D3284
2018-08-15 15:46:39 +10:00
Andreea Pavel
7770df335d
Merge mozilla-inbound to mozilla-central. a=merge
2018-08-14 19:15:33 +03:00
Margareta Eliza Balazs
a149f5bd41
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-08-14 12:35:25 +03:00
Xidorn Quan
1e77bd0b24
Bug 1483090 - Rename StyleUserInterface to StyleUI. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D3276
2018-08-14 08:37:37 +00:00
Ting-Yu Lin
46d6c38f7b
Bug 1482665 Part 2 - Remove nsPresContext::AppUnitsPerCSSPixel() and replace it with mozilla::AppUnitsPerCSSPixel(). r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D3155
2018-08-13 14:29:28 -07:00
Sahil Bhosale
033431fc85
Bug 1479605 - Remove ENSURE_TRUE in nsFrame.h, and replace it with NS_ENSURE_TRUE_VOID. r=TYLin
2018-08-13 12:42:00 +03:00
Neil Deakin
015c5cc03d
Bug 1473029, have nsTreeBodyFrame::GetSelectionRegion use nsIntRegion instead of nsIScriptableRegion, r=mstange
2018-08-07 09:32:08 -04:00
Emilio Cobos Álvarez
bd72337a2d
Bug 1474900: Assert there are no pending locks when destroying the image proxy. r=tnikkel
2018-08-07 12:54:15 +02:00
Emilio Cobos Álvarez
b6d2dbb4fa
Bug 1478391: Autogenerate StyleAppearance. r=jwatt
...
This builds on bug 1428676 and introduces StyleAppearance, which replaces the
NS_THEME_* constants.
Really sorry for the size of the patch.
There's a non-trivial change in the gtk theme, which I submitted separately as
bug 1478385.
Differential Revision: https://phabricator.services.mozilla.com/D2361
MozReview-Commit-ID: DiSmMWK7Krp
2018-07-26 17:06:17 +02:00
Neil Deakin
057b9062ac
Bug 1473032, remove some old leftover xbl-form-controls bits from menus and trees, r=bz
2018-07-19 06:16:18 -04:00
Jeff Gilbert
70a22b2878
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Chris Peterson
f7ceeaf5cf
Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
...
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.
MozReview-Commit-ID: 5UQVHElSpCr
2018-06-17 22:43:11 -07:00
Boris Zbarsky
6806baf639
Bug 1466851 part 3. Remove some nsITreeBoxObject properties that are unused except via webidl bindings. r=mossop
...
These properties are unused from C++ apart from webidl bindings and the
FakeTreeBoxObject implentations in comm-central are throwing stubs. But
they're used in JS. They are safe to remove from nsITreeBoxObject but we need
to keep an implementation webidl can call into. Properties in this bucket:
selectionRegion, ensureCellIsVisible, scrollToRow, scrollByLines,
scrollByPages, getRowAt, removeImageCacheEntry.
2018-06-05 23:01:55 -04:00
Boris Zbarsky
2b50d85e81
Bug 1466851 part 1. Remove some unused tree box object properties. r=mossop
...
These properties are not used from either JS or C++, and hence can be
removed from both nsITreeBoxObject and TreeBoxObject.webidl. Properties in
this bucket: scrollToCell, scrollToColumn, scrollToHorizontalPosition,
invalidateColumnRange.
2018-06-05 23:01:49 -04:00
Boris Zbarsky
07d0b15cfd
Bug 1466727 part 6. Stop using nsITreeColumn in layout. r=mossop
2018-06-05 23:01:37 -04:00
Boris Zbarsky
c95202f551
Bug 1466727 part 2. Remove use of nsITreeColumn in xpidl interfaces. r=mossop
...
There is one actual behavior change here, in the webidl version of
TreeBoxObject::GetCellAt. I believe this change fixes a leak of the
nsTreeColumn, but could use careful review.
I tried to avoid changes not needed to get this compiling. There will be a lot
more cleanup in the next few changesets.
2018-06-05 23:01:36 -04:00
Emilio Cobos Álvarez
4b8b5e1717
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
...
This was done automatically replacing:
s/mozilla::Move/std::move/
s/ Move(/ std::move(/
s/(Move(/(std::move(/
Removing the 'using mozilla::Move;' lines.
And then with a few manual fixups, see the bug for the split series..
MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Boris Zbarsky
29bdf0fbd6
Bug 1462737. Make AsElement() not compile when called on Element or some subclass. r=mccr8
...
It's just noise if we already have an Element.
2018-05-18 23:37:56 -04:00
Matt Woodrow
b64969f18b
Bug 1460491 - Part 1: Split nsDisplayItem::mVisibleRect into two members, one for each stated purpose. Gets rid of the save/restore since we no longer modify the building rect. r=jnicol
...
MozReview-Commit-ID: 5wcsSoZRN44
2018-05-16 15:56:32 +12:00
Dan Glastonbury
39f56c63ae
Bug 1457810: Move CalcComplexColor to StyleComplexColor. r=xidorn
...
Move from nsStyleColor::CalcComplexColor to StyleComplexColor::CalcColor.
MozReview-Commit-ID: FkYovvPZLc8
2018-05-09 17:03:02 +10:00
Chris Peterson
5d6b16ea3b
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
2018-04-28 12:50:58 -07:00
Boris Zbarsky
d31be385d3
Bug 1455674 part 14. Remove use of nsIDOMElement in layout. r=qdot
2018-04-26 23:37:33 -04:00
Boris Zbarsky
c57db8c7b3
Bug 1455674 part 12. Remove nsIDOMElement use from xpidl in layout. r=mossop
2018-04-26 23:36:30 -04:00
Adrian Wielgosik
38f9a663ce
Bug 1447389 - Remove nsIDOMNodeList. r=bz
...
MozReview-Commit-ID: 11szZP6dS6V
2018-04-25 23:01:30 +02:00
Boris Zbarsky
162522356c
Bug 1452185 part 3. Remove unnecessary nsIDOMXULElement includes. r=qdot
...
MozReview-Commit-ID: Ft5MnbFtyB9
2018-04-09 16:30:32 -04:00
Emilio Cobos Álvarez
65978b31f3
Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
...
Couldn't find an easy way of splitting these up :(
MozReview-Commit-ID: 2kTZ5McREUT
2018-04-09 11:19:49 +02:00
Noemi Erli
b15aabf388
Backed out 3 changesets (bug 1452080) for bustage in /builds/worker/workspace/build/src/layout/base/nsCSSFrameConstructor.cpp on a CLOSED TREE
...
Backed out changeset 7f5104c7a242 (bug 1452080)
Backed out changeset 806a9c95a243 (bug 1452080)
Backed out changeset bffebe8aa254 (bug 1452080)
2018-04-09 11:18:12 +03:00
Emilio Cobos Álvarez
9c4328ca42
Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
...
Couldn't find an easy way of splitting these up :(
MozReview-Commit-ID: 2kTZ5McREUT
2018-04-09 09:57:55 +02:00
Bogdan Tara
1af77ddd59
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-03-27 12:15:05 +03:00
Tim Nguyen
b231b41757
Bug 1381453 - Support SVG context paint on ::-moz-tree-twisty list-style-image. r=dholbert
...
MozReview-Commit-ID: E9966Bwog5W
2018-03-27 00:08:16 +00:00
Jonathan Watt
baf9ffb02b
Bug 1448714 - Fix up comments referring to 'style context' after the rename of nsStyleContext. r=emilio
2018-03-23 13:49:21 +00:00
Emilio Cobos Álvarez
1d4859a89a
Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE
...
MozReview-Commit-ID: JPopq0LudD
2018-03-22 20:06:24 +01:00
Emilio Cobos Álvarez
97286b35c8
Back out changeset b683bb3f22a1 (Bug 1447483) for not landing with all the files. r=me on a CLOSED TREE
...
This reverts commit 1808914126bb9f9e4a82d2c3d7ac961885fe7d62.
MozReview-Commit-ID: 5skESBseEvo
2018-03-22 20:05:22 +01:00
Emilio Cobos Álvarez
1f5d8de5cc
Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt
...
MozReview-Commit-ID: JPopq0LudD
2018-03-22 19:48:42 +01:00
Emilio Cobos Álvarez
b1a35fbef7
Bug 1447358: Unifdef the old style system code. r=jwatt
...
Summary:
This has been automatically generated using:
http://dotat.at/prog/unifdef/
And:
find $OBJDIR -type f -name '*.h' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
find $OBJDIR -type f -name '*.cpp' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
MozReview-Commit-ID: I4NdKqbMXzJ
Reviewers: jwatt
Bug #: 1447358
Differential Revision: https://phabricator.services.mozilla.com/D779
2018-03-21 10:20:34 +01:00
Boris Zbarsky
aec275fadf
Bug 1446711 part 8. Get rid of nsIDOMMouseEvent. r=qdot
...
MozReview-Commit-ID: 2FK1MA4LGZj
2018-03-20 00:16:07 -04:00
Ryan VanderMeulen
fcc97c63ae
Bug 1445105 - Remove various MSVC de-optimizations used to work around compiler bugs which are no longer needed. r=dmajor
...
This reverts the following bugs: 703135, 977538, 1274450, 1403220
2018-03-19 12:42:01 -04:00
Boris Zbarsky
5233731aff
Bug 1444686 part 4. Get rid of nsIDOMDataTransfer::Get/SetDropEffectInt. r=mystor
...
MozReview-Commit-ID: EQ8KXMf4mnR
2018-03-13 16:23:59 -04:00
Boris Zbarsky
5151f5d7c4
Bug 1447472 part 2. Remove nsIDOMCustomEvent. r=qdot
...
MozReview-Commit-ID: 3NPqLIU8cka
2018-03-26 14:53:51 -04:00
Matt Woodrow
6f1864699b
Bug 1436904 - Part 1: Add a static constructor function for display items. r=Bas
2018-02-13 13:43:28 +13:00
Dorel Luca
3276af0faa
Backed out 3 changesets (bug 1436904) for many crashes see bugs: 1440281, 1440302, 1440303, 1440313. a=backout
...
Backed out changeset 27f0762d4472 (bug 1436904)
Backed out changeset 27640f52e188 (bug 1436904)
Backed out changeset 2b4d117c27dc (bug 1436904)
2018-02-22 17:28:59 +02:00