Jim Chen
a78b10070a
Bug 717878 - Return scroll target frame for single-line text controls; r=mats
2013-10-26 14:34:51 -04:00
Jonathan Watt
f6d6941240
Bug 926976 - Give nsTextControlFrame::mUseEditor a more useful name. r=ehsan
2013-10-16 14:43:03 +01:00
Ehsan Akhgari
a4af9e240f
Bug 910237 - Get rid of the nsIEditor.h #include in nsTextControlFrame.h; r=mats,ehsan
2013-08-28 19:06:00 +00:00
Ehsan Akhgari
056bbb71e7
Bug 909927 - Minimize the #includes in layout/forms; r=mats
2013-08-28 10:30:02 -04:00
Mats Palmgren
db3a199128
Bug 303896 - Refactor AttributeChanged() to follow code style and make it easier to read (no functional change). r=ehsan
2013-07-24 23:03:39 +00:00
Mats Palmgren
d0789d02f4
Bug 303896 - Turn on displaying the selection when the 'disabled' attr is removed if the element has focus. r=ehsan
2013-07-24 23:03:38 +00:00
Bobby Holley
c3247a55cf
Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor
2013-05-22 10:05:26 -06:00
Bobby Holley
d6769064d2
Bug 865729 - Remove nsIJSContextStack from other miscellaneous parts of gecko. r=gabor
2013-04-29 11:16:19 -07:00
David Zbarsky
28870e5907
[Bug 857884] Use dom::EventTarget more instead of nsIDOMEventTarget Part 6 r=Ms2ger
2013-04-19 18:18:33 -04:00
Aryeh Gregor
fd76179457
Bug 857102 part 2 - Make NS_NewTextNode and nsIDocument::CreateTextNode infallible; r=bz
2013-04-04 15:01:08 +03:00
Mounir Lamouri
04ea2fe1f2
Bug 839834 - Remove nsIFormControlFrame::GetFormProperty. r=bz
2013-02-18 18:21:32 +00:00
Trevor Saunders
7692f41b04
bug 825341 - convert range to webidl r=bz, smaug
2013-02-07 07:09:41 -05:00
Phil Ringnalda
0b10e72f72
Back out fee79a593fd3 and 2c8930343985 (bug 825341) for having probably needed-clobber
2013-03-11 20:10:18 -07:00
Trevor Saunders
66701da22a
bug 825341 - convert range to webidl r=bz, smaug
2013-02-07 07:09:41 -05:00
Timothy Nikkel
5a8bf9c675
Bug 847850. Redirect all display item lists to the content list inside of text control frames so no content can escape out to mingle with the rest of the page content. r=roc
2013-03-06 23:13:13 -06:00
Trevor Saunders
08fdf22a1b
bug 845562 - remove GetFrameSelection() from nsISelectionPrivate r=smaug
2013-02-15 15:09:28 -05:00
L. David Baron
ca6c366dc6
Bug 781360 patch 3: Rename {nsIFrame,nsStyleContext,nsComputedDOMStyle}::GetStyle* to Style*, since they can never return null. r=dholbert
...
Except for the changes in:
layout/generic/nsIFrame.h (part)
layout/style/nsComputedDOMStyle.h (all)
layout/style/nsRuleNode.cpp (part)
layout/style/nsStyleContext.cpp (part)
layout/style/nsStyleContext.h (part)
(see patch 3b in the bug), this patch was written with the sed script:
s/\<GetStyle\(Font\|Color\|List\|Text\|Visibility\|Quotes\|UserInterface\|TableBorder\|SVG\|Background\|Position\|TextReset\|Display\|Content\|UIReset\|Table\|Margin\|Padding\|Border\|Outline\|XUL\|SVGReset\|Column\)\>/Style\1/g
2013-02-16 13:51:02 -08:00
Robert O'Callahan
b18cd55753
Bug 840902. Part 2: Remove nsresults from various display list methods. r=mattwoodrow
2013-02-15 00:12:27 +13:00
Robert O'Callahan
3ac2cf9858
Bug 840902. Part 1: Stop checking the results of various display list methods. r=mattwoodrow
2013-02-15 00:08:08 +13:00
L. David Baron
3c5d51984d
Bug 841789, patch 1: Rename nsIFrame::GetStyleContext() to nsIFrame::StyleContext() since it can never return null. r=dholbert
...
This makes it conform to our convention that getters returning pointers
that can never be null do not begin with "Get".
2013-02-15 21:38:33 -08:00
Mounir Lamouri
276ebf7673
Bug 833009 - Remove "nsContentUtils.h" inclusions from headers in layout/. r=bz
2013-01-23 19:37:17 +00:00
Mats Palmgren
7532b4e736
Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan
2013-01-15 13:22:03 +01:00
Robert O'Callahan
67b24645e1
Bug 826632. Part 1: Merge nsIViewManager into nsViewManager. r=tnikkel
2013-01-05 16:12:24 +13:00
Phil Ringnalda
f40517090e
Back out 5e76dfb1d426 (bug 826635) and 0df74b1a4543:20df426b6111 (bug 826632) for bustage
...
CLOSED TREE
2013-01-04 21:30:14 -08:00
Robert O'Callahan
b20214218e
Bug 826632. Part 1: Merge nsIViewManager into nsViewManager. r=tnikkel
2013-01-05 16:12:24 +13:00
Robert O'Callahan
ae130ef998
Bug 825866. Part 8: Mass-rename of nsIView to nsView. r=tnikkel
...
This was autogenerated by basically replacing all occurrences of the word "nsIView" with nsView.
2013-01-04 02:23:11 +13:00
Alexander Surkov
9ab34aa2a6
Bug 810572, part 2.5 - rename AccType constants again, r=tbsaunde, sr=roc
2012-12-18 10:25:52 +09:00
Jeff Walden
8a6657de57
Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger
2012-12-14 18:58:45 -05:00
Alexander Surkov
7b6a8051eb
Bug 810572, part2 - remove 'Accessible' postfix from AccTypes constants, r=tbsaunde, sr=roc
2012-12-12 19:04:12 +09:00
Robert O'Callahan
baf0f2cc2a
Bug 811301. Part 2: Remove saved state IDs now that the root scroll frame state is captured normally. r=mats
2012-11-14 22:40:17 -08:00
Daniel Glazman
312ed9c6d7
Bug 811679 - Add nsIEditorObserver back; r=ehsan
2012-11-14 11:23:35 -08:00
Mounir Lamouri
e374a5e986
Bug 807613 - Add a pref to make the placeholder disappear when a text field is focused. r=bz
2012-11-09 10:32:58 +00:00
Mounir Lamouri
1d8e47b42c
Bug 809585 - Remove nsITextControlFrame::GetTextLength. r=bz
2012-11-09 10:32:01 +00:00
Mounir Lamouri
5325cbd322
Bug 809584 - Move the placeholder visibility logic to nsTextEditorState. r=ehsan
2012-11-09 10:31:34 +00:00
Mounir Lamouri
8b0e1e63ee
Bug 737786 - 2/5 - Use a pseudo-element instead of a pseudo-class for placeholder styling. r=bz
2012-11-09 10:24:23 +00:00
Mounir Lamouri
e07c431650
Bug 737786 - 1/5 - Show/hide placeholder based on display lists instead of CSS class. r=bz
2012-11-09 10:22:29 +00:00
Olli Pettay
cb96deed0a
Bug 802985, PreDestroy editor, r=ehsan
2012-10-20 21:48:34 +03:00
Trevor Saunders
ef05b16386
bug 542039 - accessible object types r=surkov, roc
2012-09-28 17:53:44 -04:00
David Zbarsky
b22e7c6a8e
[Bug 799407] Fix build warnings in layout r=roc
2012-10-10 01:00:05 -04:00
Kyle Huey
0ee82049a5
Bug 760331: Coalesce data for inline style across nodes. r=bz
...
This patch enables sharing of an nsAttrValue's MiscContainer between nodes for style rules. MiscContainers of type eCSSStyleRule are now refcounted (with some clever struct packing to ensure that the amount of memory allocated for MiscContainer remains unchanged on 32 and 64 bit). This infrastructure can be used to share most MiscContainer types in the future if we find advantages to sharing other types than just eCSSStyleRuley. A cache mapping strings to MiscContainers has been added to nsHTMLCSSStyleSheet. MiscContainers can be shared between nsAttrValues when one nsAttrValue is SetTo another nsAttrValue or when there is a cache hit in this cache. This patch also adds the ability to tell a style rule that it belongs to an nsHTMLCSSStyleSheet, with appropriate accessor functions to separate that from the existing case of belonging to an nsCSSStyleSheet.
The primary use case is to reduce memory use for pages that have lots of inline style attributes with the same value. This can happen easily with large pages that are automatically generated. An (admittedly pathological) testcase in Bug 686975 sees over 250 MB of memory savings with this change. Reusing the same MiscContainer for multiple nodes saves the overhead of maintaining separate copies of the string containing the serialized value of the style attribute and of creating separate style rules for each node. Eliminating duplicate style rules enables further savings in layout through style context sharing. The testcase sees the amount of memory used by style contexts go from over 250 MB to 10 KB.
Because the cache is based on the text value of the style attribute, it will not handle attributes that have different text values but are parsed into identical style rules. We also do not attempt to share MiscContainers when the node's base URI differs from the document URI. The effect of these limitations is expected to be low.
2012-09-30 09:40:24 -07:00
Matt Woodrow
e813da3696
Bug 539356 - Part 9c - Remove old invalidation code. r=bz
2012-08-29 17:39:31 +12:00
Ed Morley
ed4fe023b5
Revert mozilla-inbound to e4dd1fa6d222 for crashes and test failures on a CLOSED TREE
2012-09-27 16:34:46 +01:00
Matt Woodrow
24eaff95c9
Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt
2012-08-29 17:38:58 +12:00
Ehsan Akhgari
57ec2ec569
Bug 792502 - Kill the FunctionTimer code; r=vlad
2012-09-19 16:59:38 -04:00
Mark Capella
66b118d802
Bug 785091 - Remove nsIEditorObserver, r=ehsan
2012-09-17 11:14:56 -04:00
Peter Van der Beken
817be9d200
Fix for bug 788532 (Add the new DOM bindings API to DOM lists). r=bz.
2012-09-05 22:49:53 +02:00
Boris Zbarsky
a965f1de68
Bug 782660. Resizing a text control frame with borders should invalidate the borders as needed. r=roc
2012-08-29 01:14:46 -04:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Charly Molter
5902467a98
Bug 776265 - changing the way ComputeHeightValue works to make it work just
...
like ComputeWidthValue already does. this fixes {min,max}-height + adding
reftests for {min,max}-{height,width} r=mats
2012-08-08 17:58:26 +02:00
Ms2ger
bd02c3e237
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00