Robert O'Callahan
59dfd955a1
Bug 840902. Part 1: Stop checking the results of various display list methods. r=mattwoodrow
...
--HG--
extra : rebase_source : 50a3d6809ef76a25a3d02d91f2873d9ba11fdc56
2013-02-15 00:08:08 +13:00
L. David Baron
63fdfec174
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
209d0b946f
Bug 833009 - Remove "nsContentUtils.h" inclusions from headers in layout/. r=bz
2013-01-23 19:37:17 +00:00
Mats Palmgren
6c53161814
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
85884b1a4b
Bug 826632. Part 1: Merge nsIViewManager into nsViewManager. r=tnikkel
...
--HG--
rename : view/public/nsIViewManager.h => view/public/nsViewManager.h
extra : rebase_source : d00947c925b17f860fcdc0e12b1ec3cc31b7c630
2013-01-05 16:12:24 +13:00
Phil Ringnalda
408fbe5931
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
b56cdd701e
Bug 826632. Part 1: Merge nsIViewManager into nsViewManager. r=tnikkel
...
--HG--
rename : view/public/nsIViewManager.h => view/public/nsViewManager.h
extra : rebase_source : 85587555e1f202809cd39fe899570644e6ca4eb3
2013-01-05 16:12:24 +13:00
Robert O'Callahan
f9b9491b81
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.
--HG--
rename : view/public/nsIView.h => view/public/nsView.h
2013-01-04 02:23:11 +13:00
Alexander Surkov
db23e3552b
Bug 810572, part 2.5 - rename AccType constants again, r=tbsaunde, sr=roc
2012-12-18 10:25:52 +09:00
Jeff Walden
7146c23e80
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
e3cd8d0be2
Bug 810572, part2 - remove 'Accessible' postfix from AccTypes constants, r=tbsaunde, sr=roc
2012-12-12 19:04:12 +09:00
Robert O'Callahan
ef63ff8332
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
ec5abc800c
Bug 811679 - Add nsIEditorObserver back; r=ehsan
2012-11-14 11:23:35 -08:00
Mounir Lamouri
2671f5a513
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
4356abff2c
Bug 809585 - Remove nsITextControlFrame::GetTextLength. r=bz
2012-11-09 10:32:01 +00:00
Mounir Lamouri
5eed937cc5
Bug 809584 - Move the placeholder visibility logic to nsTextEditorState. r=ehsan
2012-11-09 10:31:34 +00:00
Mounir Lamouri
58aa0a96d8
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
b48108567b
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
f5c0c70f94
Bug 802985, PreDestroy editor, r=ehsan
2012-10-20 21:48:34 +03:00
Trevor Saunders
b51bb304d8
bug 542039 - accessible object types r=surkov, roc
2012-09-28 17:53:44 -04:00
David Zbarsky
307c734c43
[Bug 799407] Fix build warnings in layout r=roc
2012-10-10 01:00:05 -04:00
Kyle Huey
e5eb83ac5a
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
958ce7d98d
Bug 539356 - Part 9c - Remove old invalidation code. r=bz
2012-08-29 17:39:31 +12:00
Ed Morley
c863356300
Revert mozilla-inbound to e4dd1fa6d222 for crashes and test failures on a CLOSED TREE
2012-09-27 16:34:46 +01:00
Matt Woodrow
c73c0db2f1
Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt
2012-08-29 17:38:58 +12:00
Ehsan Akhgari
b5c39afb4e
Bug 792502 - Kill the FunctionTimer code; r=vlad
2012-09-19 16:59:38 -04:00
Mark Capella
5a5ba0a45c
Bug 785091 - Remove nsIEditorObserver, r=ehsan
2012-09-17 11:14:56 -04:00
Peter Van der Beken
71b55b1f68
Fix for bug 788532 (Add the new DOM bindings API to DOM lists). r=bz.
...
--HG--
extra : rebase_source : 18e21a786b6a9cc2aeada52ba5ca3a2614cb596b
2012-09-05 22:49:53 +02:00
Boris Zbarsky
bdd656ebd3
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
0fd9123eac
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
db958503bc
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
c7a5b33778
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00
Ed Morley
bba173e66e
Revert inbound to 3d5d1daa2505 to stop OS X M5 failures (backout not clean/could have been a bad merge) on a CLOSED TREE
2012-08-04 18:05:15 +01:00
Ms2ger
babf67cce2
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00
Aryeh Gregor
e806eeab4f
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Aryeh Gregor
b0041eadcc
Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan
2012-07-13 09:33:42 +03:00
David Zbarsky
ae718ee1c0
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Charly Molter ext:(%20and%20Alexandre%20Dumont%20%3CAlexandre%20Dumont%20%3E)
f924084c27
Bug 716875 - Make nsTextControlFrame inherits from nsContainerFrame instead of nsStackFrame. r=roc,bz
2012-06-23 13:11:00 +02:00
Ehsan Akhgari
f50c2ec7a7
Bug 762764 - Prevent selection from descending into text boxes when extending it for things like caret navigation and extension for deletion; r=roc
2012-06-19 19:31:03 -04:00
Ryan VanderMeulen
891e38e528
Revert c39d36167b99 due to a horribly munged backout.
2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
f497d31a0a
Backout the bug 754202 backout due to orange.
2012-06-10 19:37:47 -04:00
Ryan VanderMeulen
9c1d160da3
Merge the last PGO-green inbound changeset to m-c
2012-06-10 18:21:22 -04:00
Olli Pettay
ac6b89bfdb
Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst
2012-06-10 21:14:30 +03:00
Aryeh Gregor
6865bb0c16
Bug 762862 - Rename nsTypedSelection to mozilla::Selection; r=ehsan
...
--HG--
rename : layout/generic/nsTypedSelection.h => layout/generic/Selection.h
2012-06-08 17:20:55 +03:00
Aryeh Gregor
b36b8ee24e
Bug 757771 part 4 - Create new nsContentUtils::GetSelectionInTextControl method; r=ehsan
2012-06-07 18:00:58 +03:00
Trevor Saunders
3b1f9183dc
bug 759033 - nsAccessible -> Accessible and nsAccessibleWrap -> AccessibleWrap r=surkov
...
--HG--
rename : accessible/src/atk/nsAccessibleWrap.cpp => accessible/src/atk/AccessibleWrap.cpp
rename : accessible/src/atk/nsAccessibleWrap.h => accessible/src/atk/AccessibleWrap.h
rename : accessible/src/base/nsAccessible.cpp => accessible/src/generic/Accessible.cpp
rename : accessible/src/base/nsAccessible.h => accessible/src/generic/Accessible.h
rename : accessible/src/mac/nsAccessibleWrap.h => accessible/src/mac/AccessibleWrap.h
rename : accessible/src/mac/nsAccessibleWrap.mm => accessible/src/mac/AccessibleWrap.mm
rename : accessible/src/msaa/nsAccessibleWrap.cpp => accessible/src/msaa/AccessibleWrap.cpp
rename : accessible/src/msaa/nsAccessibleWrap.h => accessible/src/msaa/AccessibleWrap.h
rename : accessible/src/other/nsAccessibleWrap.cpp => accessible/src/other/AccessibleWrap.cpp
rename : accessible/src/other/nsAccessibleWrap.h => accessible/src/other/AccessibleWrap.h
2012-05-28 21:18:45 -04:00
Frank Yan
0a903d1211
Bug 673873 - Display placeholder when focusing empty input. r=mounir
2012-05-24 03:54:25 -07:00
Ed Morley
019cfa6b7f
Backout 0d782874abea, 75571af38ce5 & bfd3a65c0feb (bug 673873) for increasing the failure rate of bug 702184
2012-05-24 14:12:19 +01:00
Frank Yan
4483e800c1
Bug 673873 - Display placeholder when focusing empty input. r=mounir
2012-05-24 03:54:25 -07:00
Ed Morley
c5acb642c1
Merge mozilla-central to mozilla-inbound
2012-05-21 13:19:38 +01:00