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

8318 Коммитов

Автор SHA1 Сообщение Дата
Mats Palmgren ab2709bc55 Bug 1176782 part 5 - [css-align] Implement additional syntax and values for the 'align-self' property in the style system. r=cam 2015-11-03 15:18:06 +01:00
Mats Palmgren 343fce8c76 Bug 1176782 part 4 - [css-align] Implement additional syntax and values for the 'align-items' property in the style system. r=cam 2015-11-03 15:18:05 +01:00
Mats Palmgren 5259497975 Bug 1176782 part 3 - [css-align] Implement additional syntax and values for the 'justify-content' property in the style system. r=cam 2015-11-03 15:18:05 +01:00
Mats Palmgren 9ef57353d7 Bug 1176782 part 2 - [css-align] Implement the 'justify-self' property in the style system. r=SimonSapin 2015-11-03 15:18:05 +01:00
Mats Palmgren cb1d1d16b1 Bug 1176782 part 1 - [css-align] Implement the 'justify-items' property in the style system. r=SimonSapin 2015-11-03 15:18:05 +01:00
Markus Stange bbd3965fc2 Bug 1201327 - Don't repaint the whole frame subtree when background-position changes. r=dbaron
--HG--
extra : commitid : C4Jy6JKsE6u
extra : rebase_source : 25c48c50ca2b89f321f1cf699c3a6081b1e074f5
extra : amend_source : a4e07cf315a0273e867d07f53703f6def2124d37
2015-11-02 17:36:35 +01:00
Boris Chiou b2d9321540 Bug 1108055 - Part 2: Refine ComputedTiming. r=birtles
Do some minor revisions in struct ComputedTiming.
1. Use Nullable<double> mProgress, so remove the static const kNullProgress.
   The generated ComputedTimingProperties dictionary uses "Nullable" variable,
   so we replace the origin type in ComputedTiming to make it more consistent
   with that in ComputedTimingProperties dictionary.
2. Use scoped enums for AnimationPhase.

