Emilio Cobos Álvarez
54f1c009a9
Bug 1384542: Move GetParent and IsLinkContext to GeckoStyleContext. r=heycam
...
MozReview-Commit-ID: C19yGcphixX
2017-07-31 14:32:59 +02:00
cku
1af7d919cd
Bug 1301245 - Part 2. Do not resolve a style image if the given url has a fragment. r=heycam
...
MozReview-Commit-ID: 18LFjlWZBLl
2017-07-26 11:21:30 +08:00
Emilio Cobos Álvarez
4b6d7fc287
Bug 1381844: Be more explicit about the kind of style context we handle all the time. r=bholley
...
MozReview-Commit-ID: E0mdkhU3XBz
2017-07-22 18:02:57 +02:00
Emilio Cobos Álvarez
8a11661a50
Bug 1366721: Restyle additional style contexts in ServoRestyleManager. r=heycam
...
I was about to assert that other non-primary frames don't have additional style
contexts everywhere, but that wouldn't make much sense, given they don't
correspond to an element we could selector-match against.
MozReview-Commit-ID: EtAQbSg6nP6
2017-07-20 18:29:14 +02:00
Cameron McCormack
bf30ce65e2
Bug 1380133 - Part 4: Make CalcStyleDifferenceInternal not cache any new structs on ServoStyleContexts when in a traversal. r=emilio
...
MozReview-Commit-ID: Eu4MvdQUBor
---
layout/generic/nsFrame.cpp | 8 ++++++++
layout/style/nsStyleContext.cpp | 11 +++++++----
layout/tables/nsTableFrame.cpp | 8 ++++++++
3 files changed, 23 insertions(+), 4 deletions(-)
2017-07-21 11:42:43 +08:00
Sebastian Hengst
3c1e966ccf
Backed out changeset cc720d72d024 (bug 1380133)
2017-07-20 15:40:06 +02:00
Cameron McCormack
2f25a9fd35
Bug 1380133 - Part 4: Make CalcStyleDifferenceInternal not cache any new structs on ServoStyleContexts when in a traversal. r=emilio
...
MozReview-Commit-ID: Eu4MvdQUBor
2017-07-19 15:11:09 +08:00
Manish Goregaokar
63c907be23
Bug 1367904 - Part 11: stylo: Use ServoStyleContext in ServoStyleSet/ServoRestyleManager; r=bholley
...
MozReview-Commit-ID: JJOBixTSCZq
2017-07-17 21:00:54 -07:00
Emilio Cobos Álvarez
955cd0ceae
Bug 1379505: Account for the page frame in UpdateStyleOfOwnedAnonBoxes. r=heycam
...
MozReview-Commit-ID: L2ouruOMmIq
2017-07-10 10:16:19 +02:00
L. David Baron
e4eca7e523
Bug 1377497 - Pass the correct writing mode to SizeComputationInput::DisplayInitOffsetsEnter. r=jfkthame
...
This avoids asserting when the writing mode doesn't correspond to the
one stored (DEBUG-only) in aPercentBasis.
MozReview-Commit-ID: KKqms9X17SS
2017-07-07 09:20:56 -07:00
Sebastian Hengst
9a573eb769
Backed out changeset f07caa23cdbb (bug 1377497) for bustage at layout/generic/ReflowInput.cpp:2543: macro "DISPLAY_INIT_OFFSETS" passed 6 arguments, but takes just 5. r=backout on a CLOSED TREE
2017-07-07 18:52:50 +02:00
L. David Baron
4c83ba1936
Bug 1377497 - Pass the correct writing mode to SizeComputationInput::DisplayInitOffsetsEnter. r=jfkthame
...
This avoids asserting when the writing mode doesn't correspond to the
one stored (DEBUG-only) in aPercentBasis.
MozReview-Commit-ID: KKqms9X17SS
2017-07-07 09:20:56 -07:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Mats Palmgren
04002d3462
Bug 1377910 - Don't bother calling DisassociateRequestFromFrame if the frame doesn't have the HasImageRequest bit since it's a no-op in that case. r=dholbert
...
MozReview-Commit-ID: 4LlIFN7tARr
2017-07-05 23:07:11 +02:00
Boris Zbarsky
6cfed605fc
Bug 1376640. Fix dynamic updates when an inline that sits between a first-letter and its block changes style. r=heycam
...
MozReview-Commit-ID: 8osMUpYVRvR
2017-06-28 22:19:35 -07:00
Masayuki Nakano
a38c1205f8
Bug 1375825 - part2: ContentEventHandler::ExpandToClusterBoundary() should check the return value of nsTextFrame::PeekOffsetCharacter() r=jfkthame
...
ContentEventHandler::ExpandToClusterBoundary() doesn't check the return value of nsTextFrame::PeekOffsetCharacter(). Therefore, it may set its result to reversed offset. (e.g., when aForward is true and offset is 6, the result may be 5. When aForward is false and offset is 5, the result may be 6.)
For avoiding that, ContentEventHandler::ExpandToClusterBoundary() should check the result and only when it returns nsIFrame::FOUND, it should compute the proper offset.
On the other hand, it's too bad for ContentEventHandler that nsTextFrame::PeekOffsetCharacter() to return nsIFrame::CONTINUE_UNSELECTABLE when the user-select style is "all" because IME doesn't expect such cases.
Therefore, this patch adds additional argument to nsIFrame::PeekOffsetCharacter(), aOptions which is a struct containing bool members. The reason why it's not a bit mask enum is, such struct doesn't cause simple mistake at checking the value and the code is shorter. When mIgnoreUserStyleAll of it is true, this patch makes nsTextFrame not return nsIFrame::CONTINUE_UNSELECTABLE.
MozReview-Commit-ID: ACNNBTP92YZ
2017-06-29 10:58:16 +09:00
Emilio Cobos Álvarez
23662f6e46
Bug 1375674: Track the owner that represents the changes handled, and fix a bunch of issues while at it. r=heycam
...
In particular, this fixes:
* Restyling of <area> elements that reuse the primary frame mapping for the
image map.
* Restyling of children of display: contents elements when the display:
contents element generates a hint.
* Restyling of out-of-flows (if my analysis in the bug is right).
* Restyling of the ::backdrop pseudo-element.
* Restyling of the Viewport frame.
I only managed to do a reftest for the second one, but the rest of them are
covered by the assertions added.
MozReview-Commit-ID: E7QtiQ1vPqu
2017-06-23 19:31:35 +02:00
Emilio Cobos Álvarez
3adff9373d
Bug 1375674: Don't use the table change hints for the table wrapper frame. r=heycam
...
MozReview-Commit-ID: 7Qe07N6zvIt
2017-06-23 19:30:16 +02:00
Boris Zbarsky
de5e036fcb
Bug 1324618 part 5. Add a way to pass a different style context for later continuations to UpdateStyleOfOwnedChildFrame. r=emilio
...
We're going to want this for first-letter, because the primary frame and its continuations have different styles.
MozReview-Commit-ID: 6ZjtnRWXgd9
2017-06-26 23:35:08 -07:00
Carsten "Tomcat" Book
b53064f4dc
Backed out changeset b40d51d1f78e (bug 1324618)
2017-06-27 10:39:45 +02:00
Boris Zbarsky
b3c9f5af96
Bug 1324618 part 5. Add a way to pass a different style context for later continuations to UpdateStyleOfOwnedChildFrame. r=emilio
...
We're going to want this for first-letter, because the primary frame and its continuations have different styles.
MozReview-Commit-ID: 6ZjtnRWXgd9
2017-06-26 23:35:08 -07:00
Wes Kocher
350e28ef70
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: 1dQBCh5pBY6
2017-06-22 14:21:39 -07:00
Wes Kocher
5fea640772
Merge autoland to central, a=merge
...
MozReview-Commit-ID: DBM5ExEXtYD
2017-06-22 14:10:19 -07:00
Thinker K.F. Li
fff8a91b03
Bug 1372863 - Fix dump message of frame tree for preserves-3d. r=mattwoodrow
2017-06-21 04:56:00 -04:00
Emilio Cobos Álvarez
fc8b78f775
Bug 1374752: Pack together the StyleSet, ChangeList and handled change hints, and use the latter with anonymous boxes while we're at it. r=heycam
...
MozReview-Commit-ID: DiWcUwD9po5
2017-06-20 23:21:27 +02:00
Boris Zbarsky
7d9cc57ca2
Bug 1375315. Make sure to update block pseudo-element styles on various anonymous blocks. r=emilio
...
MozReview-Commit-ID: HBabvfWYgdP
2017-06-22 11:24:11 -04:00
Boris Zbarsky
b5761d0213
Bug 1374761 part 1. Properly restyle the viewport and its child anonymous box when we do a restyle. r=heycam
...
The child anon box may be an nsHTMLScrollFrame, a nsRootBoxFrame, or a
nsSimplePageSequenceFrame. nsHTMLScrollFrame already knows how to deal with
its anonymous box kids, nsRootBoxFrame doesn't have any, and the next changeset
will deal with anon box kids of nsSimplePageSequenceFrame.
MozReview-Commit-ID: 2ZV061EhRmc
2017-06-21 11:45:12 -04:00
Markus Stange
5c23434847
Bug 1370034 - Call SetWindowTransform with the right values from -moz-window-transform(-origin). r=dbaron
...
MozReview-Commit-ID: 3IVl3kdbpTd
2017-06-19 00:49:52 -04:00
Markus Stange
8683838880
Bug 1370034 - Implement UpdateWidgetProperties for top level windows and for popups, and call nsIWidget::SetWindowShadow. r=dbaron
...
MozReview-Commit-ID: 9ooCdDRLOSq
2017-06-16 15:08:30 -04:00
Cameron McCormack
95368ca21c
Backout bug 1291457 and bug 1370034 for bustage.
2017-06-19 13:55:15 +08:00
Markus Stange
09c7505b59
Bug 1370034 - Call SetWindowTransform with the right values from -moz-window-transform(-origin). r=dbaron
...
MozReview-Commit-ID: 3IVl3kdbpTd
2017-06-19 00:49:52 -04:00
Markus Stange
85ce57d20a
Bug 1370034 - Implement UpdateWidgetProperties for top level windows and for popups, and call nsIWidget::SetWindowShadow. r=dbaron
...
MozReview-Commit-ID: 9ooCdDRLOSq
2017-06-16 15:08:30 -04:00
Cameron McCormack
d5752992c6
Bug 1364361 - Part 1: Refactor frame anon box restyling machinery so it can return a list of anon boxes. r=bholley,bz
...
MozReview-Commit-ID: 3InVAUw8djN
* * *
Bug 1364361 - Followup to address review comment. r=me
MozReview-Commit-ID: IpdoSon9MAj
2017-06-16 17:22:33 +08:00
Sebastian Hengst
93e7f53982
Backed out changeset e7ec499159f7 (bug 1364361) for bustage at nsIFrame.h:3348: bad implicit conversion constructor for 'OwnedAnonBox'. r=backout
2017-06-16 11:19:03 +02:00
Cameron McCormack
df3c33576a
Bug 1364361 - Part 1: Refactor frame anon box restyling machinery so it can return a list of anon boxes. r=bholley,bz
...
MozReview-Commit-ID: 3InVAUw8djN
* * *
Bug 1364361 - Followup to address review comment. r=me
MozReview-Commit-ID: IpdoSon9MAj
2017-06-16 15:32:40 +08:00
Sebastian Hengst
2e4ae50c3e
Backed out changeset 12db2d364b64 (bug 1364361) for heap write hazard. r=backout
2017-06-16 09:27:42 +02:00
Cameron McCormack
4e8ef7f9fb
Bug 1364361 - Part 1: Refactor frame anon box restyling machinery so it can return a list of anon boxes. r=bholley,bz
...
MozReview-Commit-ID: 3InVAUw8djN
2017-05-22 13:14:32 +08:00
Manish Goregaokar
533734efc7
Bug 1373018 - Part 10: stylo: Remove StyleSource; r=bholley
...
MozReview-Commit-ID: 4IcROeDNoBA
2017-06-10 22:27:45 -07:00
Manish Goregaokar
e8a3c268a8
Bug 1373018 - Part 8: stylo: Move nsStyleContext::SetStyle to GeckoStyleContext; r=bholley
...
MozReview-Commit-ID: ycXu95whnG
2017-06-10 22:27:45 -07:00
Carsten "Tomcat" Book
064d6c5d0c
Merge mozilla-central to autoland
2017-06-14 14:51:37 +02:00
Matt Woodrow
c5d40f3af7
Bug 1359709 - Use the DOM-ordering parent frame when deciding if a frame combines its transform with ancestors. r=dbaron
2017-06-14 13:47:50 +12:00
cku
9214b4d956
Bug 1371267 - In nsIFrame::BuildDisplayListForChild, we should get effect-set from the child. r=mattwoodrow
...
Obvious error made in bug 1205475.
MozReview-Commit-ID: Lh0eRf20JwV
2017-06-14 11:34:16 +08:00
Alexis Beingessner
3117218f13
Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
...
MozReview-Commit-ID: K1WUIOnvazF
2017-06-13 11:00:10 -04:00
Sebastian Hengst
1b1d14e565
Backed out changeset 3d1ce85e6348 (bug 1088760) for bustage, at least on Android at layout/generic/nsPluginFrame.cpp:1612. r=backout
2017-06-13 00:30:03 +02:00
Alexis Beingessner
c6fbc5e17e
Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
...
MozReview-Commit-ID: K1WUIOnvazF
2017-06-12 17:32:48 -04:00
sotaro
551d6c6ee1
Bug 1359993 - Reduce invalidation of video r=nical
2017-06-05 20:55:14 +09:00
Jonathan Kew
b47b8a172b
Bug 1369355 - Simplify nsIFrame::GetOverflowAreasProperty, as callers already know whether a property is present. r=mats
2017-06-01 15:34:46 +01:00
Ryan VanderMeulen
3665b7f0f2
Merge inbound to m-c. a=merge
2017-05-31 20:25:52 -04:00
Brad Werth
5b390abfab
Bug 1355675 Part 1: Add optional inCSSUnits parameters to GetTransformMatrix and GetTransformToAncestor. r=mattwoodrow
...
MozReview-Commit-ID: EA5uqeoUWE3
2017-05-30 09:05:52 -07:00
Mats Palmgren
49057b2c0a
Bug 1369037 - Make the assertions about NS_FRAME_PART_OF_IBSPLIT stricter and update the associated frame properties in nsContainerFrame::DestroyFrom instead of nsFrame::DestroyFrom. r=jfkthame
...
MozReview-Commit-ID: G8NQ70xzkQU
2017-05-31 21:29:49 +02:00