Commit Graph

27592 Commits

Author SHA1 Message Date
Robert O'Callahan
82d45b530d Bug 537890. Part 11: Introduce _TO_INT_TWIPS macros and have some _TO_TWIPS callers use _TO_INT_TWIPS instead. r=dbaron 2010-08-13 21:59:16 +12:00
Robert O'Callahan
339b3340da Bug 537890. Part 10: Fix nsPresContext and nsIDeviceContext unit-conversion methods to be explicit about using CSS logical units instead of physical units. r=dbaron 2010-08-13 21:58:04 +12:00
Robert O'Callahan
d61b93538d Bug 537890. Part 7: Tests for pt/pc/mm/cm/in not being physical units, and for mozmm being physical units. r=dbaron 2010-08-13 21:58:02 +12:00
Robert O'Callahan
085c8301ba Bug 537890. Part 6: Switch DPI dynamically when the window moves across screens or the screen mode changes. r=dbaron 2010-08-13 21:58:02 +12:00
Robert O'Callahan
4e69a7ecad Bug 537890. Part 5: Make pc, in, mm and cm be a fixed number of CSS pixels. r=dbaron 2010-08-13 21:58:02 +12:00
Robert O'Callahan
46ae2ef8d0 Bug 537890. Part 4.5: Create 'mozmm' unit for physical millimeters on screen devices. r=dbaron 2010-08-13 21:58:02 +12:00
Robert O'Callahan
fd75e64333 Bug 537890. Part 4: Make points be a fixed number of CSS pixels. r=dbaron 2010-08-13 21:58:01 +12:00
Robert O'Callahan
8084cbbe6d Bug 537890. Part 8: Define MM_PER_INCH_FLOAT. r=dbaron 2010-08-13 21:57:57 +12:00
Robert O'Callahan
c680d55014 Bug 579621. Don't create widgets for chrome subdocuments of chrome windows. r=tnikkel 2010-08-13 21:57:48 +12:00
Timothy Nikkel
46997b5807 Bug 579621. Fix print preview tests to be content subdocuments. r=roc 2010-08-13 21:57:29 +12:00
Robert O'Callahan
d9ad5ed49c Bug 579258. Remove the 'before move' region parameter to ComputeVisibility. r=tnikkel,a=joe 2010-08-13 21:55:54 +12:00
Robert O'Callahan
002b421174 Bug 579258. Change IsVaryingRelativeToMovingFrame to take the 'moving frame' as a direct parameter instead of getting it from the builder. r=tnikkel,a=joe 2010-08-13 21:54:37 +12:00
Boris Zbarsky
6fc9d4f89d Bug 569520 part 2. Implement a mozRequestAnimationFrame/mozAnimationStartTime API. r=roc, a=joe 2010-08-11 17:05:28 -04:00
Boris Zbarsky
94a9bcd849 Bug 577607 part 3. Use the main doc refresh driver for resource documents and the parent document's refresh driver for documents that are not roots of their type. r=roc, a=joe 2010-08-11 17:05:27 -04:00
Boris Zbarsky
75b9e08789 Bug 577607 part 2. Teach the refresh driver to flush restyles and reflow on more than one presshell. r=roc 2010-08-11 17:05:27 -04:00
Olli Pettay
3a9d21a136 Bug 585815, create treerange list straight to the mFirstRange, r=neil
--HG--
extra : rebase_source : f71a56d90b51e26d3d5d8aedc969ca51c09f0fd3
2010-08-12 15:05:43 +03:00
Olli Pettay
3db4e27da3 Bug 583957, lazy menuframe update, r=enndeakin, sr=neil, a=dbaron
--HG--
extra : rebase_source : f036ff3e7ee39225f17d1d4aba0d4e7c71960d58
2010-08-12 14:59:03 +03:00
Robert O'Callahan
19a4e37ac9 Backed out changeset 0c4519d63a98 2010-08-12 11:32:21 +12:00
Boris Zbarsky
cfd42187e4 Bug 577607 part 2. Teach the refresh driver to flush restyles and reflow on more than one presshell. r=roc 2010-08-11 17:05:27 -04:00
Boris Zbarsky
aed8438e78 Bug 577607 part 1. Make sure resource documents don't have presshells when their display document doesn't. r=roc 2010-08-11 17:05:26 -04:00
fantasai
d65a7e96aa Change coordinate system in the float manager from content box (most of the time, but sometimes border box) to always border box. (Bug 551425) r=dbaron a2.0=blocking+ 2010-08-11 12:32:53 -07:00
L. David Baron
2a023744e6 Add support for calc() to the 'width' property. (Bug 585715) r=bzbarsky a2.0=blocking2.0+ 2010-08-11 12:32:53 -07:00
L. David Baron
c61f9bfba4 Distinguish between 50% and calc(50%), etc., in computed style calc expressions. (Bug 585715) r=bzbarsky a2.0=blocking2.0+ 2010-08-11 12:32:52 -07:00
L. David Baron
39c372840a Consolidate code for determining when widths and heights depend on a container. (Bug 585715) r=bzbarsky a2.0=blocking2.0+ 2010-08-11 12:32:52 -07:00
L. David Baron
e9ab54ed5b Make a common base class for calc ops that use nsStyleCoord as input. (Bug 585715) r=bzbarsky a2.0=blocking2.0+ 2010-08-11 12:32:52 -07:00
L. David Baron
fb76c8e137 There's no need for a separate CoordPercentCalc implementation; ComputeCalc can handle that. (Bug 585715) r=bzbarsky a2.0=blocking2.0+ 2010-08-11 12:32:52 -07:00
L. David Baron
b27e44d513 Add a 'display:block' prerequisite for 'width' property tests so that calc() tests will actually have a percentage basis and thus actually test the code. (Bug 585715) r=bzbarsky a2.0=blocking2.0+ 2010-08-11 12:32:52 -07:00
L. David Baron
f88364d08c Fix places where we should skip to a closing parenthesis during errors parsing functions. (Bug 575672) r=bzbarsky a2.0=blocking2.0+ 2010-08-11 12:32:52 -07:00
L. David Baron
a286bcfd04 CSS transition timing functions should not allow X arguments to cubic-bezier() outside of 0-1. (Bug 575672) r=bzbarsky a2.0=blocking2.0+ 2010-08-11 12:32:52 -07:00
Mats Palmgren
a7f4533995 Bug 576649. r=bzbarsky a=blocking2.0 2010-08-10 19:04:43 -03:00
Neil Deakin
78f7ba2d70 Bug 585841 - Right click, 'copy link location' no longer works
r=Neil
a=blocking2.0
a=sheriff for landing
2010-08-10 13:55:31 -07:00
Olli Pettay
ab365556e5 Bug 584866 - Cache LoadFrameScript Calls [r=jst] 2010-08-10 13:18:26 -04:00
Ehsan Akhgari
489e5fab3f Bug 580869 - Cache the frame found in nsTextFrame::GetChildFrameContainingOffset; r=roc approval2.0=dbaron
--HG--
extra : rebase_source : 3bdd49e0e039c212b5faa8d12bcbdd785da267a4
2010-08-10 11:16:17 -04:00
Dão Gottwald
1e1c1def63 Backed out changeset cdd440adb726 2010-08-10 15:10:11 +02:00
Ms2ger
719312de88 Bug 562698 - Part a: Pass Elements to nsIMutationObserver::AttributeChanged and nsCSSFrameConstructor::AttributeChanged; r=bzbarsky, a=dbaron 2010-08-10 14:25:28 +02:00
Mark Banner
2cd6513bc1 Bug 585734 Disable some c++ unit tests (TestCSSPropertyLookup, TestWinDND) in static builds due to compilation failures. r=khuey,a=test-only fix 2010-08-10 10:44:25 +01:00
Simon Montagu
e2d46b52f2 Check that frame offsets are within content. Bug 579655, r=roc, blocking2.0=dsicore 2010-08-10 10:08:59 +03:00
Jim Mathies
bd1872ca14 Bug 574454 - Add caption buttonbox css styles. r=dbaron. 2010-08-09 20:49:34 -05:00
Jim Mathies
85ca93692a Bug 574454 - Add window frame css styles. r=dbaron. 2010-08-09 20:49:34 -05:00
Neil Deakin
d20855b708 Bug 383930/552341, allow usage of a property on popups instead of using document.popupNode, should fix leak of popupNode, r=neil,sr=roc 2010-08-09 12:17:19 -04:00
Neil Deakin
e45ac3dd68 Bug 583255, don't involve views in tree offset computation, fixes inspector mouse events, r=roc,a=dbaron 2010-08-09 12:15:39 -04:00
Phil Ringnalda
097358c520 Backed out changeset ec28c1790e13 (bug 579621) for print preview test timeouts 2010-08-08 17:48:03 -07:00
Robert O'Callahan
1b1a7d673f Bug 579621. Don't create widgets for chrome subdocuments of chrome windows. r=tnikkel, a=blocker
--HG--
extra : rebase_source : 669b45a017fd52aa8106b98f6f8dd2d5ed846d4e
2010-08-04 21:40:00 -07:00
Timothy Nikkel
66f623ffab Merge back out of changeset 86e8ec17e532 (bug 584193). 2010-08-08 16:58:59 -05:00
Timothy Nikkel
e022122398 Backed out changeset 86e8ec17e532 (bug 584193). 2010-08-08 16:58:40 -05:00
Jeff Muizelaar
a4d9c2e288 Bug 585163. reftest: Adjust scales and text sizes to an exact representation. r=roc
This fixes the test with Direct2D. Inaccurate values for font_matrix come
from converting 6/60 into a float and then treating it as a double.
2010-08-08 15:54:27 -04:00
Jeff Muizelaar
c832680e15 Bug 584515. Fix border-breaking-000-cols.xhtml on D2D. r=roc
We are running into rasterization inaccuracies here.