--HG--
extra : rebase_source : 31280c867a30e7bcdcfe831cbc72ca08c8ddc762
2015-10-19 00:38:00 +02:00
Ryan VanderMeulen ffb659f49e Bug 696869 - Add crashtest.
--HG--
extra : rebase_source : 41c72716e6d9a93eefff3ddce1434697b8af9436
2015-11-01 07:23:24 -05:00
Ryan VanderMeulen 028dec7cc8 No bug - Various crashtest manifest cleanups.
--HG--
rename : dom/base/crashtests/713417.html => dom/base/crashtests/713417-1.html
rename : dom/workers/test/1158031.html => dom/workers/test/crashtests/1158031.html
rename : dom/workers/test/779707.html => dom/workers/test/crashtests/779707.html
rename : dom/workers/test/943516.html => dom/workers/test/crashtests/943516.html
rename : dom/workers/test/crashtests.list => dom/workers/test/crashtests/crashtests.list
rename : layout/generic/crashtests/812879.html => layout/generic/crashtests/812879-1.html
rename : layout/generic/crashtests/first-letter-638937.html => layout/generic/crashtests/first-letter-638937-1.html
extra : rebase_source : b9274dc6870030ed62bcee35350d566160502869
2015-10-31 19:35:27 -04:00
Ryan VanderMeulen 73cc584a88 Bug 477490 - Re-enable long-url-list-stack-overflow.html. 2015-10-30 19:41:18 -04:00
Ryan VanderMeulen 812796fec3 Bug 795534 - Re-enable the 786108 crashtests on Android/e10s. 2015-10-30 19:41:17 -04:00
Ryan VanderMeulen cc674dddb2 No bug - Remove annotations from the editor and layout crashtest manifests that are no longer needed. 2015-10-30 19:41:17 -04:00
Ryan VanderMeulen fac3490cb6 Bug 652976 - Add crashtest. 2015-10-30 19:41:17 -04:00
Ryan VanderMeulen 4cc44aa94f Bug 622314 - Add crashtest. 2015-10-30 19:41:17 -04:00
Ryan VanderMeulen f4f3f9c8a2 No bug - Clean up layout/style crashtest manifest. 2015-10-30 19:41:16 -04:00
Markus Stange 9b562aa73b Bug 947062 - Make background-position inline-style changes and CSS animations trigger layer activity. r=roc
--HG--
extra : commitid : 8Qu6NaiH9Ww
extra : rebase_source : 053f9d124287e10077c93c8e82afb60d2fab8d49
2015-10-22 22:45:14 +02:00
Cameron McCormack d8893979ef Bug 621596 - Followup to add the test file. (CLOSED TREE)
--HG--
extra : rebase_source : 6b0e7e2402bdd8d7aa6650a6982680f17947d909
extra : amend_source : 01699d625cb9b060266ccdd0417da5d1f7ad89fb
2015-10-30 19:16:34 +11:00
Cameron McCormack 81521bc53b Bug 621596 - Don't assert when a percentage base value overflows to become negative, when getting the computed style of a property that rejects negative values. r=bzbarsky 2015-10-30 16:51:38 +11:00
L. David Baron d7a6acad77 Bug 1216431 patch 8 - Fix whitespace error I made when addressing review comments.
--HG--
extra : transplant_source : %AFBD%1Bh4%86%D5gtK%9F%24%09%FE%B7%3F%23%F6%D0
2015-10-30 10:00:01 +09:00
Seth Fowler 6598853366 Bug 1207355 (Part 8) - Remove imgIContainer::RequestDecode() and imgIRequest::RequestDecode(). r=tn 2015-10-29 16:37:42 -07:00
Cameron McCormack 40ca6f7656 Bug 1219534 - Remove unused nsStyleContext::SetStyle##name_ methods. r=dholbert 2015-10-29 17:06:52 +11:00
Cameron McCormack 76a002fc30 Tweak a couple of comments; no bug. (DONTBUILD) 2015-10-29 17:05:13 +11:00
Phil Ringnalda a727c1fe68 Back out 8 changesets (bug 1207355) for OS X 10.10 reftest failures in generated-content/
CLOSED TREE

Backed out changeset aafd6db2fbb4 (bug 1207355)
Backed out changeset 9dd950b837fb (bug 1207355)
Backed out changeset e941e0e106a1 (bug 1207355)
Backed out changeset ecebca101fcb (bug 1207355)
Backed out changeset 08f2017137e1 (bug 1207355)
Backed out changeset 3dc69e37c9b4 (bug 1207355)
Backed out changeset bcdf51edb121 (bug 1207355)
Backed out changeset 1d4c00dbf49a (bug 1207355)
2015-10-28 22:57:43 -07:00
Seth Fowler 0fa74a123c Bug 1207355 (Part 8) - Remove imgIContainer::RequestDecode() and imgIRequest::RequestDecode(). r=tn 2015-10-28 16:40:43 -07:00
Ryan VanderMeulen 8f38f910b8 Bug 575464 - Add crashtest. 2015-10-27 10:03:38 -04:00
Birunthan Mohanathas 44936aabb2 Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02:00
Nicholas Nethercote fe048a987f Bug 1187784 (part 8) - Replace nsBaseHashtable::EnumerateRead() calls in layout/ with iterators. r=heycam.
This fixes a type bug in CSSVariableDeclarations::MapRuleInfoInto(). The
existing code passes aRuleData->mVariables.get(), which has type
|CSSVariableDeclarations*|, into the |void*| parameter to EnumerateRead(). It
then extracts that in EnumerateVariableForMapRuleInfoInto() via a cast to a
different type, |nsDataHashtable<nsStringHashKey, nsString>*|. It's missing an
intermediate access of CSSVariableDeclarations::mVariables.

