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

48580 Коммитов

Автор SHA1 Сообщение Дата
Bob Owen 1fe62dee68 Bug 1156742 Part 24: Add new Recorded event to record font data. r=bas
We create and destroy ScaledFonts for every piece of text we write.
That causes a huge amount of duplicated data within the recording.
This splits out the recording of the font data itself from the ScaledFont.
The key generated to determine uniqueness could probably be fairly easily faked, but for our purposes that doesn't matter.
2016-01-05 10:08:58 +00:00
Bob Owen ee620e1e8c Bug 1156742 Part 23: Assert in PrintTranslator when a lookup fails. r=bas
In theory these lookups should never fail.
The plan is to move them to release asserts when any bugs have been fixed, as failed lookups may be an indication of data being sent from a compromised renderer.
2016-01-05 10:08:58 +00:00
Bob Owen 6e3ae6eaf0 Bug 1156742 Part 15: Add pref for turning on printing via the parent process. r=mconley 2016-01-05 10:08:57 +00:00
Bob Owen e1c9d379a7 Bug 1156742 Part 14: Complete RemotePrintJob using PrintTranslator. r=mconley 2016-01-05 10:08:57 +00:00
Bob Owen 20e589aec1 Bug 1156742 Part 13: Create a Moz2D PrintTranslator. r=bas
A better solution to the ScaledFonts issue comes in Part 24.
2016-01-05 10:08:57 +00:00
Bob Owen ffbb94296a Bug 1156742 Part 11: Allow RemotePrintJobChild to abort the print. r=roc
This is so the RemotePrintJobParent can abort the printing in the child when something goes wrong.
2016-01-05 10:08:57 +00:00
Bob Owen dd481e414a Bug 1156742 Part 10: Allow RemotePrintJob to influence nsPagePrintTimer. r=roc
Adds a new timer for the RemotePrintJob to notify the nsPagePrintTimer when the last page has finished printing in the parent.
Changed the page delay timer to reset the watch dog count on every page to prevent timeouts due to remote printing.
2016-01-05 10:08:57 +00:00
Bob Owen fdd98bfb6b Bug 1156742 Part 9: Add a new nsIDeviceContextSpec for proxied printing. r=roc
This also changes aPrintToFileName parameter for BeginDocument to an nsAString& from char16_t*.
Having a char16_t* caused a pain with VS2105 where wchar_t != char16_t (as on VS2103), after it had been sent over IPDL.
This could have been worked around with casting, but this seemed like the tidier solution.
2016-01-05 10:08:57 +00:00
Bob Owen c38abff973 Bug 1156742 Part 6: Add RemotePrintJob to PrintSession and PrintData. r=roc, r=mconley
Someone knew that nsIPrintSession would come in handy one day.
2016-01-05 10:08:57 +00:00
Bob Owen 5f9cb1f258 Bug 1156742 Part 5: Add a skeleton RemotePrintJob. r=mconley
The methods will get filled out by later patches, this sets up the IPDL and lifetime management.
2016-01-05 10:08:57 +00:00
Morris Tseng 084b138ad2 Bug 1024149 - Use element size for upload texture when using SVG image. r=jgilbert r=roc
--HG--
extra : commitid : E5x4DxqzQ3k
2016-01-05 17:51:04 +08:00
Jonathan Kew 7a361a7ce7 Bug 1153237 - nsFrameSelection::PhysicalMove should fall back to CompleteMove if an intra-line move fails to execute completely. r=roc 2016-01-04 12:33:45 +00:00
Bogdan Postelnicu 7917ac7e86 Bug 1234535 - Avoid spurious null dereference complaint from Coverity. r=froydnj
--HG--
extra : rebase_source : e41c19b316dfc4b7e1ce81203a61691c69315e5f
2016-01-04 07:24:00 -05:00
Nicholas Nethercote 6d81cd6a30 Bug 1233632 - Moz2Dify GetBlurAndSpreadRadius(). r=dholbert.
The CurrentMatrix()-to-GetTransform() change in GetBlurAndSpreadRadius() is
valid because the operations performed on the resulting |transform| only
consult the _11, _12, _21 and _22 members; not the _31 and _32 members (which
are different in gfxContext vs. DrawTarget).

--HG--
extra : rebase_source : 4f40eb223e3e2153607c9c336fc1c850d0e1776f
2015-12-17 20:04:12 -08:00
Cameron McCormack dde4b8dc8e Bug 1234758 - Back out test. 2016-01-05 13:02:34 +11:00
Botond Ballo b65904a270 Bug 1194851 - Remove the second parameter of IsFixedPosFrameInDisplayPort(). r=kats
No one was using it.

