Commit Graph

1528 Commits

Author SHA1 Message Date
Mike Conley
e917cee383 Bug 841811 - Remove deprecated enablePrivilege from test added in bug 790475. r=ehsan. 2013-02-19 10:29:30 -05:00
Olli Pettay
dc2243899a Bug 842132 - Crash with contentEditable, selection.deleteFromDocument with overlapping selection ranges, r=tbsaunde 2013-02-18 18:32:32 +02:00
Ryan VanderMeulen
10bb153b4f Backed out changeset 645cb4fbf390 (bug 842132) for build bustage. 2013-02-18 11:12:16 -05:00
Olli Pettay
7da38b2a1a Bug 842132 - Crash with contentEditable, selection.deleteFromDocument with overlapping selection ranges, r=tbsaunde 2013-02-18 17:33:49 +02:00
L. David Baron
822b2ca3bc 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
Peter Van der Beken
490e9a4afd Fix for bug 839529 (Remove various CC participants that don't do anything). r=smaug.
--HG--
extra : rebase_source : 8a272905c79396e7ae08aaaf83566ac450c45be0
2013-02-07 10:19:08 +00:00
Trevor Saunders
4bc29b1b63 bug 841706 - remove nsSelectionIterator r=smaug 2013-02-15 05:52:57 -05:00
Trevor Saunders
ef3a9cb704 bug 841430 - nuke nsIEditorDocShell r=bz 2013-02-13 17:39:30 -05:00
Trevor Saunders
31e42ed09f bug 839051 - remove usage of nsISelectionPrivate::GetEnumerator() r=smaug 2013-02-07 09:17:47 -05:00
Ryan VanderMeulen
67a3dc3eae Merge the last PGO green inbound changeset to m-c. 2013-02-07 09:55:08 -05:00
Ms2ger
e74f6c7157 Bug 832751 - Make nsHTMLEditRules::ClearCachedStyles return void; r=ehsan 2013-02-07 09:08:57 +01:00
Ryan VanderMeulen
4fb6d21629 Backed out changeset 487d16b80087 (bug 812638) for mochitest orange. 2013-02-06 11:21:25 -05:00
Jet Villegas
303cd79738 Bug 812638: backs out bug 480647 (part 6) r=ehsan 2013-02-06 06:57:26 -08:00
Jet Villegas
f42c3d0d69 Bug 812638: revert fix for bug 480647 (part 6) that introduced this regression. r=ehsan 2013-02-05 22:00:59 -08:00
Jeff Walden
582b2e961d Bug 835648 - Move typed enum support to a new header. r=Ms2ger 2013-01-28 16:33:17 -08:00
Ryan VanderMeulen
18cfd86d7e Backed out changeset 3eb633a97c1f (bug 835648) for suspected Windows orange on a CLOSED TREE. 2013-01-29 19:01:45 -05:00
Jeff Walden
129a025dee Bug 835648 - Move typed enum support to a new header. r=Ms2ger
--HG--
extra : rebase_source : 8c912fba889c1c5435e3619714071502fbfb30a3
2013-01-28 16:33:17 -08:00
Henri Sivonen
ebd208d6e6 Bug 820508 part 4 - Make <main> have the HTMLElement DOM interface. r=smaug. 2013-01-29 14:31:45 +02:00
Daniel Glazman
b53a71d806 Bug 833610 - Backout the second half of bug 832025; r=ehsan 2013-01-23 18:19:00 -05:00
Ehsan Akhgari
b563921cf8 Bug 833189 - Disable PGO on editor; a=me 2013-01-21 22:58:33 -05:00
Daniel Glazman
bd2faa434c Bug 832025 - Clear the cached styles and type-in state props when pressing Enter inside a heading or a list item; r=ehsan
--HG--
extra : rebase_source : 210c1b2b2c27761d89b6609017b9722607a33450
2013-01-19 09:43:01 -05:00
Trevor Saunders
9f0ad48b28 bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
Ehsan Akhgari
4a34af5c92 Bug 830600 - Improve the performance of pasting into the location bar by rewriting the O(n^2) algorithm used there to be O(n); r=roc 2013-01-15 18:44:16 -05:00
Ehsan Akhgari
2c5853610e Backed out changeset 4c6024d6f725 (bug 830600) because of build failures 2013-01-15 19:29:50 -05:00
Ehsan Akhgari
00419fb320 Bug 830600 - Improve the performance of pasting into the location bar by rewriting the O(n^2) algorithm used there to be O(n); r=roc 2013-01-15 18:44:16 -05: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
David Zbarsky
cae582f47e Bug 830132 r=ehsan 2013-01-14 21:06:19 -05:00
David Zbarsky
936f50944d Fix bustage for Bug 827149 2013-01-12 18:20:57 -05:00
David Zbarsky
ae40c85085 Bug 827149 - Remove some uses of nsIDOMHTMLBodyElement r=bz 2013-01-12 16:53:01 -05:00
Masayuki Nakano
3f208a21f2 Bug 825924 Input events which are dispatched by editor should be trusted always r=smaug+ehsan 2013-01-12 10:49:29 +09:00
Ms2ger
3c26b8b8e4 Merge latest PGO-green m-i changeset to m-c. 2013-01-11 14:48:33 +01:00
Ms2ger
c5be726449 Bug 828975 - Cleanup nsHTMLCSSUtils::ElementsSameStyle a bit; r=ehsan 2013-01-11 09:43:01 +01:00
Ms2ger
3afadd016c Bug 825407 - Get rid of GetElementParent; r=mounir 2013-01-11 09:43:01 +01:00
David Zbarsky
228efdd220 fix bustage from Bug 828169 on a CLOSED TREE 2013-01-09 19:09:34 -05:00
David Zbarsky
3ee6a12d3f Bug 828169 - Don't use nsIDOMNode in editor transactions r=ehsan 2013-01-09 18:05:08 -05:00
Andrew Halberstadt
4a18b30019 Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
Masatoshi Kimura
a1f5549a30 Bug 826983 - Enable FAIL_ON_WARNINGS on MSVC in editor/. r=ehsan 2013-01-07 04:41:46 +09:00
Neil Rashbrook
c27eb373cc Bug 826479 Assertion failure: mInitialized when using Ctrl+Middle-click paste r=ehsan 2013-01-04 20:33:09 +00:00
William Chen
7cd5470029 Bug 617532 - Implement UndoManager. r=ehsan 2013-01-03 22:54:26 -08:00
Ehsan Akhgari
2cf729e283 Backed out changeset 66a7359f9be2 (bug 791546) because it broke the build 2013-01-03 18:36:16 -05:00
Shriram Kunchanapalli
bbed330a6b Bug 791546: Removes nsCRT::strcmp(const PRUnichar* s) from nsCRT.h and replaces it occurrences with NS_strcmp; r=bsmedberg 2012-12-24 08:47:18 +05:30
Masatoshi Kimura
b5e27745c8 Bug 824247 - Part 3: Disable FAIL_ON_WARNINGS on not-yet-warning-free directories on MSVC. r=ted 2013-01-03 00:56:38 +09:00
Neil Rashbrook
15ad5a16df Bug 824926 Make relative font size change handle nested font size tags correctly r=ehsan 2012-12-31 21:49:49 +00:00
Trevor Saunders
dc7cb06198 bug 821593 - stop using nsIDOMCSSValue / nsIDOMRGBColor in editor r=bz 2012-12-14 04:14:21 -05:00
Ms2ger
7debeae6b4 Backout bug 821593 for bustage. 2012-12-22 15:33:46 +01:00
Trevor Saunders
d07cd72fc2 bug 821593 - stop using nsIDOMCSSValue / nsIDOMRGBColor in editor r=bz 2012-12-14 04:14:21 -05:00
Ms2ger
1ffa67723b Bug 813532 - Part b: Some cleanup for GetNextHTMLNode; r=ehsan 2012-12-22 09:17:05 +01:00
Ms2ger
5ebe7ea292 Bug 813532 - Part a: Some cleanup for GetPriorHTMLNode; r=ehsan 2012-12-22 09:17:05 +01:00
Masayuki Nakano
2455263ab2 Bug 813445 part.14 Make dom::EventListenerFlags for nsEventListenerManager r=smaug 2012-12-16 10:26:05 +09:00
Masayuki Nakano
792137f340 Bug 813445 part.3 Remove NS_EVENT_FLAG_CANT_CANCEL and NS_EVENT_FLAG_CANT_BUBBLE r=smaug 2012-12-16 10:26:03 +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
Boris Zbarsky
7cbdd79ac6 Bug 820902. nsAttrValue::Equals should do ASCII-case-insensitive compares when it's doing case-insensitive compares. r=sicking 2012-12-13 17:08:44 -05:00
Trevor Saunders
cdabdac86e bug 781409 - remove nsITableLayout r=roc,davidb 2012-08-08 09:05:17 -04:00
Saurabh Anand
c9e3659e16 Bug 818817 - Fix some compiler warnings, r=Ms2ger 2012-12-09 22:53:19 +05:30
Olli Pettay
3243bf0a89 Bug 803853, make sure to not leak mRules, r=ehsan 2012-12-07 01:31:48 +02:00
Aryeh Gregor
316edf1905 Bug 200416 - Test; r=ehsan 2012-12-04 14:11:47 +02:00
Kai Engert
838796da5f Bug 200416 - Account for blocks inside inlines when deleting; r=ehsan 2012-11-25 14:38:23 +02:00
Mats Palmgren
60ccae9fe3 Bug 817574 - Replace NS_ABS with std::abs. r=roc 2012-12-04 13:33:33 +01:00
Ms2ger
cf85be986f Bug 812891 - Remove duplicated code from nsEditor::Get{Left,Right}mostChild; r=ehsan 2012-12-02 09:59:45 +01:00
Ms2ger
590f343557 Bug 812885 - Cleanup nsHTMLEditor::GetElementOrParentByTagName some; r=ehsan 2012-12-02 09:59:41 +01:00
Benoit Jacob
ec39e2a150 Bug 814444 - Remove now-useless TRAVERSE_NATIVE_BEGIN and UNLINK_BEGIN_NATIVE macros - r=mccr8 2012-11-22 12:15:38 -05:00
Benoit Jacob
a1d7e0f511 Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8 2012-11-15 02:32:40 -05:00
Daniel Glazman
ec5abc800c Bug 811679 - Add nsIEditorObserver back; r=ehsan 2012-11-14 11:23:35 -08:00
Mounir Lamouri
33e851046c Bug 556145 - Use opacity instead of GrayText for ::-moz-placeholder UA's style. r=bz,davidb 2012-11-09 10:30:54 +00:00
Masayuki Nakano
189313a6bf Bug 806996 part.5 nsEditor::PostCreate() should call nsIMEStateManager::UpdateIMEState() rather than nsIMEStateManager::OnChangeFocus() when it already has focus r=ehsan 2012-11-09 17:40:39 +09:00
Chris Peterson
7f643fb710 Bug 806142 - Only hide password characters if the text editor is (still) a password editor. r=ehsan 2012-11-06 10:45:58 -08:00
Bobby Holley
c351c18d32 Bug 805807 - Make Components wrapper throw on denial. r=mrbkap
There's really no reason to use the wishy-washy static COW Deny() here.

Also, note that the xpcshell-test wasn't testing what it thought it
was - interfaces is accessible from content code.
2012-11-02 21:47:49 -03:00
Ed Morley
b159aab211 Backout 23c9f61a243b & 6ca11f4b470c (bug 805807) for mochitest-1 orange in test_contextmenu.html 2012-11-02 14:12:51 +00:00
Bobby Holley
ac090a0e20 Bug 805807 - Make Components wrapper throw on denial. r=mrbkap
There's really no reason to use the wishy-washy static COW Deny() here.

Also, note that the xpcshell-test wasn't testing what it thought it
was - interfaces is accessible from content code.
2012-11-02 13:27:59 +01:00
Jet Villegas
3727936e46 Bug 806068 part 2: Change in-tree usage of -moz-initial to initial. r=dholbert 2012-10-30 16:57:36 +01:00
Jacek Szpot
0b35b0e3d8 Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan 2012-10-26 15:32:10 +02:00
Josh Matthews
fcf5f9bfe7 Bug 723002 - Determine privacy status from provided nsILoadContext in ContentPrefService. r=ehsan 2012-06-30 07:50:07 -07:00
Robert O'Callahan
5b94df5bb2 Bug 805697. Remove StCaretHider since it's not needed anymore. r=mats
--HG--
extra : rebase_source : c2c8652585958ddaeb9e01ed1fe47a391339c2ec
2012-10-29 17:31:26 +13:00
Masayuki Nakano
072949e794 Bug 805306 Get rid of nsIMEStateManager::OnTextStateBlur() and nsIMEStateManager::OnTextStateFocus() r=smaug 2012-10-26 09:49:13 +09:00
Mike Conley
c6e489304e Bug 790475 - Part 2: Regression test for the adjacent text node case. r=ehsan. 2012-10-25 18:32:22 -04:00
Ehsan Akhgari
f117c7a7b0 Backed out 2 changesets (bug 579517)
Backed out changeset 5298adc70963
Backed out changeset 86ccf7c918ce (bug 579517)
2012-10-25 12:32:24 -04:00
Ehsan Akhgari
48b5c1a608 Code hygiene: don't use PR_TRUE and PR_FALSE, and use stdint types instead of PRInt types (no bug really, but you could say bug 579517) 2012-10-25 11:48:19 -04:00
Aryeh Gregor
18d73c0331 Bug 802995 - Missing null check in nsTextServicesDocument::DeleteSelection; r=ehsan 2012-10-25 14:36:23 +02:00
Ehsan Akhgari
1f78e9ca0c Merge mozilla-central into mozilla-inbound 2012-10-22 17:05:46 -04:00
Olli Pettay
5edd829335 Bug 798677, make sure events are fully handled in editor, r=ehsan 2012-10-21 15:35:47 +03:00
Olli Pettay
f5c0c70f94 Bug 802985, PreDestroy editor, r=ehsan 2012-10-20 21:48:34 +03:00
Peter Van der Beken
0fca6b2112 Fix for bug 801083 (Remove old proxy-based list bindings). r=bz. 2012-10-13 14:50:24 +02:00
Aryeh Gregor
2b7a1092b2 Bug 795708 - Use more nsCOMPtr; r=ehsan 2012-10-11 12:26:15 +02:00
Peter Van der Beken
57adeb4354 Fix for bug 773780 (Add API for new DOM bindings for Node). r=bz.
--HG--
extra : rebase_source : 5dd51c4ad5274da9235c8c341b0531f234e95a91
2012-10-09 14:31:24 +02:00
Peter Van der Beken
350f7dd89a Fix for bug 799464 (Make Element.getElementsBy* return HTMLCollection). r=bz.
--HG--
extra : rebase_source : fe059b8ad3b98df9e611899832584cc866db0479
2012-09-26 16:17:47 +02:00
Ehsan Akhgari
335b6cc84a Bug 802884 - Fix a build failure in Visual C++ 2012 because of what seems to be a compiler bug; r=me 2012-10-17 20:07:05 -04:00
Masayuki Nakano
d03c724521 Bug 705057 part.3 XP level code shouldn't call nsIWidget::ResetInputState() and nsIWidget::CancelIMEComposition() directly r=smaug+ehsan 2012-09-26 14:47:51 +09:00
David Zbarsky
0e8c52b0d4 Bug 801803: Followup to convert 2 more call sites r=me 2012-10-15 17:39:46 -04:00
Masayuki Nakano
89534dc748 Bug 795785 part.3 Add horizontal scroll test r=smaug 2012-10-15 09:32:53 +09:00
Trevor Saunders
9ab39abf8f bug 798599 - remove prmem from editor r=ehsan 2012-10-04 02:45:16 -04:00
Ehsan Akhgari
5a7253fa1e Merge mozilla-central into mozilla-inbound 2012-10-10 20:21:13 -04:00
Olli Pettay
69e091e8e4 Bug 733305, add a way to hide XBL, r=bz, a=abillings
--HG--
extra : rebase_source : df18273ecdbf013138e8e6f1f4ef8082ac4f410c
2012-10-10 22:04:42 +03:00
Aryeh Gregor
c7f2c15225 Bug 793866 - Missing null check in mozInlineSpellChecker::UpdateCurrentDictionary(); r=ehsan 2012-10-10 09:05:16 +02:00
Masayuki Nakano
a4e119b5dc Bug 795785 part.2 Scroll editor when caret is moved even if it's specified overflow: hidden; r=smaug 2012-10-08 03:45:51 +09:00
Masayuki Nakano
cbffcf6ade Bug 795785 part.1 Editor should scroll the selection into view after edit even when the editor is specified overflow: hidden; r=ehsan,smaug, sr=smaug 2012-10-08 03:45:51 +09:00
Ed Morley
cc9e8c3305 Bug 795393 - Remove instances of "ifneq (mobile,$(MOZ_BUILD_APP))" since they're now always true; r=ted 2012-10-06 16:46:09 +01:00
Vladimir Vukicevic
52a04c8b93 b=716031 and probably 752808 and 759254; fix test_selection_move_commands by driving RefreshDriver directly; r=ehsan 2012-10-02 14:41:04 -04:00
Ehsan Akhgari
e630637a1d Bug 796839 - Part 4: Don't pretend that empty text nodes are not editable; r=roc
This is the real fix for this bug.  Previously we mistakenly thought
that if a text node is empty (or has only whitespace content), it is not
editable.  This patch removes that check completely and makes us treat
text nodes the same way that we treat element nodes.
2012-10-03 21:25:00 -04:00
Ehsan Akhgari
10859e4967 Bug 796839 - Part 3: Don't get the inline properties from empty text nodes; r=roc
This is basically the equivalent of the previous part, just for getting
the inline properties.
2012-10-04 20:58:00 -04:00
Ehsan Akhgari
9fe0740025 Bug 796839 - Part 2 - Don't set inline properties on empty text nodes; r=roc
This part, similar to the previous one, ensures that we skip empty text
nodes when setting inline properties.  Previously we were implicitly
getting this behavior becasue we were calling IsEditable, but we need to
be explicit about this.
2012-10-04 20:37:45 -04:00