It's likely that this hasn't (seemingly) caused problems prior to now because
mVariables is the only field in CSSVariableDeclarations, so
mVariables->mVariables is at the same address as mVariables.

--HG--
extra : rebase_source : 577c032bf52dfb30eaffeb0f4d93b45f801bfcb3
2015-10-22 22:48:40 -07:00
Nicholas Nethercote 4948f1b27e Bug 1187784 (part 5) - Replace nsBaseHashtable::EnumerateRead() calls in layout/ with iterators. r=heycam.
--HG--
extra : rebase_source : 0732b564a877953063c740031b1980bd0dd708b2
2015-10-22 21:17:36 -07:00
Nicholas Nethercote e3d263e40d Bug 1187784 (part 3) - Replace nsBaseHashtable::EnumerateRead() calls in layout/ with iterators. r=heycam.
--HG--
extra : rebase_source : 2cf01da556ef42d6f410c83d943f9f805804ee1a
2015-10-20 22:18:20 -07:00
Ryan VanderMeulen 80cc335b07 Bug 474377 - Add crashtest.
--HG--
extra : rebase_source : f84cd1c53448a790676a7cc7e55be42af9ae2c23
2015-10-24 15:03:19 -04:00
Ryan VanderMeulen 1e35b5d9be Bug 460209 - Add crashtest.
--HG--
extra : rebase_source : f729a18d65d9baa5580b8b12c911f04e7f146b99
2015-10-24 15:03:19 -04:00
Wes Kocher dd50b531bf Bug 1217963 - Correct the spelling of "corect" rs=mossop
--HG--
extra : commitid : KIXf5DKKRrc
extra : source : 3f3fbf4e7a52b1bbb2848edd65eaacc7282b1a01
2015-10-23 16:02:56 -07:00
Xidorn Quan c62bff4099 Bug 1206468 - Remove unused internal appearance value -moz-mac-unified-toolbar. r=mstange
--HG--
extra : source : adbf31ddaea4d289f6a6a226a112f73cd3d8391f
2015-10-23 19:51:34 +11:00
Cameron McCormack b9cb86efd6 Comment typo fix; no bug. (DONTBUILD) 2015-10-23 18:32:26 +11:00
Cameron McCormack 6809576543 Bug 1043461 - Followup to ensure we still test custom property position when the UA style sheet doesn't have custom properties in it. r=dholbert 2015-10-23 17:09:06 +11:00
Daniel Holbert 2e2f24455a Bug 1210575 part 9: Remove some obsolete XXXdholbert comments from property_database.js. (no review, comment-only so DONTBUILD) 2015-10-22 17:28:58 -07:00
L. David Baron adbd67f2a7 Bug 1216431 patch 7 - Back out bug 1209603 patch 6. r=heycam
This backs out all of the patch except that it retains some of the
comment changes for nsStyleContext::mBits.

--HG--
extra : commitid : 9mBuaxmSDjX
extra : rebase_source : 57935f302f350331f46f98dac86f8f833264c5da
2015-10-23 08:57:36 +09:00
L. David Baron 8acc13bdfa Bug 1216431 patch 6 - Back out bug 1209603 patch 8. r=heycam
This requires a little bit of gymnastics since it has to add the inverse
of tests, since the is-a-reset-struct tests originally added in patch 8
were made unconditional in patch 9, and with this backout we now want to
execute the code only for inherited structs.

This also doesn't back out the cleanup to use NS_STYLE_INHERIT_BIT() for
constants rather than nsCachedStyleData::GetBitForSID.

This backs out the part of bug 1209603 whose speed I was concerned about.

--HG--
extra : commitid : 6BWdXCpywlU
extra : rebase_source : 15597857a721a3a399432c8454ecfc7b789e5e2d
2015-10-23 08:57:36 +09:00
L. David Baron 43e7bc5c52 Bug 1216431 patch 5 - Back out half of bug 1209603 patch 10. r=heycam
This leaves the half related to inherited structs, since we can still
bail early for them even without mBits.