--HG--
extra : source : cf1a0a7146c18850f7619974bad31f888e7e1402
2015-12-16 17:58:52 -05:00
Botond Ballo b9aee9ebb5 Bug 1194851 - Add helper functions HasDisplayPort() and HasCriticalDisplayPort(). r=kats
This makes it clearer whether we're just checking if a displayport exists,
or we're actually consuming its value.

--HG--
extra : source : 70bb222e860669a6cf6e803dbd57f088ca4fbc04
2015-12-16 17:22:23 -05:00
Nicholas Nethercote 06e901cb9f Bug 1231550 - Use DrawTarget instead of gfxContext and/or nsRenderingContext in many places in font/text code. r=jfkthame.
AutoTextRun now only needs a DrawTarget instead of an nsRenderingContext, and
similar nsRenderingContext/gfxContext-to-DrawTarget replacements can be
propagated a long way up the call graph. This patch replaces 93 occurrences of
nsRenderingContext and 135 occurrences of gfxContext with DrawTarget; that's
13% of them.

The patch is mostly plumbing changes. A couple of not-entirely-plumbing
changes:

- It adds a comment about the null check in
  gfxGlyphExtents::GetTightGlyphExtentsAppUnits().

- A couple of functions simply had an unused gfxContext or nsRenderingContext
  parameter removed, e.g. SetLineBreaks().

