Benjamin Smedberg
bcb4f74440
Additional review fix for bug 583109 comment 49 (karlt).
2010-11-10 08:19:53 -05:00
Benjamin Smedberg
1417fd7f05
Fix review comments from bug 583109 (changeset 6ff3fcbb7845), comment 46.
2010-11-09 09:36:33 -05:00
Benjamin Smedberg
2aaeb2d246
Merge mozilla-central into the branch for asynchonous plugin painting (bug 596451), especially to pick up and test whether the fix for 602200 also fixes bug 607958.
2010-11-08 09:50:11 -05:00
Benjamin Smedberg
9df15ba4d0
Fix nsObjectFrame.cpp back to unix-style line endings. DOS endings crept in during the last merge for reasons I don't understand.
2010-11-08 09:48:02 -05:00
Benjamin Smedberg
010fbdcb07
Merge mozilla-central into the branch for asynchronous plugin painting on Windows.
2010-11-05 15:56:28 -04:00
Benjamin Smedberg
b5c8de3824
Bug 606285 and Bug 583109 - Send the "visible" notification when painting with async layers, so that when a plugin goes from invisible to visible it starts sending asynchronous paints. Suspend sending surface updates for asynchronous plugins when they are invisible, and set the empty clipRect so that the plugin knows that drawing is suspended per the new API. Assume that plugins are visible again when a Paint or BuildLayer call is received. r-pending=karlt
2010-11-05 10:40:55 -04:00
Jan Arne Petersen
63f71f3156
Bug 583109 - Add visibility notification for plugins by setting the NPWindow.clipRect to [0, 0, 0, 0] when the plugin is not visible, either in a background tab, or visibility: hidden. r=karlt Patch rebased against trunk by Benjamin Smedberg.
2010-11-05 10:38:33 -04:00
Ms2ger
d1816016c2
Bug 604078 - Two comparisons between signed and unsigned integers in nsTextFrame::PeekOffsetCharacter; r=ehsan a=bsmedberg
2010-11-04 16:43:01 -04:00
Ehsan Akhgari
5febe4410c
Bug 424627 - Ctrl+clicking on a text control border followed by an editing operattion (e.g. paste) removes the table cell from a non-editable document; r=roc a=blocking-final+
2010-11-01 19:04:12 -04:00
Benjamin Smedberg
0a2062e721
Merge mozilla-central to the branch for bug 596451.
2010-10-28 10:05:20 -04:00
Benjamin Smedberg
280184d562
Bug 596451 part G - Fix a condition where FixupWindow is called too early and doesn't know that we are a windowless plugin yet. Call FixupWindow from nsPluginInstanceOwner::CreateWidget, r=roc
2010-10-27 09:10:50 -04:00
Mats Palmgren
a49bc9b30b
Null-check the root pres context before using it. b=599341 r=roc a=dbaron
2010-10-27 16:19:01 +02:00
Ehsan Akhgari
bc3929193c
Bug 605138 follow-up: fix Thunderbird bustage. r=me a=bustage
2010-10-25 14:24:40 -04:00
Ehsan Akhgari
b3ebab6edb
Bug 605138 - Part 2: Refactor nsTypedSelection::ScrollIntoView to use flags instead of parameters; r=roc a=blocking-final+
2010-10-22 18:41:55 -04:00
Ehsan Akhgari
c5d807f1c7
Bug 605138 - Scripts from topix.net apparently causing page to scroll down when opening; r=roc a=blocking-final+
2010-10-21 16:56:20 -04:00
Robert O'Callahan
d6707f1b58
Bug 593839. Part 1: Use nsDisplayListBuilder::IsPaintingToWindow instead of gfxContext::DESTINED_FOR_SCREEN. r=tnikkel
2010-10-25 16:38:09 +02:00
Neil Deakin
902842e19b
Bug 578667, text not highlighting when selectiondrag is outside frame, r=mats,a=blocking
2010-10-25 10:06:30 -04:00
Boris Zbarsky
ebd7c067e3
Bug 484992 and bug 604420. Don't start a new network request when instantiating the plug-in for <object>s. r=josh, a=blocker
2010-10-22 21:16:29 -04:00
Ehsan Akhgari
90e76bbb1f
Bug 389321 - Part 3: Use a centralized algorithm for caret positioning; r=roc a=blocking-betaN+
2010-08-31 14:54:44 -04:00
Mats Palmgren
11ce93ed15
Backout bug 571995. a=backout
2010-10-12 18:40:44 +02:00
L. David Baron
7fe205cc61
Add an additional value to nsOverflowType so that compilers (in particular, gcc 4.5.*) know that one past the end is a value they'll need to deal with. (Bug 602826) r=roc a2.0=blocking
2010-10-11 19:20:57 -07:00
L. David Baron
0b7f765281
Make hit testing for border-radius follow the curvature of the border. (Bug 595652) r=roc a2.0=blocking2.0:betaN
2010-10-11 11:03:12 -07:00
Jesse Ruderman
8e8208ee67
Bug 570289 - add crashtest
2010-10-11 09:55:23 -07:00
Jesse Ruderman
fd58e9ed9c
Bug 589002 - add crashtest
2010-10-11 09:55:23 -07:00
Jesse Ruderman
8f4714325e
Bug 590426 - fix timeout/onload race in a crashtest
2010-10-11 09:55:22 -07:00
Matt Woodrow
47554e7736
Bug 594983. Look inside display sublists to determine whether there is text for the layer. r=roc,a=blocking
2010-10-11 13:58:20 +13:00
Mats Palmgren
88625a23ac
Just switch to the new textrun for empty text frames. b=571995 r=roc a=blocking2.0:final
2010-10-11 00:07:01 +02:00
Ehsan Akhgari
83a84791e8
Bug 602141 - Right arrow navigation broken on later contenteditable content on single line; r=bzbarsky a=blocking-final+
2010-10-08 15:49:47 -04:00
Ehsan Akhgari
28e97f8723
Bug 389321 - Part 1: Don't choke on textnodes which don't have a primary frame; r=roc a=blocking-betaN+
2010-08-17 15:25:53 -04:00
Mats Palmgren
8f52e9d7f5
Delay hiding the plugin window when a delayed stop is requested (eg. during frame destruction). b=604734 r=roc a=blocking2.0:beta7
2010-10-28 22:27:52 +02:00
Ehsan Akhgari
ecfaa4d477
Bug 586662 - Part 3: Don't attempt to compare unrelated points when manipulating selections; r=roc a=blocking-betaN+
2010-09-23 14:44:01 -04:00
L. David Baron
80e25678c7
Check isValid, since bindings in chrome (e.g., Fennec select binding) can make it be false. (Bug 596767) r=bzbarsky a2.0=blocking2.0:betaN
2010-10-06 21:25:47 -07:00
L. David Baron
64d33e9f4c
Avoid early return from nsImageFrame::BuildDisplayList, so we don't go blank for some selection cases. (Bug 599368) r=tnikkel a2.0=blocking2.0:final
2010-10-06 21:25:47 -07:00
L. David Baron
bea16867c4
Reflow floating ::first-letter before deciding where to place the float, since we need to reflow it to learn its width. (Bug 594303) r=roc a2.0=blocking:betaN
2010-10-06 21:25:47 -07:00
L. David Baron
cd40905288
When a frame is themed, report a border-radius of 0. (Bug 595652) r=roc a2.0=blocking2.0:betaN
2010-10-06 21:25:47 -07:00
L. David Baron
2b00d08685
Adjust known assertion counts for assertions that now happen for each overflow area. (Bug 542595, patch 21) a2.0=blocking2.0:beta8
2010-10-06 21:25:47 -07:00
L. David Baron
a56a24a514
Change callers to use new nsIFrame overflow APIs. (Bug 542595, patch 20) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:47 -07:00
L. David Baron
40d60928c6
Fix miscellaneous reflow methods to use new overflow area APIs. (Bug 542595, patch 19) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:46 -07:00
L. David Baron
bf7624301d
Now that overflow areas are split, change nsIFrame::ComputeTightBounds to use visual overflow. While it really only needs to include frame bounds, glyph bounds, and text decorations, since glyph bounds are not part of scrollable overflow, it must use visual overflow. (Bug 542595, patch 15) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:46 -07:00
L. David Baron
501b36b2c2
Remaining nsBlockFrame changes for split overflow areas. (Bug 542595, patch 14) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
972bf93064
Change nsBlockReflowContext::PlaceBlock for split overflow areas. (Bug 542595, patch 13) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
21464c8326
Split overflow areas for block frame float continuations. (Bug 542595, patch 12) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
b26661f697
Compute nsBlockFrame.cpp's ComputeCombinedArea to split overflow areas. (Bug 542595, patch 11) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
bb2c9bd999
Compute nsBlockFrame::ComputeCombinedArea to split overflow areas. (Bug 542595, patch 10) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
b401e8f1d5
Convert nsBlockReflowState::mFloatCombinedArea and part of nsBlockFrame to split overflow areas. (Bug 542595, patch 9) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
dfd177a552
Make overflow from text frames be visual overflow only, and not scrollable. (Bug 542595, patch 8) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
03966a7c79
Make nsLineLayout track two separate overflow areas. (Bug 542595, patch 7) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
178a968ed2
Make nsLineBox track two separate overflow areas. (Bug 542595, patch 6) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
b7c46f2dc7
Remove unused method nsLineBox::CombinedAreaIntersects. (Bug 542595, patch 5) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
d86ede8347
Change FinishAndStoreOverflow API to take two overflow areas. (Bug 542595, patch 4) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
70196364ee
Make ReflowOverflowContainerChildren handle split overflow areas. (Bug 542595, patch 3) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
af38a36244
Use split overflow areas in nsAbsoluteContainer::Reflow. Fixes overflow handling bug in nsPositionedInlineFrame where non-positioned overflow was ignored. (Bug 542595, patch 2) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
L. David Baron
9cc9011dcd
Convert nsIFrame APIs from having a single overflow rect to having two distinct overflow rects. (Bug 542595, patch 1) r=roc sr=bzbarsky a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
Boris Zbarsky
a7d2e54c98
Bug 129941 followup. Continue creating scrollframes for native anonymous content. a=crashing tests
2010-10-06 22:21:58 -04:00
Boris Zbarsky
280f2c88c6
Bug 129941. Don't create scrollframes for blockframes (except inline blocks) while printing, and make such blockframes clip their contents instead. r=dbaron
2010-10-06 21:01:24 -04:00
Oleg Romashin
a02cd4afb2
Bug 599476 - windowless plugins in object elements with data (e.g. certain Flash pages) are not painted. r=karlt a=beta7
2010-10-02 09:00:45 -07:00
Mounir Lamouri
cc33a99998
Merging to tip. a=blocking-b7
2010-09-30 17:10:19 -07:00
Oleg Romashin
5ed5aef853
Bug 599704 - mozilla.plugins.use_layers - does not have any effect. r=roc a=beta7
2010-09-29 20:32:55 -07:00
Jesse Ruderman
f6516296f6
Bug 580504 - add crashtest. a=NPOTB
2010-09-24 11:29:07 -07:00
Josh Aas
e8cb9a73bd
Bug 599086 and bug 599391: Disable tests that are now intermittent orange because we put the Mac OS X test plugin out of process. a=josh
2010-09-24 13:04:25 -04:00
Ehsan Akhgari
4c3df3f153
Bug 597333 - Crash [@ gfxTextRun::GetChar][@ nsIFrame::PeekOffset(nsPeekOffsetStruct*) ] when navigating inside a textarea; r=roc a=blocking-final+
...
--HG--
extra : rebase_source : 43e6b1193c5707313e06a4d0afa21bca03ab297b
2010-09-20 17:33:58 -04:00
Mats Palmgren
a8e03cc0ca
Bug 559705 - "ASSERTION: Subdoc frames must have an inner view too". r=roc a2.0=roc
2010-09-18 13:28:50 +02:00
Mats Palmgren
48db0466a9
Bug 449734 part 3 - Update nsThebesDeviceContext::mWidget. r=roc a=blocking2.0:betaN
2010-09-18 13:28:50 +02:00
Mats Palmgren
698eb966cf
Bug 449734 part 1 - Preserve presentation when dragging a tab between browser windows. r=roc a=blocking2.0:betaN
2010-09-18 13:28:49 +02:00
Robert O'Callahan
594cd74d3d
Bug 584494. Avoid creating opacity/transform wrappers for empty lists. r=tnikkel a2.0=blocking2.0:betaN
2010-09-17 12:29:52 -07:00
Robert O'Callahan
d4a0159920
Bug 596710. Increment (not decrement) rline to skip checking the cursor line twice. r=dbaron a=blocking
2010-09-17 12:09:08 -07:00
Robert O'Callahan
a52325c14b
Bug 596414. Tell ChildView about the plugin drawing model. r=josh
2010-09-17 10:55:39 -07:00
Oleg Romashin
de25e2c90e
Bug 556487 - drop layer on dead child plugin process. r=roc a=blocking2.0
2010-09-16 21:09:32 -07:00
Oleg Romashin
d24d315810
Bug 556487 - ObjectFrame GetBounds. r=roc a=blocking2.0
2010-09-16 21:09:30 -07:00
Oleg Romashin
d0a0315771
Bug 556487 - Disable layers for non-ipc usage. r=roc a=blocking2.0
2010-09-16 21:09:27 -07:00
Oleg Romashin
0bd5de10b8
Bug 556487 - ObjectFrame BuildLayer implementation. r=roc a=blocking2.0
2010-09-16 21:09:25 -07:00
Ehsan Akhgari
dae8839f12
Bug 596506 - Going to end of line using Ctrl-e on Mac positions caret after newline in textareas; r=bzbarsky a=blocking-final+
2010-09-16 14:40:26 -04:00
Chris Jones
0a4b5217a4
Merge m-c --> cedar
2010-09-15 12:33:59 -05:00
Chris Jones
110d280286
Merge m-c --> cedar
2010-09-14 14:28:39 -05:00
Chris Jones
ee72f210ea
Merge m-c --> cedar
2010-09-13 19:24:09 -05:00
Oleg Romashin
137fc0d394
Bug 595577 - Cedar is busted after merging with m-c, (Bug 459144) conflict. r=dbaron
2010-09-11 19:22:33 -07:00
Oleg Romashin
497f2db326
Merge with mozilla central 2779c55431a4, no conflicts
2010-09-10 22:32:25 -07:00
Chris Jones
4820da2166
Merge m-c --> cedar
2010-09-08 17:25:30 -05:00
Daniel Holbert
ecd6d13497
Bug 594650: Replace static variable in header file with static variable + accessor method, to fix codesighs & Composer.dll bustage. r=roc r=taras a=bustage
2010-09-09 09:41:58 -07:00
L. David Baron
d99ac32acf
Clip replaced elements (for now, images, canvases, videos, and windowless plugins) to the border radius. (Bug 485501) r=roc a2.0=blocking:beta6
2010-09-09 08:21:47 -07:00
L. David Baron
d44b4ee882
Clip contents of elements with overflow != visible to the border radius. (Bug 459144, patch 14) r=roc a2.0=blocking2.0:beta6
2010-09-09 08:21:46 -07:00
L. David Baron
27b2504e3c
Make nsIFrame::DisplaySelectionOverlay take an nsDisplayList* instead of nsDisplayListSet&. (Bug 485501) r=roc a2.0=blocking:beta6
2010-09-09 08:21:46 -07:00
L. David Baron
4113d6f1f9
Remove unneeded nsAbsPosClipWrapper::mContainer. (Bug 459144, patch 12) r=roc a2.0=blocking2.0:beta6
2010-09-09 08:21:46 -07:00
L. David Baron
cec33102e4
Remove unneeded nsDisplayClip::mClippingFrame. (Bug 459144, patch 11) r=roc a2.0=blocking2.0:beta6
2010-09-09 08:21:46 -07:00
L. David Baron
f9bc2d9cef
Fix places where I missed clamping negative calc() to 0. (Bug 585715) r=bzbarsky a2.0=blocking2.0:beta6
2010-09-09 08:21:46 -07:00
L. David Baron
8aaf22a0f4
Add support for calc() on -moz-border-radius and -moz-outline-radius. (Bug 585715) r=bzbarsky a2.0=blocking2.0:beta6
2010-09-09 08:21:45 -07:00
Chris Jones
9e23f35349
Merge m-c --> cedar
2010-09-07 17:35:15 -05:00
Timothy Nikkel
6b532c4152
Bug 594271. Don't send synth mouse moves to hidden documents. r=dbaron a=dbaron
2010-09-11 13:24:50 -05:00
Timothy Nikkel
9e47257ea3
Bug 593286. Use the frame/view system to determine parent documents, not the docshell because the docshell hierarchy doesn't stay intact during page tranisition. r=roc a=blocking final
2010-09-11 13:24:50 -05:00
Timothy Nikkel
64df346e92
Bug 593892. Draw the previous page if the new page is suppressed. r=roc a=roc
2010-09-11 13:24:49 -05:00
L. David Baron
344df4887f
Simplify storage of computed calc() as a result of removing min() and max(). (Bug 363249) r=bzbarsky a2.0=blocking2.0:beta6
2010-09-11 09:27:13 -07:00
L. David Baron
fa356d0a17
Remove support for min() and max() in calc(): remove support for parsing and storage. (Bug 363249) r=bzbarsky a2.0=blocking2.0:beta6
2010-09-11 09:27:12 -07:00
L. David Baron
b272e35a61
Change the blur radius for -moz-box-shadow and text-shadow to match what is specified in css3-background, and the blur radius for canvas to follow what is specified in HTML5. (Bug 590039) r=roc a2.0=blocking2.0:beta6
...
This fixes the multiplication by 1.5 in
gfxAlphaBoxBlur::CalculateBlurRadius (originally added in changeset
ce9f05b57b95 for bug 467518) to work correctly. It was previously a
multiplication by 1 due to integer division. CalculateBlurRadius
previously multiplied by 1.880; it now multiplies by 2.820.
This changes canvas shadow handling to multiply shadowBlur by 2 before
taking its square root, as described in the spec. This means that
canvas shadow blurs 8px or smaller are 1.5 times larger than they were
previously (due to the CalculateBlurRadius change), and canvas shadow
blurs larger than 8px are 2.121 times larger than they were previously
(due to the CalculateBlurRadius change *and* the additional factor of
sqrt(2)).
This changes text-shadow and -moz-box-shadow handling to use
CalculateBlurRadius on half of the value given instead of passing the
value through directly. This means that text-shadow and box-shadow
blurs are multiplied by 1.410 relative to their old sizes. It also
means that we round rather than floor, so that the effect that used to
be drawn by a blur in the range 1px to 1.99px is now drawn by a blur
anywhere in the range 0.36px to 1.05px, the effect that used to be drawn
by a blur in the range 2px to 2.99px is now drawn by a blur anywhere in
the range 1.06px to 1.77px, what used to be a drawn by a blur in the
range 3px to 3.99px is now drawn by a blur anywhere in the range 1.78px
to 2.47px, etc.
2010-09-11 09:27:12 -07:00
Chris Jones
6c7c82837a
Bug 590294, part -1: Clip <browser> shadow layers properly. r=tn
2010-09-03 15:10:45 -05:00
Chris Jones
6e7a7cd71a
Merge m-c --> cedar
...
--HG--
rename : layout/style/test/hover_helper.html => layout/style/test/chrome/hover_helper.html
rename : layout/style/test/test_hover.html => layout/style/test/chrome/test_hover.html
2010-09-03 14:07:55 -05:00
Mats Palmgren
76f0893448
Backing out bug 449734 due to unexpected orange. a=ted
2010-09-03 18:13:49 +02:00
Mats Palmgren
d234af154c
Bug 449734 - Preserve presentation when dragging a tab between browser windows. r=roc a=blocking2.0:betaN
2010-09-03 16:22:00 +02:00
Robert O'Callahan
cfc08eb0c7
Bug 579276. Part 8: Bump scroll timeout up a lot. r=tnikkel
2010-09-02 21:18:39 +12:00
Ehsan Akhgari
7b654288bf
Back out bug 240933 and bug 590554 because of reftest failure on Win7 and also bug 593211
2010-09-02 19:54:23 -04:00
Oleg Romashin
bd3aa71c63
Merged m-c: 51d17027ff45 -> cedar
2010-09-01 09:36:29 -07:00