--HG--
extra : commitid : 28h25awejXa
extra : rebase_source : 9b92da7d25fc2963c33cab063bca4fef4388a816
2015-10-23 08:57:36 +09:00
L. David Baron 93a9119fd5 Bug 1216431 patch 4 - Don't trigger computation of new structs via testing of conditions for conditionally-stored structs on the rule node. r=heycam
This is the replacement fix for bug 1209603.

--HG--
extra : commitid : EKsTIfcAu4h
extra : rebase_source : bdb8678c0c7854b91681cc0dde9199cf7b3ce17c
2015-10-23 08:57:35 +09:00
L. David Baron 98f6eaaddc Bug 1216431 patch 3 - Cache structs that are stored with conditions on the rule node all the time, rather than only when freshly computed. r=heycam
This is another case similar to the problem fixed in bug 1209603 patch 9.

This should make things faster by caching structs on the style context
more reliably.

--HG--
extra : commitid : GdalxPoI0wr
extra : rebase_source : 103e678a237f723b386b517d478e70214a75467e
2015-10-23 08:57:35 +09:00
L. David Baron 6d81ecb5c0 Bug 1216431 patch 2 - Pass nsStyleVisibility to nsStylePosition::CalcDifference to avoid computing new nsStyleVisibility during nsStyleContext::CalcStyleDifference. r=heycam
This is needed to avoid hitting the assertion:
Assertion failure: !!(structsFound & (1 << uint64_t(eStyleStruct_Visibility))) == !!PeekStyleVisibility() (PeekStyleData results must not change in the middle of difference calculation.), at ./nsStyleStructList.h:62
once exact PeekStyleData is backed out in the later patches.

Without this patch, we can compute a new nsStyleVisibility struct inside
of nsStylePosition::CalcDifference.  This patch ensures we use
PeekStyleVisibility() instead of StyleVisibility().

--HG--
extra : commitid : eVWnVp7V0P
extra : rebase_source : ee6541397d09c724a7a6c4628bbfbbe2d2f152c0
2015-10-23 08:57:35 +09:00
Daniel Holbert 656ac65729 Bug 1210575 part 8: Implement -webkit-linear-gradient parse quirks with "to", angles, and "center". r=heycam 2015-10-22 16:36:50 -07:00
Daniel Holbert 19d14fea0b Bug 1210575 part 7: Refactor linear-gradient parsing code slightly & add/extend comments. r=heycam 2015-10-22 16:36:42 -07:00
Nicholas Nethercote 5957f4c9ae Bug 1038663 (part 1) - Make nsStyleText::mWordSpacing an nsStyleCoord. r=heycam.
This makes mWordSpacing a lot more like mLetterSpacing, while maintaining the
existing "'normal' computes to 0px" behaviour.

