Commit Graph

75 Commits

Author SHA1 Message Date
Mounir Lamouri
4356abff2c Bug 809585 - Remove nsITextControlFrame::GetTextLength. r=bz 2012-11-09 10:32:01 +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
Trevor Saunders
b51bb304d8 bug 542039 - accessible object types r=surkov, roc 2012-09-28 17:53:44 -04:00
Arnaud Sourioux
815396c1bb Bug 733186: Annotate ~1000 methods with MOZ_OVERRIDE in /layout r=dholbert r=dbaron 2012-09-14 09:10:08 -07: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
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Rafael Ávila de Espíndola
4c2f8f408c Bug 774038 - remove unused field. r=roc. 2012-07-15 00:18:01 -04:00
Jonathan Watt
6380335603 Bug 767388 - Kill NS_DEBUG. r=bz.
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01: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
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
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Andrew Quartey
783825908b Bug 722599 - Move change event firing to content from layout r=mounir 2012-05-07 12:27:24 -04:00
Masayuki Nakano
2ab8e3fb4a Bug 668606 input event should be fired on all editors r=ehsan+smaug, sr=smaug 2012-03-27 10:36:44 +09:00
Benjamin Stover
0a52de4032 Bug 524925 - Recompute overflow without reflowing for transforms. part=1/6 r=dbaron
Add an extra change hint, UpdateOverflow, that can be used to specify that
a frame's overflow areas may have changed and that they need to be recalculated.
When a transform on a frame changes, instead of marking it for reflow, set this
hint instead.

There is an added virtual function on nsIFrame, UpdateOverflow, which is called
recursively on a frame when the corresponding hint is set, to allow it to
update its overflow areas.
2011-06-15 14:03:49 -07:00
L. David Baron
4053e3de9f Apply font size inflation to line heights. (Bug 627842, patch 11) r=roc
Since font size inflation applies to the text after style data
computation, we must separately apply this inflation to line heights.
2011-11-23 18:48:23 -08:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Randell Jesup
b20b338621 Bug 682684: handle frames being deleted when running EditorInitializer when under scriptblocker r=roc 2011-09-19 23:14:47 -04:00
Mats Palmgren
6894179e71 Bug 653649 - New way of getting child lists from frames. (part 4/5) r=roc
Remove the nsIAtom* child list names and use child list ID enum instead.
2011-08-24 22:54:30 +02:00
Ms2ger
9414376b01 Bug 677101, part b - Remove nsContentUtils.h includes from headers; r=volkmar 2011-08-11 15:29:50 +02:00
Ehsan Akhgari
2f51d73796 Bug 674558 - Implement the HTML5 selectionDirection property for text controls (input and textarea); r=bzbarsky 2011-07-28 13:51:22 -04:00
Randell Jesup
ee25f8248d Bug 669767: Add scriptblocker to EditorInitializer::Run() so our frame doesn't get killed before we finish. r=ehsan 2011-07-13 16:57:41 -04:00
Randell Jesup
f9901669f2 Bug 655084 - Remove nsWeakFrame's from editor scripts and the nsTextInputListener to improve perf on pages with lots of text widgets. r=ehsan 2011-05-21 04:25:27 -04:00
Boris Zbarsky
447ee74d8c Bug 654989 part 1. Allow handing out both an nsIContent and an nsStyleContext from CreateAnonymousContent. r=roc 2011-05-06 16:04:44 -04:00
Jan Küchler
5ef6bf26cf Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
extra : rebase_source : 34884bfcafd885feaf73300bc7246cd192062a48
2011-04-07 18:04:40 -07:00
Ms2ger
6ee0b2b1da Bug 589894 - Fix a number of build warnings in content/; r=smaug 2011-04-14 14:04:12 +02:00
Josh Aas
e2dffb6660 Bug 556873: Fix bugs in our secure input implementation for Mac OS X. More reliably enable and disable secure input mode. r=masayuki a=jst 2011-02-09 14:00:58 -05:00
Ehsan Akhgari
deae53f1e4 Bug 629878 - Part 2: Do not scroll the selection into view when restoring the selection offsets for a text control after a reframe; r=roc a=blocking-final+
Previously, we used to scroll the text control's selection into view after a
reframe.  This had two problems: it was not precise (in case the selection was
modified by the mouse, for example), and it lead to problems such as bug 629878
if the control's frame was reconstructed because of the control being moved
inside the DOM.