--HG--
extra : rebase_source : 8f56994bb4d254a86788b17ab2864ebc758a7e6b
2015-12-15 13:56:41 -08:00
Daniel Holbert f288610d40 Bug 1235737: Soften some MOZ_CRASH statements in flexbox layout code to MOZ_ASSERT_UNREACHABLE, which they were originally intended as anyway. r=mats 2016-01-04 13:11:58 -08:00
Lee Salzman 5512fbeae7 Bug 1229983 - verify that paths are finite in DrawTargetSkia::Stroke/Fill to handle Canvas paths containing infs. r=jmuizelaar 2015-12-30 13:39:13 -05:00
Cameron McCormack 9ddbc7d0a3 Bug 1234758 - Disable reftest until it works on all platforms. 2016-01-04 14:18:21 +11:00
Xidorn Quan 7591c87a41 Bug 1231485 part 3 - Fix style tests for text-emphasis properties. r=dbaron
--HG--
extra : source : 866d5ef15b929685d0ed2cb305a7dbe85d62645d
2016-01-04 10:47:05 +11:00
Xidorn Quan 9ef82c65a1 Bug 1231485 part 2 - Add NeutralChange hint to nsStyleText::MaxDifference(). r=dbaron
--HG--
extra : source : e52efce3dce402c1d73790cba33d0a756c3604a9
2016-01-04 10:47:05 +11:00
Xidorn Quan b9cd6f8694 Bug 1231485 part 1 - Fix text-emphasis shorthand with style part unspecified being computed incorrectly. r=dbaron
--HG--
extra : source : fc64b20f5d543e4da712ef3458cf4601f25f782f
2016-01-04 10:47:05 +11:00
Cameron McCormack 180c72432f Bug 1234773 - Followup assertion. 2016-01-04 10:25:28 +11:00
Cameron McCormack 399f165259 Bug 1234773 - Build and parse preference style sheet as a single string. r=dholbert 2016-01-04 09:26:59 +11:00
Cameron McCormack e099de7d6d Bug 1234758 - Fix errors in preference style sheet focus ring rules. r=dholbert 2016-01-04 09:26:58 +11:00
Cameron McCormack cd1a8585e9 Bug 1229567 - Back out bug 1194856 data: URL hack. r=dholbert 2016-01-04 09:26:58 +11:00
Nicholas Nethercote 8dba3aa24f Bug 1232822 (part 4) - Remove unused argument from SetPotentialLineBreaks(). r=jfkthame. 2015-12-15 13:56:40 -08:00
Nicholas Nethercote e542083969 Bug 1233605 - Cull some uses of gfxContext. r=dholbert.
--HG--
extra : rebase_source : eed590fa5fd806f2ed8d754e139e7dd28a8b52e7
2015-12-17 19:36:09 -08:00
Ryan VanderMeulen e0c11b70fe Bug 1235979 - Remove spammy printf that got left by accident when bug 1226904 landed. r=thinker 2016-01-02 20:56:05 -05:00
Jonathan Kew a790163053 Bug 1224669 - Clamp width to be non-negative during intrinsic width calculation. r=dholbert 2016-01-01 10:29:27 +00:00
Jonathan Kew 4a39150d67 Bug 1224669 - Reftest with extreme negative letter-spacing affecting intrinsic width. r=dholbert 2016-01-01 10:29:26 +00:00
Cameron McCormack b0288cdbb3 Bug 1235969 - Unprefix uses of -moz-transform, -moz-transform-origin and -moz-backface-visibility in UA style sheets. r=xidorn 2015-12-31 19:13:18 +11:00
Daniel Holbert 0dec51ea2c Bug 1234941 part 3: Add reftests for "-webkit-box" rendering, with -webkit-box-orient:vertical. r=heycam
--HG--
rename : layout/reftests/webkit-box/webkit-box-align-horiz-1-ref.html => layout/reftests/webkit-box/webkit-box-align-vert-1-ref.html
rename : layout/reftests/webkit-box/webkit-box-align-horiz-1b.html => layout/reftests/webkit-box/webkit-box-align-vert-1.html
rename : layout/reftests/webkit-box/webkit-box-pack-horiz-1-ref.html => layout/reftests/webkit-box/webkit-box-pack-vert-1-ref.html
rename : layout/reftests/webkit-box/webkit-box-pack-horiz-1b.html => layout/reftests/webkit-box/webkit-box-pack-vert-1.html
2015-12-30 23:36:31 -08:00
Daniel Holbert e05e30fc6c Bug 1234941 part 2: Add reftests for "-webkit-box" rendering, with -webkit-box-orient:horizontal. r=heycam
--HG--
rename : layout/reftests/webkit-box/webkit-box-align-horiz-1a.html => layout/reftests/webkit-box/webkit-box-align-horiz-1b.html
rename : layout/reftests/webkit-box/webkit-box-pack-horiz-1a.html => layout/reftests/webkit-box/webkit-box-pack-horiz-1b.html
2015-12-30 23:36:31 -08:00
Daniel Holbert bfd8e047b1 Bug 1234941 part 1: Add reftests for "-webkit-box" rendering, with -webkit-box-orient unset. r=heycam 2015-12-30 23:36:31 -08:00
Daniel Holbert cf0bd32b1c Bug 1208344 part 7: Add mochitest to test how "-webkit-box-orient" maps to "flex-direction". r=heycam 2015-12-30 23:36:31 -08:00
Daniel Holbert 95fba5516e Bug 1208344 part 6: Move new CSS_PROPERTY_LOGICAL_CUSTOM flag up with other LOGICAL flags, and adjust bits accordingly. r=heycam 2015-12-30 23:36:31 -08:00
Daniel Holbert 132f908817 Bug 1208344 part 5: Add (preffed-off) support for "-webkit-box-orient" CSS property, as a writing-mode-dependent alias for "flex-direction". r=heycam 2015-12-30 23:36:31 -08:00
Daniel Holbert c26c8cde8f Bug 1208344 part 4: Make MapSinglePropertyInto() take the source property as an arg (unused for the moment). r=heycam 2015-12-30 23:36:31 -08:00
Daniel Holbert be1d98bd1c Bug 1208344 part 3: Rename MapSinglePropertyInto() args, to make src-vs-target distinctions clearer. r=heycam 2015-12-30 23:36:31 -08:00
Daniel Holbert 2cda1a5c96 Bug 1208344 part 2: Make EnsurePhysicalProperty() (not its callers) check whether property is logical. r=heycam 2015-12-30 23:36:31 -08:00
Daniel Holbert dccbc0f8e4 Bug 1208344 part 1: Make EnsurePhysicalProperty() return the property directly, instead of using in/out-param. r=heycam 2015-12-30 23:36:31 -08:00
Timothy Nikkel d69b71e329 Bug 1235696. The animated geometry root of a transfromed and sticky pos frame should be the frame itself. r=mattwoodrow
Both sticky pos and transforms make a frame into an AGR. The transform item is nested inside the sticky pos item, so it should have the same AGR as the sticky pos item.
2015-12-30 23:00:47 -06:00
Xidorn Quan da6771e9a1 Bug 1215365 - Update ua style sheet of fullscreen element. r=heycam
--HG--
extra : source : f604baeef9b46dfc643f8cbc612f9539e5053094
2015-12-31 14:11:36 +11:00
Xidorn Quan 83d158dae8 Bug 1235489 - Remove assertion which is breakable when reflow is interrupted. r=jfkthame
--HG--
extra : source : 34c7ffa581012f771b1324df3f7a7ab95be40c29
2015-12-31 10:50:32 +11:00
Jonathan Kew 9137c3ddf5 Bug 739117 - Avoid bidi-wrapping the text to be shaped if Core Text direction override API is available. r=jdaggett 2015-12-30 20:29:48 +00:00
Jonathan Kew 49400588df Bug 739117 - Reftest for Arabic ligature in an AAT font. r=jdaggett 2015-12-30 11:51:26 +00:00
Robert Longson e7bc0ea9a2 Bug 1156581 - Add null check to nsSVGEffects::InvalidateRenderingObservers to prevent crashes r=dholbert 2015-12-30 20:19:33 +00:00