Commit Graph

29435 Commits

Author SHA1 Message Date
Geoff Brown
293dce6192 Bug 1245884 - Skip some layout/reftests/css-grid reftests on Android Debug only, for being too slow; r=me 2016-02-05 07:04:27 -07:00
Jamie Nicol
56e070e354 Bug 1241917 - Restrict subframe's displayport base to root composition bounds. r=tn
Previously displayport bases were computed as the intersection of the
scrollport with the dirtyrect. However the dirtyrect covers what is
rendered, and with displayports what we render can be much larger than
what is visible. With displayport bases intended to represent what was
visible, this was a problem. By restricting them to the root composition
size this makes them more closely match what is visible. To do this more
properly we'd want to intersect the dirtyrect with the scroll clip of
every ancestor scroll frame, not just the root composition bounds.
2016-02-04 17:53:56 +00:00
Brendan Dahl
79e271901d Bug 1104916 - Implement CSS media query display-mode. r=cam 2016-02-04 13:34:00 +01:00
Carsten "Tomcat" Book
2a00c628b2 Backed out changeset 2257088c6b04 (bug 1188802) 2016-02-05 11:19:11 +01:00
John Daggett
ae14fdcda2 Bug 1188802 - only rebuild local webfont rules when needed. r=heycam 2016-02-05 16:46:27 +09:00
Geoff Brown
18b93fe51d Bug 1245634 - Skip layout/generic/crashtests/730559.html on Android Debug only, for being too slow; r=me 2016-02-04 07:37:20 -07:00
William Chen
23a07b65e7 Bug 1245242 - Normalize to unit vector for DOMMatrix.rotateAxisAngleSelf. r=roc 2016-02-04 00:30:00 -08:00
Bob Owen
fdbee7016b Bug 1245246: Add null check for mDocViewerPrint in nsPrintEngine::FirePrintingErrorEvent. r=roc 2016-02-04 08:03:52 +00:00
Ting-Yu Lin
6f377eae5e Bug 591737 - Add pref for details and summary elements. r=bz 2016-01-20 23:20:43 +08:00
Ting-Yu Lin
53d8aa8466 Bug 591737 - Add reftest for mouse click on summary. r=bz 2016-01-20 23:20:42 +08:00
Ting-Yu Lin
ff7ce82e2d Bug 591737 - Avoid dispatch mouse double click to content not in doc. r=smaug
When double-clicking on a default anonymous <summary> element, the first
eMouseClick will make the summary element being removed from the
document. This generates an assert in
PresShell::HandleEventWithTarget().

To prevent this assert, ensure the mouseContent is in document before
dispatching the eMouseDoubleClick event.