This patch disables that behavior by wrapping the selection scroll function
into nsITextControlFrame::ScrollSelectionIntoView, so that APIs such as
setSelectionRange on the text control's content node can still call it
explicitly (since they actually need this behavior), but other callers of
nsITextControlFrame::SetSelectionRange (such as the nsTextEditorState
object's selection offset restoring mechanism) don't get this behavior as
an undesired side-effect.
2011-02-04 19:29:29 -05:00
Ehsan Akhgari
cbe552f50f Bug 629878 - Part 1: Save the scroll state for text controls the standard way; r=roc a=blocking-final+ 2011-02-04 18:28:38 -05:00
Ehsan Akhgari
393e54e609 Bug 527935 - Fire the input event for text controls with the correct trusted-ness status; r=roc a=blocking-final+ 2010-12-07 01:30:05 -05:00
Mounir Lamouri
88788a3064 Bug 553097 - Do not create a frame and DOM node for placeholder if not needed. r=ehsan,roc a=blocking 2010-10-19 15:11:07 +02:00
Alexander Surkov
8b53f409de Bug 604386 - Prune placeholder from text children, r=davidb, sr=bz, a=blocking 2010-10-16 00:34:35 +09:00
Alexander Surkov
1b2bbba526 Bug 573706 - make frame based accessible creation more pellucid, r=davidb, sr=roc 2010-06-28 21:02:03 +09:00
Ehsan Akhgari
d051ffeaed Bug 534785 - Move the ownership of editor and selection controller from the text frame to the content node; r=roc,jst sr=roc
(transplanted from 2437636244f39bbdc7d20b062e2c978b9d85c239)

--HG--
rename : layout/reftests/forms/placeholder/placeholder-14.html => layout/reftests/forms/placeholder/placeholder-18.html
extra : transplant_source : %247cbD%F3%9B%BD%C7%D2%0B%06.%2C%97%8B%9D%85%C29
2010-04-21 16:17:41 -04:00
Ehsan Akhgari
40fcaed7a3 Bug 562447 - when navigating in gmail sometimes get a screen full of white; r=roc 2010-05-06 18:12:21 -04:00
Ehsan Akhgari
6fe4d9dd45 Bug 221820 - Part 7: Wrap the calls to nsTextControlFrame::EnsureEditorInitialized in a weak frame check; r=roc 2010-04-06 16:44:46 -04:00
Ehsan Akhgari
af32591ddc Bug 221820 - Part 4: Fix the newline handling for text fields without an editor; r=bzbarsky 2010-02-22 16:15:56 -08:00
Ehsan Akhgari
a2d848318a Bug 221820 - Part 3: Debug-only assertion for reentrancy detection; r=bzbarsky 2010-02-09 20:29:11 -05:00
Ehsan Akhgari
5423b1af2f Bug 221820 - Part 2: Make the editor initialization lazy (initialize only when needed); r=bzbarsky 2010-02-02 10:49:55 -05:00
Ehsan Akhgari
d6856b82d8 Bug 542919 - Refactor the plain text editor initialization to facilitate lazy initialization; r=bzbarsky sr=roc 2010-02-01 23:00:06 -05:00
Ehsan Akhgari
a7ebcd12b9 Back out the editor lazy inititialization patches (bug 221820) to try to solve the orange in bug 557689 2010-04-06 21:08:58 -04:00
Ehsan Akhgari
872be8bd0f Bug 221820 - Part 7: Wrap the calls to nsTextControlFrame::EnsureEditorInitialized in a weak frame check; r=roc
--HG--
extra : rebase_source : e8ea41dfa8e4b591e21176fb654f968671cc3ba1
2010-04-06 16:44:46 -04:00
Ehsan Akhgari
862eb9644f Bug 221820 - Part 4: Fix the newline handling for text fields without an editor; r=bzbarsky
--HG--
extra : rebase_source : 92d9e491351a6183f0232604cd989c14d10d5fad
2010-02-22 16:15:56 -08:00
Ehsan Akhgari
6fb3c80de5 Bug 221820 - Part 3: Debug-only assertion for reentrancy detection; r=bzbarsky
--HG--
extra : rebase_source : 0b3e81c649178ebff2b08856f652a37be59d7547
2010-02-09 20:29:11 -05:00
Ehsan Akhgari
36c7ad5a5a Bug 221820 - Part 2: Make the editor initialization lazy (initialize only when needed); r=bzbarsky
--HG--
extra : rebase_source : bf84341934b14c78fadc162607721e9325673fc4
2010-02-02 10:49:55 -05:00
Ehsan Akhgari
4605b1985f Bug 542919 - Refactor the plain text editor initialization to facilitate lazy initialization; r=bzbarsky sr=roc
--HG--
extra : rebase_source : 9c043d3cb30420f061d543e11e3000a1f8e18e27
2010-02-01 23:00:06 -05:00