Граф коммитов

48996 Коммитов

Автор SHA1 Сообщение Дата
William Chen a7c2c21d89 Bug 1245242 - Normalize to unit vector for DOMMatrix.rotateAxisAngleSelf. r=roc 2016-02-04 00:30:00 -08:00
Bob Owen bb75a620a0 Bug 1245246: Add null check for mDocViewerPrint in nsPrintEngine::FirePrintingErrorEvent. r=roc 2016-02-04 08:03:52 +00:00
Ting-Yu Lin 1e5d352993 Bug 591737 - Add pref for details and summary elements. r=bz
--HG--
extra : commitid : C40ecHqSxrO
extra : rebase_source : 937479989a52b57f3dec07a74dd9dad17ff69db7
2016-01-20 23:20:43 +08:00
Ting-Yu Lin c05be25fcd Bug 591737 - Add reftest for mouse click on summary. r=bz
--HG--
extra : commitid : A6Rvr5oDl6V
extra : rebase_source : b2ad4d8cfd5b5bfa8785d6ef1df465da98f7e770
2016-01-20 23:20:42 +08:00
Ting-Yu Lin 0beafc0ac8 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().

--HG--
extra : commitid : K9pCdof8z3f
extra : rebase_source : 3adfdb9938de30fd0ca365168c33dcdcef8ca285
2016-01-20 23:20:42 +08:00
Ting-Yu Lin 01065150c0 Bug 591737 - Add crashtest for details and summary. r=bz
--HG--
extra : commitid : DoO0dxy1ehj
extra : rebase_source : c49a244cc8ce1326b114af62c720a57d0589d836
2016-01-20 23:20:42 +08:00
Ting-Yu Lin 4cf1fb1626 Bug 591737 - Add reftests for details and summary. r=bz
--HG--
extra : commitid : 4a11NfD9hZ0
extra : rebase_source : d8e2f28fb17df614a9a3da47289ba848d74c94ca
2016-01-20 23:20:41 +08:00
Ting-Yu Lin fd982b69ea 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.

--HG--
extra : commitid : ApnP20Mrr33
extra : rebase_source : 4b059f4e7fa32bac665487aa8a266ba58597b184
2016-01-20 23:20:41 +08:00
Ting-Yu Lin ea65853708 Bug 591737 - Construct details and summary in nsCSSFrameConstructor. r=bz
--HG--
extra : commitid : 7tnA5fqdD6L
extra : rebase_source : 452368859fb99183605edcf47fd48ff026bf3a50
2016-02-02 17:39:49 +08:00
Ting-Yu Lin 802d6dee0d Bug 591737 - Add SummaryFrame. r=bz
--HG--
extra : commitid : 61ZPHBOWyKH
extra : rebase_source : 860919e85da1fc1593f084dcc1e011e1e6cddba3
2016-02-02 17:39:06 +08:00
Ting-Yu Lin cff36a1352 Bug 591737 - Add DetailsFrame. r=bz
--HG--
extra : commitid : C6hHNXWpwO8
extra : rebase_source : 47b37776c4f029879bd02c0477e885104b2aaed5
2016-01-20 23:20:41 +08:00
CJKu eae7e3b398 Bug 1244628: compare nsStyleImageLayers::mAttachmentCount in nsStyleImageLayers::CalcDifference. r=dbaron.
--HG--
extra : commitid : JlCMq3C9wwB
extra : rebase_source : f9da96c973cc556b091623611157d25d94f5fd87
2016-02-04 14:11:35 +08:00
CJKu 5690fd95cb Bug 1244598 - Move resource files of w3c-css/masking into ./support subdir. r=dbaron
--HG--
rename : layout/reftests/w3c-css/submitted/masking/blue-100x50-transparent-100X50.png => layout/reftests/w3c-css/submitted/masking/support/blue-100x50-transparent-100x50.png
rename : layout/reftests/w3c-css/submitted/masking/blue-100x50-transparent-100X50.svg => layout/reftests/w3c-css/submitted/masking/support/blue-100x50-transparent-100x50.svg
rename : layout/reftests/w3c-css/submitted/masking/transparent-100x50-blue-100X50.png => layout/reftests/w3c-css/submitted/masking/support/transparent-100x50-blue-100x50.png
rename : layout/reftests/w3c-css/submitted/masking/transparent-100x50-blue-100X50.svg => layout/reftests/w3c-css/submitted/masking/support/transparent-100x50-blue-100x50.svg
extra : commitid : 8cbhfOPgU6d
extra : rebase_source : c35dbfeae9c57d978b19ef59993efce9813a0293
2016-02-04 13:58:44 +08:00
Daniel Holbert f249f40239 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 6318b75bf5 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 866dc20488 Bug 990916 - On displayport expiry, trigger another round of expiry up the ancestor chain. r=tnikkel
--HG--
extra : commitid : 4BykN0L0DC3
2016-02-03 19:13:35 -05:00
Kartikaya Gupta e7dd4d9941 Bug 990916 - When setting a displayport, schedule a timer to remove it as well. r=tnikkel
--HG--
extra : commitid : 4u7JlPJLoFT
2016-02-03 19:13:35 -05:00
Kartikaya Gupta 34bce5bee6 Bug 990916 - Track if a scrollframe is a scroll parent for something else. r=tnikkel
--HG--
extra : commitid : KW9mVVtZikZ
2016-02-03 19:13:35 -05:00
Kartikaya Gupta 8f1c0e2548 Bug 990916 - Disable synth mousemove events during pointer event testing, since the test doesn't expect them and fails. r=smaug
--HG--
extra : commitid : 7lD2aVM9K2g
2016-02-03 19:13:34 -05:00
L. David Baron 8eb78e1885 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.