Since GetCrossShadowCurrentDoc() was deprecated, replace it with
GetComposedDoc().
2016-01-20 23:20:42 +08:00
Ting-Yu Lin
83158b9e2b Bug 591737 - Add crashtest for details and summary. r=bz 2016-01-20 23:20:42 +08:00
Ting-Yu Lin
6d9d4d4b18 Bug 591737 - Add reftests for details and summary. r=bz 2016-01-20 23:20:41 +08:00
Ting-Yu Lin
0d567179f1 Bug 591737 - Provide a default summary element by DetailsFrame. r=bz
If a <details> lacks a direct <summary> child, we need to construct a
default one.
2016-01-20 23:20:41 +08:00
Ting-Yu Lin
cccd994b1c Bug 591737 - Construct details and summary in nsCSSFrameConstructor. r=bz 2016-02-02 17:39:49 +08:00
Ting-Yu Lin
e93b94e072 Bug 591737 - Add SummaryFrame. r=bz 2016-02-02 17:39:06 +08:00
Ting-Yu Lin
7371372968 Bug 591737 - Add DetailsFrame. r=bz 2016-01-20 23:20:41 +08:00
CJKu
3a3f810dc5 Bug 1244628: compare nsStyleImageLayers::mAttachmentCount in nsStyleImageLayers::CalcDifference. r=dbaron. 2016-02-04 14:11:35 +08:00
CJKu
e2ea36b523 Bug 1244598 - Move resource files of w3c-css/masking into ./support subdir. r=dbaron 2016-02-04 13:58:44 +08:00
Daniel Holbert
c45cc2c94b Bug 1241021 part 4: Extend mochitest test_initial_storage.html to test that uppercase Webkit DOM accessors for css properties are functional. r=bz 2016-02-03 20:17:48 -08:00
Daniel Holbert
41f56b637a Bug 1241021 part 3: Refactor CSS mochitest test_initial_storage.html to perform its DOM accessor consistency-checks via a helper-function. r=bz 2016-02-03 20:17:46 -08:00
Kartikaya Gupta
1545f231f6 Bug 990916 - On displayport expiry, trigger another round of expiry up the ancestor chain. r=tnikkel 2016-02-03 19:13:35 -05:00
Kartikaya Gupta
8fcf9bbec2 Bug 990916 - When setting a displayport, schedule a timer to remove it as well. r=tnikkel 2016-02-03 19:13:35 -05:00
Kartikaya Gupta
805de86e6a Bug 990916 - Track if a scrollframe is a scroll parent for something else. r=tnikkel 2016-02-03 19:13:35 -05:00
Kartikaya Gupta
0933773da2 Bug 990916 - Disable synth mousemove events during pointer event testing, since the test doesn't expect them and fails. r=smaug 2016-02-03 19:13:34 -05:00
L. David Baron
e6833df38e Bug 823483 patch 6 - Tests r=dholbert
Our behavior on these tests is reasonably close to matching Chromium
thanks to the combination of patches 1, 3, and 4, and 5.
2016-02-04 09:43:03 +11:00
L. David Baron
4a26b9b900 Bug 823483 patch 5 - Make (again) percentage width on text inputs make intrinsic minimum width be 0. r=dholbert
This restores the quirky behavior for text inputs, which was removed by
patch 2, but only halfway (for width but not max-width), which matches
Chromium and Edge.
2016-02-04 09:43:02 +11:00
L. David Baron
07fb9e7d19 Bug 823483 patch 4 - Make a percentage max-width override a fixed width for replaced element intrinsic size computation. r=dholbert
This just reorders the if-else chain to change which conditions are
tested first.  Prior to patch 1, the order didn't matter, but with patch
1, the order does matter, and the order that we happened to have was the
opposite of the one that matches Chromium and Edge.
2016-02-04 09:43:02 +11:00
L. David Baron
f0d1219361 Bug 823483 patch 3 - Limit effect of percentage width and max-width on intrinsic size to elements with replaced element sizing. r=dholbert
This reduces the set of elements to which this quirky behavior applies.

This matches the behavior of Chromium and Edge.
2016-02-04 09:43:02 +11:00
L. David Baron
ca971aaf47 Bug 823483 patch 2 - Add frame state bit to indicate frame classes that do replaced-element-like sizing. r=dholbert
This is needed for patch 3.
2016-02-04 09:43:02 +11:00
L. David Baron
3f1445305c Bug 823483 patch 1 - Check for percentage max-width in addition to percentage width when deciding to ignore intrinsic min-width of replaced elements. r=dholbert
This (modulo changes in later patches) matches the behavior of Chromium
and Edge.  It increases the set of elements to which this quirky
behavior applies.
2016-02-04 09:43:02 +11:00
L. David Baron
16344e5b20 Bug 1236745 - Fix infinite loop resulting from block formatting context entering resize oscillation due to considering floats over its whole height when sizing it. r=dholbert
What's happening here is that we enter an infinite loop by oscillating
between two states.  The code assumes that (a) the available space will
never grow, only stay the same or shrink, and (b) that we should break
out of the loop if it stays the same.  This also means we hit the
assertion about the available space growing every other time through the
loop.

This is in the inner loop in nsBlockFrame::ReflowBlockFrame that was
introduced in https://hg.mozilla.org/mozilla-central/rev/80ef9bb2c2e9 .

The problem is fundamentally a logic error in that code.  The makes the
assumption that if you reduce the width available to a block formatting
context or replaced block-level element, its height does not shrink.
(The "replaced block" (really block formatting context) in this case, as
in the original testcase, is a scroll frame.  I didn't debug the
original testcase enough to figure out what caused its sizing
characteristics, although a percentage-width image does seem like the
most likely candidate.)

