Commit Graph
525 Commits
Author SHA1 Message Date
matekm e7ca3bab1f Bug 784739 - Switch from NULL to nullptr in editor/; r=ehsan 2013-04-02 20:13:10 -04:00
Boris Zbarsky 879ee9ab35 Bug 848895 part 2. Null-check the pointer to the editor that the edit rules hold. r=ehsan 2013-03-22 23:47:58 -04:00
Jeff Walden ae46876880 Bug 847480 - Blindly convert all existing mozilla::Abs users to mozilla::DeprecatedAbs. Individualized conversions to the reformed mozilla::Abs will continue until mozilla::DeprecatedAbs is unused, at which point it will be removed. r=Ms2ger 2013-03-05 15:43:30 -08: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
Jeff Walden 8be01906e2 Bug 835542 - Implement mozilla::Abs. r=Ms2ger 2013-02-15 19:55:36 -08:00
Trevor Saunders 2c07f74e31 bug 839051 - remove usage of nsISelectionPrivate::GetEnumerator() r=smaug 2013-02-07 09:17:47 -05:00
Ms2ger 4e99023396 Bug 832751 - Make nsHTMLEditRules::ClearCachedStyles return void; r=ehsan 2013-02-07 09:08:57 +01:00
Daniel Glazman 04278ab164 Bug 833610 - Backout the second half of bug 832025; r=ehsan 2013-01-23 18:19:00 -05:00
Daniel Glazman 5c2002062b Bug 832025 - Clear the cached styles and type-in state props when pressing Enter inside a heading or a list item; r=ehsan 2013-01-19 09:43:01 -05: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
Ms2ger d83d923861 Bug 825407 - Get rid of GetElementParent; r=mounir 2013-01-11 09:43:01 +01:00
Olli Pettay 21afe18a9b Bug 803853, make sure to not leak mRules, r=ehsan 2012-12-07 01:31:48 +02:00
Kai Engert 795e601dbe Bug 200416 - Account for blocks inside inlines when deleting; r=ehsan 2012-11-25 14:38:23 +02:00
Mats Palmgren 18a9006d8e Bug 817574 - Replace NS_ABS with std::abs. r=roc 2012-12-04 13:33:33 +01:00
Peter Van der Beken 82b618706e Fix for bug 773780 (Add API for new DOM bindings for Node). r=bz. 2012-10-09 14:31:24 +02:00
Ehsan Akhgari 6469fc073a Bug 796839 - Part 1: Make sure not to try wrapping empty text nodes when applying alignment in editable regions; r=roc
The code here is just missing this condition, and this patch is needed
to make the last part of this series pass tests.  Previously,
nsEditor::IsEditable would return false when it hit an empty text node,
which implied this property almost by accident.  This check makes this
property explicit, so this patch by itself doesn't really change
semantics.
2012-10-04 11:34:58 -04:00
Aryeh Gregor 9a44d22af2 Bug 787432 - Don't strip existing empty wrappers when inserting text; r=ehsan 2012-09-27 14:39:39 +02: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
Aryeh Gregor 2af5b12745 Bug 780035 - Don't cache font-style as CSS; r=ehsan 2012-08-14 12:10:43 +03:00
Aryeh Gregor 360ca4ef29 Bug 751554 part 5 - Rename OperationID to EditAction; r=ehsan 2012-08-12 21:28:26 +03:00
Aryeh Gregor 01462d7631 Bug 751554 part 4 - Make nsEditor::OperationID an enum class; r=ehsan 2012-08-01 15:22:07 +03:00
Aryeh Gregor 73d6030cac Bug 778428 - Refcount arrays of nodes in editor/; r=ehsan 2012-08-01 11:17:51 +03:00
Aryeh Gregor 9e87be892f Bug 291789 part 3 - Try not to ever delete across table boundaries; r=ehsan 2012-07-27 17:03:28 +03:00
Aryeh Gregor 96569e09b5 Bug 291789 part 2 - Clean up nsHTMLEditRules::InDifferentTableElements; r=ehsan 2012-07-27 17:03:28 +03:00
Aryeh Gregor dae484c6fb Bug 291789 part 1 - Make various nsHTMLEditUtils methods take nsINode instead of Element; r=ehsan 2012-07-27 17:03:28 +03:00
Ehsan Akhgari 7917f7709f Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor 8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor ec72d7a069 Bug 777292 - editor/: Remove conversions to nsresult that will always result in NS_SUCCEEDED; r=ehsan 2012-07-27 16:46:48 +03:00
Aryeh Gregor 31d0f3562c Bug 776323 part 2 - Clean up nsSelectionState::SaveSelection; r=ehsan 2012-07-23 13:27:22 +03:00
Aryeh Gregor 270c8896f8 Bug 772332 part 1 - Make nsWSRunObject's type enum type-safe; r=ehsan 2012-07-13 09:33:43 +03:00
Aryeh Gregor 93828cbe40 Bug 775552 - Don't access siblings of nodes that might be deleted; r=ehsan 2012-07-13 09:33:42 +03:00
Aryeh Gregor 8fee65a95e Bug 768756 part 1 - Use enum in nsHTMLCSSUtils for computed/specified style; r=ehsan 2012-07-06 14:50:07 +03:00
Ed Morley 9978d5b7f2 Backout 6ceeca8b4b73 (bug 772332), ce5629b973e4, 1dcff1db63b4, 108d06ef7755 & 7bf6519b3f43 (bug 768756) for bustage 2012-07-15 11:42:31 +01:00
Aryeh Gregor c2f902b1e0 Bug 772332 part 1 - Don't access siblings of nodes that might be deleted; r=ehsan 2012-07-13 09:33:42 +03:00
Aryeh Gregor 57aab8f4cb Bug 768756 part 1 - Use enum in nsHTMLCSSUtils for computed/specified style; r=ehsan 2012-07-06 14:50:07 +03:00
Aryeh Gregor 318c755d1f Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan 2012-07-13 09:33:42 +03:00
Aryeh Gregor 27da3739fa Bug 771994 - Make nsRangeStore refcounted; r=ehsan 2012-07-13 09:31:15 +03:00
Ehsan Akhgari 699d0c915f Bug 772346 - Hold a strong ref to the child node in nsHTMLEditRules::DeleteNonTableElements; r=roc 2012-07-10 16:06:48 -04:00
Luqman Aden c671b49a3f Bug 770814 - Make nsEditor::GetNodeLocation return already_AddRefed<nsIDOMNode> instead of having it as an out param; r=ehsan 2012-07-08 20:45:12 -04:00
Aryeh Gregor 5db48a8f85 Bug 769967 part 2 - Clean up nsEditor::GetNodeLocation; r=ehsan 2012-07-02 15:07:57 +03:00
Aryeh Gregor 9c4c1414e2 Bug 768748 part 2 - Rewrite nsHTMLEditRules::GetPromotedPoint; r=ehsan 2012-07-01 14:53:45 +03:00
Aryeh Gregor 92637622b5 Bug 768748 part 1 - Clean up nsHTMLEditor::IsNext/PrevCharWhitespace; r=ehsan 2012-07-01 14:07:16 +03:00
Ehsan Akhgari 00a0f64b31 Bug 769008 - Don't pass a null node to GetBlockNodeParent; r=roc 2012-06-29 18:43:08 -04:00
Ms2ger 8234575ba7 Bug 761997 - Cleanup nsHTMLEditRules::GetListItemState / nsHTMLEditRules::GetDefinitionListItemTypes; r=ehsan 2012-06-17 10:11:16 +02:00
Aryeh Gregor 5f58bfae56 Bug 763283 part 2 - Use nsINode::AsContent() in editor/; r=ehsan 2012-06-10 15:39:21 +03:00
Aryeh Gregor 463121ea8c Bug 762862 - Rename nsTypedSelection to mozilla::Selection; r=ehsan 2012-06-08 17:20:55 +03:00
Aryeh Gregor e664ee6abd Bug 757771 part 2 - Change various callers to use nsTypedSelection; r=ehsan 2012-06-05 11:10:26 +03:00
Ms2ger 84dc30c98f Bug 761313 - Simplify nsHTMLEditRules::RemoveBlockStyle; r=ehsan 2012-06-06 09:41:56 +02:00