Commit Graph

9878 Commits

Author SHA1 Message Date
Daniel Holbert
0e5aa291e4 Bug 969147: Compute (and sum) the cross sizes of flex lines as we go, to make pagination easier. r=mats 2014-02-06 17:04:52 -08:00
Daniel Holbert
534b12e52f Bug 967287 part 2: Adjust indentation after removal of nsPresContext* args. r=mats 2014-02-06 14:07:48 -08:00
Daniel Holbert
03c54ea5eb Bug 967287 part 1: Remove unnecessary nsPresContext* argument from functions defined in nsContainerFrame.h. r=mats 2014-02-06 14:07:47 -08:00
Alex Henrie
5b028ed455 Bug 968029 - Use unprefixed box-sizing in content/, dom/, layout/, and widget/. r=dbaron 2014-02-06 12:32:05 -07:00
Daniel Holbert
d0e81da0c7 Bug 965897: Assert that we have the right prescontext in nsHTMLReflowState constructor, and convert some existing NS_PRECONDITION null-checks into MOZ_ASSERTs. r=mats 2014-02-06 01:02:12 -08:00
Kartikaya Gupta
3195471b3f Bug 963278 - Better fix to deal with concurrent scroll updates from APZ and other places. r=tn,botond,jimm 2014-02-05 17:43:20 -05:00
Cameron McCormack
3a90450125 Bug 960899 - Add debug function and lldb command to print frame state symbolically. r=dbaron 2014-01-18 18:08:22 +11:00
Phil Ringnalda
82215dcc45 Back out 191a71ff02bf (bug 960899)
CLOSED TREE
2014-02-04 21:37:12 -08:00
Cameron McCormack
3e63ea6104 Bug 960899 - Add debug function and lldb command to print frame state symbolically. r=dbaron
--HG--
extra : rebase_source : 6c83922c24727d03830de31b3407fa0e6a0e350e
2014-01-18 18:08:22 +11:00
Cameron McCormack
0a9b781e2a Bug 960848 - Part 3: Generate consts rather than enum values for nsFrameState bits for VS2010. r=dbaron,f=glandium 2014-02-05 13:00:03 +11:00
Cameron McCormack
902a14aa10 Bug 960848 - Part 2: Swap NS_BLOCK_HAS_FIRST_LETTER_CHILD and NS_BLOCK_FRAME_HAS_INSIDE_BULLET bit values. r=dbaron 2014-02-05 12:59:57 +11:00
Cameron McCormack
15cc32b681 Bug 960848 - Part 1: Make nsFrameState an enum and consolidate all frame state bit definitions in a single preprocessed file. r=dbaron 2014-02-05 12:59:39 +11:00
Timothy Nikkel
b9030265fa Bug 967758. Disable newly added assert because it is triggering too much. r=roc on a CLOSED TREE 2014-02-04 19:04:50 -06:00
Mats Palmgren
f3a6f071a1 Bug 966419 - Update the global ShrinkToFitRatio when the current page overflows and requires additional scaling to fit horizontally on the page in Print/Preview. r=dholbert 2014-02-04 02:12:13 +00:00
Mats Palmgren
56dbbf4031 Bug 946929 - Part 2, Disable painting for the shell while the child views are detached. r=roc 2014-02-03 23:47:57 +00:00
Mats Palmgren
15cbe0028f Bug 946929 - Part 1, Don't schedule paint related events in a detached pres context. r=roc 2014-02-03 23:47:57 +00:00
Ryan VanderMeulen
1151d8d8c4 Merge m-c to inbound. 2014-01-31 21:16:16 -05:00
Ryan VanderMeulen
a52f4d9d32 Backed out changeset 4f0d8916386e (bug 962791) for causing various regressions. 2014-01-31 20:40:29 -05:00
L. David Baron
89b1ca2c1d Bug 964529 pre-patch: Make things that were syntax errors prior to enabling scientific notation continue to be syntax errors, by changing e+ to x+. 2014-01-31 16:06:46 -08:00
Blake Kaplan
d552cb63bb Bug 966398 - Kill nsIBidiKeyboard::SetLangFromBidiLevel. r=roc
--HG--
extra : rebase_source : 3a8a5a58e6bf56f8201a0ffbe0efc22e686507ec
2014-01-31 15:02:44 -08:00
Daniel Holbert
a2113dda90 (no bug) Tweak a comment in nsFlexContainerFrame.cpp to make it accurate in the post-bug-939901 multi-line flexbox world. (no review, comment-only; DONTBUILD) 2014-01-31 14:54:08 -08:00
Nicholas Cameron
f3ead74e4f Bug 700926. Use nsStyleImage and nsRenderingContext to draw border-images. r=roc 2014-01-31 16:36:41 +13:00
Daniel Holbert
479a1cc939 (no bug) whitespace fix in nsFlexContainerFrame.cpp (reindent some function-parameters). no review, whitespace-only, DONTBUILD 2014-01-30 13:02:05 -08:00
James Kitchener
106ab919b6 Bug 953385 - Set math script flag on textruns belonging to MathML tokens. r=roc 2014-01-30 10:59:16 -05:00
Robert O'Callahan
7a45ea7b6c Bug 946502. Part 4: Remove mStickyPosFrame. r=mattwoodrow
--HG--
extra : rebase_source : 71bcbd246cf6806196a3e64d32fdde169bddfa07
2014-01-04 18:14:27 +13:00
Matt Woodrow
a3449e66b6 Bug 946952 - Run a 'compressed' paint up to 1 second after skipping the ColorLayer optimization. r=roc 2014-01-30 18:41:17 +13:00
Kartikaya Gupta
0a88403bdb Bug 956690 - Ensure we descend into the root scroll frame if there is a displayport set. r=tn 2014-01-29 17:40:01 -05:00
Benoit Girard
6e831dc5e6 Bug 940842 - 2/3 - Implement will-change in layers-building code - r=mattwoodrow 2013-11-22 13:14:34 -05:00
Botond Ballo
ef0616629a Bug 962791 - Do not wrap a position:absolute item into a ScrollLayer item if its containing block if outside the scrolled frame. r=roc 2014-01-27 19:51:35 -05:00
Kartikaya Gupta
9904e24f5a Bug 961280 - Prevent the APZ repaint request from clobbering a layout-driven async scroll. r=tn 2014-01-28 17:54:59 -05:00
Mats Palmgren
659e05d266 Bug 964078. r=roc 2014-01-28 09:15:24 -05:00
David Zbarsky
8f05aaacbd Bug 952977: Convert Layer's mTransform to gfx::Matrix4x4 r=nical 2014-01-27 10:29:06 -05:00
David Zbarsky
bab894b2de Bug 952977: Convert SetBaseTransform to gfx::Matrix4x4 r=nical 2014-01-27 10:28:33 -05:00
James Kitchener
c8ad102329 Bug 941611 - More consistent rounding of text metrics. r=karlt, r=fredw 2014-01-27 08:18:26 -05:00
Timothy Nikkel
9dd0f5fe65 Bug 963771. Remove code accidentally landed that was only ever intended for local debugging. 2014-01-26 16:50:31 -06:00
Timothy Nikkel
4892052b7a Bug 963771. Add a debug dump function to print a single display item (and not just an entire display list). r=mats 2014-01-26 16:09:14 -06:00
Timothy Nikkel
8d1d02dfa0 Bug 962443. Make layout frame tree dumping code work better for Fennec and b2g. r=mats 2014-01-26 16:07:02 -06:00
Benoit Jacob
61df69f208 Bug 959448 - Convert most of LayersTypes.h to typed enums - r=nrc
find content/media dom/ipc widget/ gfx/tests gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)LAYERS_\(NONE\|BASIC\|OPENGL\|D3D9\|D3D10\|D3D11\|CLIENT\|LAST\)\($\|[^A-Za-z0-9_]\)/\1LayersBackend::LAYERS_\2\3/g'