Without the patch, the reftest test (but not reference) hangs, as does
the semi-simplified test in the bug (given a narrow window).

With the patch, neither the semi-simplified test in the bug nor the
reference hangs, and the reftest passes.
2016-02-04 09:41:44 +11:00
Daniel Holbert
31facc61e2 Bug 1245406: In ReflowBlockFrame, use Maybe<> to destroy & reconstruct a stack-allocated object, instead of an explicit call to destructor & placement 'new'. r=dbaron 2016-02-03 12:37:23 -08:00
Carsten "Tomcat" Book
e12a6be108 Merge mozilla-central to mozilla-inbound 2016-02-03 12:27:02 +01:00
Carsten "Tomcat" Book
7aac6ac635 merge mozilla-inbound to mozilla-central a=merge 2016-02-03 11:59:20 +01:00
Christoph Kerschbaumer
673cabc889 Bug 1195173 - Test asyncopen2 security checks for stylesheets (r=bz,ehsan) 2016-02-02 20:35:42 -08:00
Christoph Kerschbaumer
a4324a3f81 Bug 1195173 - Apply CSP to preloaded styles within layout/style/Loader.cpp (r=bz) 2016-02-02 20:35:30 -08:00
Christoph Kerschbaumer
78022e265e Bug 1195173 - Use channel->ascynOpen2 layout/style/Loader.cpp (r=bz) 2016-02-02 20:35:02 -08:00
Ting-Yu Lin
3375e85115 Bug 1240917 - Do not show caret in empty input on Fennec. r=roc
Per request in bug 1240917 comment 15, we decided not to show caret when
single press on an empty input. This effectively reverts the work in Bug
1230582.
2016-02-02 14:32:31 +08:00
Oriol
5ee3cbe6e7 Bug 1243125 - Reftest for floats overflowing container, with diverse writing-modes. r=jfkthame 2016-02-03 09:24:29 +00:00
Jonathan Kew
8645f9a238 Bug 1243125 - patch 2 - Don't ever set NS_FRAME_TRUNCATED for orthogonal flows. r=dholbert 2016-02-03 09:24:28 +00:00
Oriol
9411f7fd39 Bug 1243125 - patch 1 - Check block size instead of height when detecting truncated frames. r=jfkthame 2016-02-03 09:24:26 +00:00
Jonathan Kew
43dec76c41 Bug 1243125 - patch 0 - Relax overly-harsh writing mode assertions in nsReflowMetrics size accessors. r=dholbert 2016-02-03 09:24:24 +00:00
William Chen
8ea29d9658 Bug 1241575 - Use transform property syntax to parse WebKitCSSMatrix transform list. r=heycam 2016-02-01 16:45:09 -08:00
David Anderson
7e10df7aa6 Add software mix-blend mode support to the D3D9 compositor. (bug 1243071 part 3, r=bas,mattwoodrow) 2016-02-01 16:28:00 -08:00
Jim Mathies
bcc264e1dc Bug 1243413 - Avoid hiding windowed plugins that aren't contained within the active scroll frame. r=roc 2016-02-01 16:50:57 -06:00
Geoff Brown
c2fe10f190 Bug 1241907 - Grant runtime permissions before running browser tests; r=jmaher 2016-02-01 15:52:34 -07:00
Alexander Surkov
cf03195102 Bug 1220502 - ignore not visible text nodes for tree update, r=tbsaunde, roc 2016-02-01 17:05:45 -05:00
Daniel Holbert
36c1224fd8 Bug 1244166: Don't ignore stroke/fill properties in high-contrast mode, since doing so can produce icons that are invisible or whose colors are unrelated to the user's chosen high-contrast colors. r=longsonr 2016-02-01 11:23:09 -08:00
Nicholas Nethercote
3ffa2e4fad Bug 1244992 - Avoid double-counting in various refcounted types related to nsCSSValue. r=heycam.
Also, GridTemplateAreasValue::SizeOfIncludingThis() wasn't measuring |this|, so
the patch fixes that.
2016-02-02 15:18:16 +11:00