--HG--
extra : rebase_source : d3273f60d4de6a9a0f05f1dbf2ed095f0f7e6c0e
2015-10-21 22:13:11 -07:00
Cameron McCormack df6cf5f87b Bug 1208951 - Part 8: Don't warn if StyleAnimationValue::ComputeValue fails to parse a CSS property. r=birtles
Since we will call StyleAnimationValue::ComputeValues with values that
come from script, we don't want to warn if we have an invalid value.
2015-10-22 19:22:38 +11:00
Cameron McCormack 2facd2d797 Bug 1208951 - Part 7: Add a StyleAnimationValue::ComputeValues method to compute components of a shorthand. r=birtles 2015-10-22 19:22:38 +11:00
Cameron McCormack 502f40071b Bug 1208951 - Part 6: Add method to compare nsCSSPropertySets for equality. r=birtles 2015-10-22 19:22:38 +11:00
Cameron McCormack 22382bec27 Bug 1208951 - Part 5: Add nsCSSProps method to look a property by its IDL name. r=bzbarsky 2015-10-22 19:22:37 +11:00
Cameron McCormack d970ebb2b7 Bug 1208951 - Part 4: Add an nsCSSParser entry point to parse a single longhand property and return an nsCSSValue. r=birtles
It is a slight hassle for code to have to create a Declaration object to
pass in to nsCSSParser::ParseProperty when all it wants is the resulting
single nsCSSValue, if parsing a longhand property.  Declaration is also
inaccessible outside layout/style/.
2015-10-22 19:22:37 +11:00
Cameron McCormack 9b05852073 Bug 1208951 - Part 3: Expose nsCSSValue -> nsTimingFunction computation function. r=birtles 2015-10-22 19:22:37 +11:00
L. David Baron f219e02d64 Bug 1216747 - Cleanup after test fix. r=heycam
To fix bustage I landed a minimal change to fix the mistake in the first
patch (using the value of nsStyleVisibility::mWritingMode in
SetWritingModeDependency instead of WritingMode::GetBits), but this does
some further simplification given that we need a WritingMode now.

--HG--
extra : transplant_source : %D2%88%F0%94%27%C9%0FN%5B%3F%D0%5B%FAS%F7X%CF%1Cj5
2015-10-21 17:51:12 -07:00
L. David Baron 8d8c6fab6e Bug 1216747 followup - Use the correct value when calling SetWritingModeDependency.
--HG--
extra : transplant_source : %05/L%E1%86%EA%B9%E8%D4%9EF%A7%C12%F5.%FC%85%C0Y
2015-10-21 00:12:07 -07:00
Daniel Holbert e16e45364e Bug 1210575 part 6: Implement -webkit-radial-gradient parse quirks with contain/cover keywords, sized shapes, "at" keyword, & angles. r=heycam 2015-10-20 23:35:55 -07:00
L. David Baron 2d42688ba5 Bug 1216747 - Record dependency on writing mode in nsRuleNode::ComputeStylePosition. r=heycam
Without the patch, both reftests fail; with it, both pass.
2015-10-20 22:52:57 -07:00
Cameron McCormack 41d0ebc4e9 Bug 1216362 - Measure nsCSSSelector::mAttrList. r=erahm
--HG--
extra : rebase_source : 81a80957a5645676e2079a4d48729cc3b3163e7a
2015-10-21 16:18:36 +11:00
Wes Kocher 9630ce26b8 Merge b2ginbound to central, a=merge 2015-10-20 14:59:07 -07:00
Jeremy Chen f59482fa1d Bug 1210341 - (v3) Reduce accessiblecaret size. r=TYLin
--HG--
extra : rebase_source : 15fdcdf119d30e1e51d98e69a1f229778aa26256
2015-10-19 01:53:00 +02:00
Robert Longson 51c57d84c3 Bug 1215484 - make SVG in an image context ignore author colours to match how we treat raster images, and in a non-image context respect them to match html. f=dao, r=roc 2015-10-20 13:12:36 +01:00
L. David Baron 221bfbea99 Bug 1215702 patch 2 - Remove the mechanism of backend-only CSS properties. r=heycam
This is a mechanism that should not exist; any use of it means
nonconformance with http://www.w3.org/TR/CSS/#partial .

--HG--
extra : commitid : fI2rko2cf4
2015-10-19 22:22:34 -07:00
L. David Baron a93e976a86 Bug 1215702 patch 1 - Remove the CSS properties that use CSS_PROP_BACKENDONLY (marks, orphans, page, size, widows), i.e., properties that were added in early Gecko days but never actually implemented. r=heycam
We're violating http://www.w3.org/TR/CSS/#partial by leaving this
implementation in when we don't actually support the properties.

We're also incorrectly parsing marks and size in style rules rather than
@page rules; they were only intended for @page rules.