This test draws green circles on a green rectangle and assumes that the result
will be solid green.

Here's what happens with D2D:

D2D computes coverage values in floating point so assume that we get a coverage
of about 0.112399 or 0.112399*255 == 28.6

green (128/255 == 0.50196) is multiplied by the coverage to get 0.0564702 or
.0564702*255 == 14.39

the results of the pixel shader get rounded before blending. So we get
(r=0,g=14,b=0,a=29)

blending this OVER green gives:

14+(255-29)*128/255 == 127 instead of 128.

This doesn't happen with other backends because they typically use integer
coverage amounts.

We fix it by using '&nbsp' instead of '.'
2010-08-08 15:54:24 -04:00
Robert O'Callahan
f972d43f24 Bug 584193. Allow print preview to work without its own widget. r=smaug 2010-08-08 13:49:07 -05:00
Timothy Nikkel
987f68275e Bug 579663. Part 9. Simplify ProcessDisplayItems because all items in a container layer have the same app units per dev pixel. r=roc 2010-08-08 13:49:07 -05:00
Timothy Nikkel
3b953e9755 Bug 579663. Part 8. Simplify FrameLayerBuilder::DrawThebesLayer because it does not have to deal with items at different AppUnitsPerDevPixel ratios. r=roc 2010-08-08 13:49:07 -05:00