find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::BUFFER_\2\3/g'

find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(BUFFERED\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(DRAW\|DRAW_SNAPPED\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::CLIP_\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SURFACE_\(NONE\|OPAQUE\|SINGLE_CHANNEL_ALPHA\|COMPONENT_ALPHA\)\($\|[^A-Za-z0-9_]\)/\1SurfaceMode::SURFACE_\2\3/g'

find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(STRETCH\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::\2\3/g'

find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::SCALE_\2\3/g'
2014-01-23 13:26:41 -05:00
Benoit Jacob
aebf0bb92a Bug 959380 - 4/5 - Make gfxContentType a typed enum - r=jrmuizel
find . -type f | grep -v '\./obj' | grep -v '\.hg' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)GFX_CONTENT_\(COLOR\|ALPHA\|COLOR_ALPHA\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1gfxContentType::\2\3/g'
2014-01-23 13:26:40 -05:00
Benoit Jacob
562cb87289 Bug 959380 - 1/5 - Make gfxBreakPriority a typed enum - r=jrmuizel 2014-01-23 13:26:39 -05:00
Daniel Holbert
ddc963a2e5 Bug 962267: Move nsFlexContainerFrame.h's forward-decls into the class's scope. r=mats 2014-01-21 17:05:07 -08:00
Daniel Holbert
25c7be4d53 Bug 783470 part 5: Add assertion to ensure we don't create FlexItems for abspos children. rs=mats 2014-01-21 14:52:32 -08:00
Daniel Holbert
23a7b2bd07 Bug 783470 part 3: Use the strut metadata we've saved to actually build special "strut" FlexItems on our second pass through reflow. r=mats 2014-01-21 14:52:27 -08:00
Daniel Holbert
2781ee2855 Bug 783470 part 2: Create an array with information about each visibility:collapse "strut" that we need to build. r=mats 2014-01-21 14:51:58 -08:00
Daniel Holbert
8e6318cf6a Bug 783470 part 1: Split most of flex reflow into a helper-function, so that we can easily restart it by reinvoking that helper. r=mats 2014-01-21 14:51:57 -08:00
Daniel Holbert
3713935b99 Bug 961354 part 2: Don't consider absolutely-positioned elements to be flex items, since they don't participate in normal flex layout. r=mats 2014-01-20 14:02:20 -08:00
Daniel Holbert
5752cf4397 Bug 961354 part 1: Move nsCSSOffsetState constructor definition to .cpp file. r=mats 2014-01-20 14:02:18 -08:00
Peiyong Lin
14bf63554d Bug 959874 - Reorder two parameters in nsContainerFrame::FinishReflowChild(), for consistency with nsContainerFrame::ReflowChild(). r=dholbert 2014-01-16 17:34:44 -08:00
Vivien Nicolas
7ba68b386c Bug 942246 - Event fluffing fails to generate a click under certain conditions. r=smaug 2014-01-16 15:52:27 +01:00
Cameron McCormack
7f595ed104 Bug 960312 - Rename TEXT_IS_IN_SINGLE_CHAR_MI to NS_FRAME_IS_IN_SINGLE_CHAR_MI to make it clear it's global. r=roc 2014-01-16 16:10:09 +11:00
Cameron McCormack
6b4bf8fa52 Backout rev 994659cbc145 (bug 960312) for various test failures. 2014-01-16 14:45:01 +11:00
Cameron McCormack
0bc2fdc9e2 Bug 960312 - Move TEXT_IS_IN_SINGLE_CHAR_MI to a class specific frame state bit value. r=roc 2014-01-16 13:55:19 +11:00
Robert O'Callahan
9fee26b161 Bug 157846. Part 0.1: When reflowing a non-rootframe reflow root, preserve its used padding in case that differs from its CSS computed padding for some reason. r=mats
--HG--
extra : rebase_source : 15631dc5a5f40dc2d95b1eaa7698fba635763626
2014-01-15 22:47:36 +13:00
James Kitchener
3a014bfa5f Bug 442637 - Apply ssty font feature setting to appropriate MathML elements. r=roc
--HG--
rename : layout/generic/MathVariantTextRunFactory.cpp => layout/generic/MathMLTextRunFactory.cpp
rename : layout/generic/MathVariantTextRunFactory.h => layout/generic/MathMLTextRunFactory.h
2014-01-15 09:49:20 -05:00
Wes Kocher
073cad9d12 Merge b2g-inbound to m-c 2014-01-14 15:44:06 -08:00
Ed Morley
a19c79d787 Bug 916143 - Disable test_movement_by_words.html on Windows for intermittent failures 2014-01-14 16:38:26 +00:00
Botond Ballo
4c298d25d5 Bug 957835 - Move operator|(FrameChildListID, FrameChildListID) to mozilla::layout. r=mats
--HG--
extra : rebase_source : 25fe8f29a6c826a5181e18880c393df9930f9d5c
2014-01-02 16:28:19 -05:00
Cameron McCormack
7a2dc7c7ea Bug 959016 - Add lldb Python command handlers for debugging Gecko, starting with frametree and frametreelimited. (DONTBUILD) r=ehsan 2014-01-14 09:24:22 +11:00
Robert Longson
dc06f6d670 Bug 889235 - Make text-shadow work on SVG text. r=cam 2014-01-13 12:21:42 +00:00
Robert O'Callahan
7e0fd9f7e6 Bug 917416. Force the background color of an <iframe> with a remote subdocument into its own layer. r=tnikkel
--HG--
extra : rebase_source : 41692d16014209430fa68973dfa0296921083aae
2014-01-10 15:59:59 +13:00
Mats Palmgren
5dc76f57a0 Bug 958249 - The first ::first-letter continuation should display all sides of the border, the following continuations none. r=dholbert 2014-01-12 04:05:49 +00:00
Mats Palmgren
419a7271cd Bug 943249 - Make <[i]frame scrolling> compatible with IE/Chrome; that is scrolling="no" (and synonyms) suppress scrollbars (as before), anything else has no effect. r=bz 2014-01-12 04:05:49 +00:00
Cameron McCormack
69ff268fcf Bug 957770 - Take SVG font size scaling into account when vertically aligning text. r=roc 2014-01-11 12:13:09 +11:00
Benoit Jacob
244171b53c Bug 958375 - 9/9 - NS_SIDE_TOP was inadvertently used as the (1<<NS_SIDE_TOP) bit - r=roc 2014-01-10 14:06:17 -05:00
Benoit Jacob
a1e7c32630 Bug 958375 - 4/9 - Make SurfaceFormat a typed enum - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Jonathan Kew
2c2c332995 bug 955957 - pt 1 - reimplement gfxSkipChars and gfxSkipCharsIterator to perform better with huge text runs. r=roc 2014-01-10 09:42:05 +00:00
Carsten "Tomcat" Book
4054e1e107 Backed out changeset 4b54755de2a7 (bug 955957) for Build Bustage on a CLOSED TREE 2014-01-10 09:30:28 +01:00
Jonathan Kew
a19636ff66 bug 955957 - pt 1 - reimplement gfxSkipChars and gfxSkipCharsIterator to perform better with huge text runs. r=roc 2014-01-10 07:48:01 +00:00
Daniel Holbert
cf07570e09 (no bug) fix typo in code comment (s/it's prev continuation/its prev continuation). Comment-only, so DONTBUILD 2014-01-09 17:44:58 -08:00
Cameron McCormack
a99245716d Bug 945074 - Give continuing nsFirstLetterFrame child a style context that inherits from what the nsFirstLetterFrame inherits from. r=dbaron 2014-01-09 10:12:42 +11:00
Daniel Holbert
b3b9becf92 Bug 956046: Allow adjacent anonymous flex items if we've reordered items with the "order" property. r=dbaron 2014-01-08 14:37:13 -08:00
Markus Stange
77136b7ef2 Bug 941887. r=roc 2014-01-08 10:30:03 +01:00
Daniel Holbert
086000f365 Bug 807565: Don't let border/padding push minimum content-box size for themed flex items below 0. r=mats 2014-01-06 19:17:26 -08:00
Daniel Holbert
acef910f4d Bug 893496: Avoid doing bogus infinity*0 multiplication when producing a flex weight from huge flex-shrink and 0 flex-basis. r=mats 2014-01-05 20:18:12 -08:00
Mats Palmgren
e6ea29ce0d Bug 956447 - Make it possible to get frame dumps in non-DEBUG builds. r=roc 2014-01-05 23:31:14 +00:00
Ehsan Akhgari
2e67154d02 Merge m-c into inbound 2014-01-04 12:14:57 -05:00
Ehsan Akhgari
1b83407ce9 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Robert Longson
98afe359fa Bug 956311 - Remove nsSVGGeometryFrame. r=dholbert 2014-01-04 08:29:02 +00:00
Mats Palmgren
828272ad92 Bug 950411 - Initialize mNCAWidth to zero. r=roc 2014-01-03 21:08:50 +00:00
Mats Palmgren
3e7a93ab5f Bug 949294 - Mark the delegating frame as being IN_REFLOW while reflowing abs.pos. children. r=roc 2014-01-03 21:08:50 +00:00
Timothy Nikkel
3de37a9393 Bug 942189. Only avoid creating scroll info layers for root scroll frames in display root documents (not root content documents) because those have already had RecordFrameMetrics on them. r=roc 2014-01-03 14:48:57 -06:00
Cameron McCormack
b90dc73fc5 Bug 897763 - Take into account nsChangeHint_{NeedReflow,ClearAncestorIntrinsics} never being inherited for difference calculations on certain style structs. r=dbaron 2014-01-03 13:39:54 +11:00
Robert O'Callahan
10ddd09c03 Bug 953438 - Change nsIFrame::HasTerminalNewline to HasSignificantTerminalNewline since it doesn't make sense to check for a newline that gets converted to regular whitespace. r=jfkthame 2014-01-02 16:22:12 -05:00
Daniel Holbert
5037f08dcd Bug 944909, part 3: add crashtest. (test-only) 2013-12-31 08:47:49 -08:00
Daniel Holbert
79b1b1caf2 Bug 944909 part 2: add comment noting that assertion can be upgraded later. (comment-only) 2013-12-31 08:47:47 -08:00
Mats Palmgren
ad56479784 Bug 944909 part 1: On the final call to FreezeOrRestoreEachFlexibleSize, assert (and enforce) that each flex item ends up frozen. r=dholbert 2013-12-31 08:47:43 -08:00
Ms2ger
fc0c5d7215 Bug 950143 - Remove the implicit conversion operator from nsIntSize to IntSize; r=roc 2013-12-31 10:06:12 +01:00
David Zbarsky
641e051120 Bug 952977: Switch GetBBoxContribution to gfx::Matrix r=nical 2013-12-30 01:50:07 -05:00
Robert O'Callahan
6947f1f4f7 Bug 945203. Part 4: Add nsDisplayEventRegions and build it when painting. r=mats
--HG--
extra : rebase_source : 26b71b6a18681e8fc48c6082c8df6263c1bd3739
2013-12-17 00:22:11 +13:00
David Zbarsky
56c69a7b3f Bug 952977: Switch IsSVGTransformed to gfx::Matrix r=nical 2013-12-29 18:35:53 -05:00
Jonathan Kew
9067ab3480 backout changeset 8b6f20bda157 (bug 735577 followup 1) for build failure 2013-12-29 22:48:13 +00:00
Jonathan Kew
ed012895e7 bug 735577 - followup 2 - additional comments describing ISize/BSize in nsHTMLReflow{Metrics,State}.h. r=roc 2013-12-29 22:04:28 +00:00
Jonathan Kew
9d097b2e05 bug 735577 - followup 1 - allow reflow-state to be passed to the reflow-metrics constructor to get the writing mode. r=roc 2013-12-29 22:04:02 +00:00
Jonathan Kew
7260967d47 bug 953247 - use binary search instead of linear scan to find tab-width records. r=roc 2013-12-29 11:32:21 +00:00
Jonathan Kew
bb2ffaffbc bug 735577 - pt 4.2 - convert width and height fields in nsHTMLReflowMetrics to logical coordinates. r=smontagu 2013-12-27 18:00:04 +00:00
Jonathan Kew
a7837e1ffa bug 735577 - pt 4.1 - use accessor functions for some physical-coordinate fields in nsHTMLReflowMetrics, in preparation for logicalization. r=smontagu 2013-12-27 17:59:52 +00:00
Jonathan Kew
f79588b6f3 bug 735577 - pt 3.3 - provide logical-coordinate APIs in nsHTMLReflowState, parallel to the existing physical APIs. r=smontagu 2013-12-27 17:59:38 +00:00
Jonathan Kew
954a119d07 bug 735577 - pt 3.2 - update the rest of layout code to use the new accessors on nsHTMLReflowState. r=smontagu 2013-12-27 17:59:21 +00:00
Jonathan Kew
478577ada4 bug 735577 - pt 3.1 - make width/height/offset/margin fields in nsHTMLReflowState private, and provide accessor functions. r=smontagu 2013-12-27 17:59:02 +00:00
Jonathan Kew
86d6ec26b2 bug 735577 - pt 2 - add GetWritingMode() method to nsIFrame. r=smontagu 2013-12-27 17:58:46 +00:00