--HG--
extra : commitid : EV7bQDBQUp8
2015-10-19 22:22:34 -07:00
L. David Baron 1b092a9222 Bug 1215424 - Convert ParseBoxProperty to CSSParseResult and remove ParseBoxPropertyVariant. r=heycam
--HG--
extra : commitid : 3wwvynTqGv7
2015-10-19 20:42:29 -07:00
L. David Baron a9d92c3cb5 Bug 1209603 patch 11 - Assert that PeekStyle* results don't change during difference computation. r=heycam
This assertion catches the condition that led to the bug.

I confirmed that without patch 10 on this bug, the assert fires on the
reftest added in patch 4, but does not fire on slight modifications of
that testcase that don't show the bug.

--HG--
extra : commitid : 6VMNCelDQg9
2015-10-19 20:42:29 -07:00
L. David Baron 5541c05d79 Bug 1209603 patch 10 - Make PeekStyle* exact, i.e., guaranteed to return null if we haven't computed the data for this context. r=heycam
This fixes the bug because it prevents a cache conditions check for a
later PeekStyle* in nsStyleContext::CalcStyleDifference from computing a
struct that was null when we checked it earlier in CalcStyleDifference.
This, in turn, could allow the old context to be retained (and
reparented to the new parent) even though it now has incorrect data in
the font or visibility struct that was computed while checking the
conditions for another struct.

This should also improve performance in some cases of style changes on
not-yet-presented frames because we have fewer change hints to process.

--HG--
extra : commitid : 16o8oS0RLfx
2015-10-19 20:42:29 -07:00
L. David Baron bf8dc97f0b Bug 1209603 patch 9 - Cache inherited style structs on the style context when we found already-cached data in the rule tree. r=heycam
This means we obey the invariant that if we've requested an inherited
struct on a context, that struct will be cached on the style context.  I
believe bug 527977 intended to do make us obey this invariant, but it
missed the case where nsRuleNode::GetStyle* found cached data already on
the rule node, and the case where nsRuleNode::WalkRuleTree found a
usable struct higher in the rule tree.

Without this change, patch 10 will not function correctly for inherited
structs when we encounter this case, and will cause assertions in
dom/base/test/test_bug560780.html due to triggering style change hints
on text nodes that inherited a color struct from a parent on whose rule
node the struct was stored.  (It may also have caused some of the other
test failures.)

This should be a clear performance improvement, since the path that's
being slowed down by the added work in this patch will, with the patch,
now only execute once because of that work.

--HG--
extra : commitid : 5hueOZihqNx
2015-10-19 20:42:29 -07:00
L. David Baron 4a3869c519 Bug 1209603 patch 8 - Record in mBits when we have gotten a reset style struct that is cached on the rule node. r=heycam
I'm a little worried about the performance of the change to
nsRuleNode::GetStyle*, which sets a bit on the style context every time
a struct getter goes through it.  It's not obvious how that compares to
the performance benefit from patch 10.

--HG--
extra : commitid : J2XERgJ7mh2
2015-10-19 20:42:29 -07:00
L. David Baron 442ad165f3 Bug 1209603 patch 7 - Add assertions that we don't ask the rule node for data when we have cached data on the style context. r=heycam
These document an invariant that I depend on in the next patch.

--HG--
extra : commitid : HPQbuHOVq3o
2015-10-19 20:42:28 -07:00
L. David Baron 51b146732f Bug 1209603 patch 6b - Rename nsStyleContext::HasCachedInheritedStyleData to HasCachedDependentStyleData. r=heycam
--HG--
extra : commitid : 1RWP1xtrXOe
2015-10-19 20:42:28 -07:00
L. David Baron 2197897e6b Bug 1209603 patch 6 - Prepare to use a different meaning of mBits when cached style data pointer is null. r=heycam
We currently only use the style struct bits in mBits when the style
context has the relevant struct cached.  The bit being set indicates
whether or not the context owns the struct.