--HG--
extra : commitid : BzErQKgv86B
2016-02-04 09:43:03 +11:00
L. David Baron bcb43f9eb9 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.

--HG--
extra : commitid : 7uk3XdYc1LC
2016-02-04 09:43:02 +11:00
L. David Baron 76f4658435 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.

--HG--
extra : commitid : 6sFft3gnM2g
2016-02-04 09:43:02 +11:00
L. David Baron edba326f06 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.

--HG--
extra : commitid : 9qz7ODJhNzS
2016-02-04 09:43:02 +11:00
L. David Baron c91a009cc5 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.

--HG--
extra : commitid : 6131XNAfYoQ
2016-02-04 09:43:02 +11:00
L. David Baron 660813c2ee 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.

--HG--
extra : commitid : 4nWEgnUB0rt
2016-02-04 09:43:02 +11:00
L. David Baron 82aa75776d 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.

--HG--
extra : commitid : APy8PfXlvvz
2016-02-04 09:41:44 +11:00
Daniel Holbert 09939ec3c9 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 83c31cd8fe Merge mozilla-central to mozilla-inbound 2016-02-03 12:27:02 +01:00
Carsten "Tomcat" Book 5461ec9a92 merge mozilla-inbound to mozilla-central a=merge 2016-02-03 11:59:20 +01:00
Christoph Kerschbaumer d8d683d81b Bug 1195173 - Test asyncopen2 security checks for stylesheets (r=bz,ehsan) 2016-02-02 20:35:42 -08:00
Christoph Kerschbaumer c53a2ff8b7 Bug 1195173 - Apply CSP to preloaded styles within layout/style/Loader.cpp (r=bz) 2016-02-02 20:35:30 -08:00
Christoph Kerschbaumer de9089189c Bug 1195173 - Use channel->ascynOpen2 layout/style/Loader.cpp (r=bz) 2016-02-02 20:35:02 -08:00
Ting-Yu Lin 7d02ded5a1 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.

--HG--
extra : commitid : IjKGpqAR6zP
extra : rebase_source : d476618b4f419cf2d96bb33264cfd8ccb6e3fa61
2016-02-02 14:32:31 +08:00
Oriol 4a14d64ea2 Bug 1243125 - Reftest for floats overflowing container, with diverse writing-modes. r=jfkthame 2016-02-03 09:24:29 +00:00
Jonathan Kew a2574a52b6 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 4fcfda5536 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 cb9de60a4d 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 96cc20f039 Bug 1241575 - Use transform property syntax to parse WebKitCSSMatrix transform list. r=heycam 2016-02-01 16:45:09 -08:00
David Anderson 7b6e752abc 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 7adc2da448 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 6fe30ec610 Bug 1241907 - Grant runtime permissions before running browser tests; r=jmaher 2016-02-01 15:52:34 -07:00
Alexander Surkov 08db3d66c1 Bug 1220502 - ignore not visible text nodes for tree update, r=tbsaunde, roc 2016-02-01 17:05:45 -05:00
Daniel Holbert 870d8a05e3 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 6462925455 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.

--HG--
extra : rebase_source : e3460dbcfd79daf08fa275e58a08e98a3a657f3c
2016-02-02 15:18:16 +11:00
David Anderson 3af026a7f5 Add full mix-blend mode support to the D3D11 compositor. (bug 1238496, r=bas) 2016-02-02 16:33:13 -08:00
Timothy Nikkel a1bd256618 Bug 1238337. If the intrinsic size of the image hasn't changed then we don't need to do a new predictive image decode. r=mats
nsImageFrame::OnSizeAvailable will update the intrinsic ratio and ask for a reflow. Then nsImageFrame::NotifyNewCurrentRequest will be called when the image is finished loading. It previously would do a predictive decode if the intrinsic size hadn't changed.

This was a mistake in http://hg.mozilla.org/mozilla-central/rev/146f1bea4147 (bug 1151359).

OnSizeAvailable has this structure:

  if (intrinsicSizeChanged && gotInitialReflow) {
    if (!sizeConstrained) {
      requestReflow();
    }
  }

NotifyNewCurrentRequest has this structure:

  if (gotInitialReflow) {
    if (!sizeConstrained && intrinsicSizeChanged) {
      requestReflow();
    }
  }

Bug 1151359 added a predictive decode in a new else branch to both inner if statements. The meaning of this is obviously quite different.
2016-02-02 16:51:52 -06:00
Tobias Schneider f19e21de56 Bug 1207914: Add some debug logging to mochitest test_bug632379.xul, to help diagnose its timeouts. 2016-01-20 10:09:05 -08:00
Birunthan Mohanathas e00f212825 Bug 1235261 - Part 6: Rename AutoInfallibleTArray to AutoTArray. r=froydnj 2016-02-02 17:36:31 +02:00
Birunthan Mohanathas 690e6fe38b Bug 1235261 - Part 3: Switch remaining uses of AutoFallibleTArray to AutoTArray. r=froydnj
This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-02-02 17:36:30 +02:00
Birunthan Mohanathas 9137955c65 Bug 1235261 - Part 2: Switch some uses of AutoFallibleTArray to AutoTArray. r=froydnj
This changes some function signatures to take a nsTArray<T>& instead of a
FallibleTArray<T>& because AutoTArray does not inherit from FallibleTArray.

This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-02-02 17:36:30 +02:00