gecko-dev/dom
Brian Birtles f7f386ac4e Bug 1371196 - Round font-weight when interpolating, don't floor; r=hiro
The spec says,

 font weight: interpolated via discrete steps (multiples of 100). The
 interpolation happens in real number space and is converted to an integer by
 rounding to the nearest multiple of 100, with values halfway between
 multiples of 100 rounded towards positive infinity.[1]

However, our implementation pre-dates this spec text (bug 528234 landed Nov 2009
whereas the spec was updated in Mar 2012[2]).

This patch rounds the result by simply adding 50 to the result before we floor
it (which is good enough in this case because we don't need to worry about
negative values).

It also slightly simplifies the logic by re-using Clamp from MathAlgorithms.h.

[1] https://drafts.csswg.org/css-transitions/#animtype-font-weight
[2] 00c6286109

MozReview-Commit-ID: BjCg7MG70hW

--HG--
extra : rebase_source : 879ea18d7d1a49ff425d6e467081983a130a65e3
2017-06-09 12:19:47 +09:00
..
animation Bug 1367307 - Add content property to generate pseudo element. r=birtles 2017-06-08 10:28:19 +09:00
asmjscache
audiochannel Bug 1367075 - Get rid of AudioChannelService::IsParentProcess, r=me - CLOSED TREE 2017-05-24 09:49:35 +02:00
base Merge m-c to autoland, a=merge 2017-06-08 18:44:32 -07:00
battery
bindings Bug 1370640. Get rid of ProtoAndIfaceCache::EntrySlotIfExists. r=peterv 2017-06-07 12:56:27 -04:00
broadcastchannel Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru 2017-05-23 18:05:19 +02:00
browser-element Bug 1368712 - Get rid of nsIBrowserElementAPI.{set,get}Visible, r=kanru 2017-05-31 21:15:23 +02:00
cache Bug 1369316 - Get rid of nsIPrincipal.unknownAppId, r=bholley 2017-06-02 11:05:28 +02:00
canvas Backed out changeset ca6881983573 (bug 1366941) for build bustage 2017-06-01 20:05:48 -07:00
commandhandler Bug 1361745 - Part 2: Avoid a double hashtable lookup for insertions in nsControllerCommandGroup::AddCommandToGroup; r=mystor 2017-05-08 10:02:04 -04:00
console Bug 1368296 - Renaming WorkerProxyToMainThreadRunnable::RunBackOnWorkerThread to RunBackOnWorkerThreadForCleanup and improving the description for this method, r=asuth 2017-06-02 11:05:27 +02:00
crypto Bug 1363560 - Name more runnables (r=mccr8) 2017-05-09 21:53:25 -07:00
encoding
events Bug 1250823 part 2 - IMEContentObserver should cache adding ranges as a range during document change r=smaug 2017-06-08 11:24:58 +09:00
fetch Bug 1369619. Use ReadSegments in the SRI case in FetchDriver::OnDataAvailable. r=bkelly 2017-06-06 00:49:32 -04:00
file Bug 1369354 - Avoid deadlock in IPCBlobInputStreamStorage::GetStream when IPCBlobInputStreamChild actor is used on the parent process, r=smaug 2017-06-02 11:05:27 +02:00
filehandle Bug 1370519 - Part 4: Get rid of FileHandleCommon.h/cpp; r=btseng 2017-06-07 12:36:58 +02:00
filesystem Bug 1367560 - Remove an assertion from the Directory constructor that the directory exists on disk from DEBUG builds; r=baku 2017-06-06 10:15:13 -04:00
flyweb Bug 1326154 - Fix to prevent FlyWebService from pointing to a URL with a different origin. r=djvj 2017-05-23 15:17:02 -04:00
gamepad Bug 1370198 Back out the patch for bug 1369419 because the patch couldn't fix bug 1361132 and causes new crash bugs r=jimm 2017-06-05 21:52:16 +09:00
geolocation
grid
html Bug 1290276 followup - Update reftest expectation. 2017-06-08 22:22:48 +10:00
imptests Bug 1361645 - Change reftest condition stylo to styloVsGecko r=dbaron 2017-05-25 11:26:12 +08:00
indexedDB Bug 1370519 - Part 2: Merge FileHandle base classes with IndexedDB specific classes (except parent actors); r=btseng 2017-06-07 12:36:42 +02:00
interfaces Bug 1024557 - Ignore x-frame-options if CSP with frame-ancestors exists. r=smaug 2017-06-07 21:17:49 +02:00
ipc Bug 1364984 - Ensure that our sandbox and tests can handle temp directory paths using symlinks on macOS. r=haik,aswan 2017-06-07 20:40:58 -04:00
json
jsurl Bug 1363560 - Name more runnables (r=mccr8) 2017-05-09 21:53:25 -07:00
locales Bug 1024557 - Ignore x-frame-options if CSP with frame-ancestors exists. r=smaug 2017-06-07 21:17:49 +02:00
manifest Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
mathml Bug 1365092 - Move side effects of SetAttr, UnsetAttr, and ParseAttribute functions to BeforeSetAttr and AfterSetAttr r=bz 2017-06-07 10:28:20 -07:00
media Bug 1349253 - modify the assertion; r=jwwang 2017-06-07 18:52:36 +08:00
messagechannel Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru 2017-05-23 18:05:19 +02:00
network Bug 1329245 - Part 3: Don't attempt to connect to closed port on OS X, it's flakey. r=bkelly 2017-06-04 23:18:16 -04:00
notification Bug 1351034 - Remove WEB_NOTIFICATION_PERMISSION_REMOVED. f=chutten; r=kitcambridge 2017-05-09 09:24:01 -07:00
offline
payments Backed out changeset 437d6df1859c (bug 1345361) for ESLint failures. 2017-05-25 18:05:15 -04:00
performance
permission
plugins Bug 1370237 - Always increment plugin epoch when creating nsPluginHost in parent; r=bsmedberg 2017-06-06 18:29:32 -07:00
power Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
presentation Bug 1367150 - Do not attempt to create PresentationChild if ContentChild is shutting down. r=ehsan 2017-05-25 06:43:59 -04:00
promise Bug 1345284 - Move variable declarations in test_promise_argument.html, and test_promise_callback_retval.html. r=jmaher 2017-06-05 12:35:53 -04:00
push Bug 1369314 - Get rid of nsScriptSecurityManager::GetAppCodebasePrincipal, r=bholley 2017-06-02 11:05:28 +02:00
quota Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
res
script Bug 1367515 - Use ::mozilla::Maybe to de-duplicate the loop of ScriptLoader::GiveUpBytecodeEncoding r=nbp 2017-06-06 23:49:54 -07:00
secureelement
security Bug 1024557 - Ignore x-frame-options if CSP with frame-ancestors exists. r=smaug 2017-06-07 21:17:49 +02:00
smil Bug 1371196 - Round font-weight when interpolating, don't floor; r=hiro 2017-06-09 12:19:47 +09:00
storage Bug 1366101 - Remove extra warnings in SessionStorageManage, r=smaug 2017-05-19 17:26:42 +02:00
svg Bug 1361593 - Simplify nsSVGMarkerFrame by storing the transform matrix rather than all the parameters necessary to calculate it. r=jwatt 2017-06-08 06:17:07 +01:00
system Bug 1370027: Part 1 - Cleanly handle a subprocess child being reaped by NSPR. r=aswan 2017-06-06 16:00:53 -07:00
tests Backed out changeset a3eec11c6b37 (bug 1359709) for reftest failures in group-opacity-surface-size-1.html 2017-06-08 10:23:39 +02:00
time
u2f
url Bug 1368955 - Split URL.cpp in URLMainThread.{cpp,h} and URLWorker.{cpp,h}, r=qdot 2017-05-31 21:18:56 +02:00
vr Bug 1362213 - Implement chrome-only API to manage VR sessions r=daoshengmu,kanru,smaug 2017-05-08 16:01:36 -07:00
webauthn Bug 1364991 - Make U2FTokenManager use const where possible r=qdot 2017-05-22 16:40:29 -07:00
webbrowserpersist Bug 1352958 - Use UNIFIED_SOURCES into dom/webbrowserpersist. r=overholt 2017-05-17 18:19:53 +09:00
webidl Merge inbound to m-c. a=merge 2017-05-31 20:25:52 -04:00
workers Bug 1369862 P4 Update test_fetch_event.html expectations for synthesized CORS response returned for outer no-cors request. r=asuth 2017-06-07 08:34:51 -07:00
worklet Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan 2017-05-08 08:24:22 +02:00
xbl Bug 1290276 Part 6 - Add FFI functions to allow various XBL data to be used from servo side. r=heycam 2017-06-05 14:00:27 +08:00
xhr Bug 1367110 - Expose XHRMT's ErrorCode to chrome JS. r=baku 2017-05-24 08:52:15 -04:00
xml Bug 1365506 - fix XHTML/XUL tests that use data: URI. r=smaug 2017-05-23 09:02:06 +08:00
xslt Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan 2017-05-08 08:24:22 +02:00
xul Bug 1290276 Part 8 - Update test expectations after implementing XBL <stylesheet> for stylo. r=heycam 2017-05-31 16:44:38 -07:00
jar.mn
moz.build Backed out changeset 437d6df1859c (bug 1345361) for ESLint failures. 2017-05-25 18:05:15 -04:00