This patch conditions the necessary tests on a cached struct being
present so that we can use (for reset structs, i.e., those with
non-inherited properties) mBits to mean something different when the
cached storage is null.

--HG--
extra : commitid : 5UtmPx56nae
2015-10-19 20:42:28 -07:00
L. David Baron e3c4c7ddd1 Bug 1209603 patch 5 - Move inline method nsStyleContext::GetCachedStyleData into header file, and make it public. r=heycam
Moving it to the header allows its use by another method in the header
file, in patch 6.

Making it public allows its use in assertions in nsRuleNode in patch 7.

--HG--
extra : commitid : EL4WTKW32KS
2015-10-19 20:42:28 -07:00
L. David Baron a80ca8c869 Bug 1209603 patch 3 - Don't call SetFontSizeDependency for 0em. r=heycam
This should be a bit of an optimization for cases where '0em' is the
only 'em' unit in a style struct.

--HG--
extra : commitid : CJinBSM4aw8
2015-10-19 20:42:28 -07:00
L. David Baron 3a591db0a3 Bug 1209603 patch 1 - Add comments to RuleNodeCacheConditions.h . r=heycam
--HG--
extra : commitid : C78d4Br40km
2015-10-19 20:42:28 -07:00
Cameron McCormack 2f1046d287 Bug 1216043 - Rename nsStyleSheet::sheetType and make it an enum class. r=dbaron
The only substantive change here, apart from a few variables changing in
size from uint16_t to uint8_t, is FontFaceSet's use of SheetType::Unknown
(0xFF) instead of 0 for FontFaceRecords for script-created FontFaces.
2015-10-20 10:16:20 +11:00
John Daggett f4458274bd Bug 543715 p1 - distinguish between italic and oblique. r=jfkthame 2015-10-19 11:16:43 +09:00
Xidorn Quan af8cf1df88 Bug 1215360 - Render canvas anonymous content on top of the top layer. r=roc
--HG--
extra : source : 231e0e545afaf3bf4993b0f6d20cd60ee734c899
2015-10-19 11:56:13 +11:00
Phil Ringnalda adfbc1f710 Back out 2 changesets (bug 543715) because Mulet is why we can't have nice things
Backed out changeset 2d1d8e9b095c (bug 543715)
Backed out changeset bc90276ec090 (bug 543715)
2015-10-18 11:22:22 -07:00
John Daggett 72b6bcd6d6 Bug 543715 p1 - distinguish between italic and oblique. r=jfkthame 2015-10-18 22:17:46 +09:00
Cameron McCormack 76e33ef061 Fix formatting of some macros; no bug. 2015-10-18 15:18:10 +11:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Cameron McCormack 0d0d2388bc Bug 1199610 - Correctly handle parsing failures inside CSS functions. r=dbaron
--HG--
extra : rebase_source : 6be3836d78c0e2d4754ad1b05a924b6bac5fcaf1
2015-10-16 17:34:04 +11:00
Cameron McCormack 508dcaab44 Bug 1163877 - Part 4: Tests. r=jdaggett 2015-10-16 17:10:14 +11:00
Cameron McCormack 4872fb60dc Bug 1163877 - Part 3: Update state on, and reflow documents for, all FontFaceSets that contain a FontFace whose user font entry updated. r=jdaggett 2015-10-16 17:10:14 +11:00
Cameron McCormack a049f1a983 Bug 1163877 - Part 2: Allow FontFaces to be added to multiple FontFaceSets. r=jdaggett 2015-10-16 17:10:14 +11:00
Cameron McCormack db463a7dc7 Bug 1163877 - Part 1: Add storage for other FontFaceSets a FontFace is in. r=jdaggett 2015-10-16 17:10:14 +11:00
Daniel Holbert e643928770 Bug 1210575 part 5: Allow CSS -webkit-{linear|radial}-gradient expressions (& 'repeating' variants) to make it to our gradient-parsing code, if webkit prefix support is preffed on. r=heycam 2015-10-15 00:56:12 -07:00
Daniel Holbert 6b523d3163 Bug 1212191: In CSS mochitest helper-file "property_database.js", add subproperties array for aliases that are missing it, and make it mandatory for CSS_TYPE_SHORTHAND_AND_LONGHAND. r=heycam 2015-10-13 23:35:48 -07:00
Cameron McCormack dd53187aac Bug 1196379 - Fix incorrect assertion checking for sorted arrays in nsDocumentRuleResultCacheKey::Matches. r=dbaron 2015-10-14 08:57:06 +11:00
Zack Weinberg 9b82cb1584 Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam
--HG--
extra : rebase_source : a8a5a27db01306d1de58974ebb4d06d29d4b72b0
2015-10-13 17:43:16 -04:00
Aryeh Gregor 4b6346f4e0 Bug 1213842 - :lang() should not fall back to HTTP headers if empty lang attribute is specified; r=bz 2015-10-13 14:08:30 +03:00
Cameron McCormack 0bb6ddaba5 Bug 1194856 - Add crash report annotations just before crashing in ErrorLoadingBuiltinSheet. r=bsmedberg 2015-10-13 09:03:56 +11:00
Xidorn Quan 94a69569c7 Bug 1212607 - Re-expose -moz-window-dragging property to the content. r=dbaron
--HG--
extra : source : 6a34a297970e20bfab6f6a8ce45b0904e7324526
2015-10-09 11:35:09 +11:00
Boris Zbarsky 6fa11811c1 Bug 732209 way delayed followup. Make the comments a bit clearer. DONTBUILD 2015-10-08 15:49:16 -04:00
Xidorn Quan 6d8e6e3031 Bug 1165538 part 3 - Apply -moz-min-font-size-ratio to rt elements and add test. r=heycam
--HG--
extra : source : 9d94998817bfb618e6bd0fe39f3f6924d1c2e266
2015-10-08 10:19:29 +11:00
Xidorn Quan 37712ad9ad Bug 1165538 part 2 - Add -moz-min-font-size-ratio internal property. r=heycam
--HG--
extra : source : f7a43eff97b60a1422459568f32ee134f69b50f7
2015-10-08 10:19:29 +11:00
Xidorn Quan 4eed3b3044 Bug 1165538 part 1 - Use delegated constructor for nsStyleFont to simplify code and remove the need of nsStyleFont::Init. r=heycam
--HG--
extra : source : 35773e5bc7dc352a5853d1449809f2fd997f82dd
2015-10-08 10:19:29 +11:00
Francois Marier 5adc75d084 Bug 1208629 - Properly support data: and blob: URIs with an integrity atribute. r=ckerschb 2015-10-07 11:27:19 -07:00
Daniel Holbert 90a1ef8084 Bug 1210575 part 4: Prevent CSS parser from invoking CSSUnprefixingService if native webkit prefix support is enabled. r=heycam 2015-10-07 11:02:50 -07:00
Daniel Holbert 0597726127 Bug 1210575 part 3: Refactor CSS gradient-parsing code to use a flags bitfield instead of multiple bool args for customizing behavior. r=heycam 2015-10-07 11:02:50 -07:00
Daniel Holbert cc6ae36a1c Bug 1210575 part 2: Refactor out the body of a long compound "if" expression into a helper function, IsFunctionTokenValidForBackgroundImage. r=heycam 2015-10-07 11:02:50 -07:00
Daniel Holbert 49ed25ea69 Bug 1210575 part 1: Rename CSS parser function "ParseWebkitPrefixedGradient()" to be more specific, now that we'll have several ways of parsing these expressions. r=heycam
(This patch renames the function to "ParseWebkitPrefixedGradientWithService", indicating that this is the version that calls out to the CSSUnprefixingService.)
2015-10-07 11:02:37 -07:00