Commit Graph

32 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
32ce34eedd Bug 1329200: Remove unused FrameManager global generation counter. r=xidorn
MozReview-Commit-ID: AXkaZYxpK2y
2017-01-06 16:03:41 +01:00
Cameron McCormack
8a879b8032 Bug 1244068 - Part 4: Use StyleSetHandle instead of concrete style set class in most places. r=dholbert 2016-02-24 18:01:11 +11:00
Cameron McCormack
6fdc2f1032 Bug 1223228 - Remove unused nsFrameManagerBase::mStyleSet. r=dholbert 2015-11-10 12:27:47 +11:00
Nicholas Nethercote
2087a666fc Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8. 2015-09-15 20:49:53 -07:00
Nicholas Nethercote
4500bfa831 Bug 1170416 (part 3) - Remove the PLDHashTable2 typedef. r=froydnj. 2015-05-19 16:46:17 -07:00
Nicholas Nethercote
e0c721a715 Bug 1168007 (part 2) - Use PLDHashTable2 in nsFrameManagerBase. r=froydnj. 2015-05-18 19:24:34 -07:00
Ehsan Akhgari
af1e2160e6 Bug 1155485 - Mark nsFrameManagerBase::mPresShell as MOZ_NON_OWNING_REF; r=roc 2015-04-18 19:08:21 -04:00
Nicholas Nethercote
009293c72a Bug 1123151 (part 1) - Set PLDHashTable::ops consistently. r=froydnj.
Currently the setting of PLDHashTable::ops is very haphazard.

- PLDHashTable has no constructor, so it's not auto-nulled, so lots of places
  null it themselves.

- In the fallible PLDHashTable::Init() function, if the entry storage
  allocation fails we'll be left with a table that has |ops| set -- indicating
  it's been initialized -- but has null entry storage. I'm not certain this can
  cause problems but it feels unsafe, and some (but not all) callers of Init()
  null it on failure.

- PLDHashTable does not null |ops| in Finish(), so some (but not all) callers
  do this themselves.

This patch makes things simpler.

- It adds a constructor that zeroes |ops|.

- It modifies Init() so that it only sets |ops| once success is ensured.

- It zeroes |ops| in Finish().

- Finally, it removes all the now-unnecessary |ops| nulling done by the users
  of PLDHashTable.
2015-01-19 16:01:24 -08:00
Mats Palmgren
e9a74a0340 Bug 907396 - Frame manager support for display:contents. r=bzbarsky 2014-11-20 18:24:09 +00:00
Jonathan Watt
4710ce31e2 Bug 1016680, part 4 - Explicitly initialize members in nsFrameManagerBase's ctor rather than using memset. r=bz 2014-06-12 20:25:33 +01:00
Daniel Holbert
94341a614f Bug 1024084: Clean up forward declarations and #includes in nsFrameManager.h and nsFrameManagerBase.h. r=jwatt 2014-06-12 10:09:31 -07:00
Robert O'Callahan
2c1ab3f641 Bug 1015664. Part 1: Remove NS_HIDDEN_() usage. r=bsmedberg 2014-06-03 00:08:21 +12: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
Jeff Muizelaar
5f70f009a4 Bug 764188 - Expose a global frame tree generation number. r=dbaron
This generation number will be incremented every time that the frame
tree for a presshell changes. Callers need to deal with the case where
this value overflows. We use this to avoid a bunch of Android
screenshotting.
2012-07-04 11:42:29 -04:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Jonathan Watt
abde690b9d Bug 714839 - Make nsCSSFrameConstructor inherit nsFrameManager. r=bz. 2012-02-02 10:06:46 +00:00
Michael Wu
0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Craig Topper
c9b049fd30 Bug 253889: DeCOMtaminate nsIPresShell - Make GetRootFrame() nonvirtual inside gklayout. r=roc 2010-03-31 08:48:04 -04:00
Boris Zbarsky
cb3a37f614 Bug 500882 part 7. Remove the old GetPrimaryFrameFor API. r=roc, sr=dbaron 2009-12-24 16:20:06 -05:00
Robert O'Callahan
3ea5398d9e Bug 455314. nsSVGRenderingObserver::GetReferencedFrame shouldn't try to look up the frame on a cache miss, if we're currently destroying frames. r+sr=mats 2008-12-12 21:25:16 +13:00
Mats Palmgren
80c08b3389 DEBUG: Use a flag to track when we are inside RemoveFrame() and assert it's false in GetPrimaryFrameFor(). b=458636 r+sr=roc 2008-10-13 00:05:04 +02:00
dbaron@dbaron.org
2441f6a36b One-line descriptions of files, partly because they show up in LXR. 2006-03-30 05:56:38 +00:00
bzbarsky@mit.edu
254e4f4718 Move handling of replaced element events from frame manager to presshell, make
sure we don't allow reflow flushing while we're constructing the new frames.
Bug 286813, r+sr=dbaron
2005-03-28 23:20:54 +00:00
bryner@brianryner.com
0a85106bba Trying again to land support for content node properties (bug 253888). r=jst, sr=dbaron. 2004-08-24 18:50:29 +00:00
bryner@brianryner.com
8e70e22f41 Backing out 253888 again due to Tp regression plus another problem I noticed (frame properties not getting destroyed on frame destruction) 2004-08-22 07:10:50 +00:00
bryner@brianryner.com
e894651189 Second try at landing support for content node properties (bug 253888). r=jst, sr=dbaron. 2004-08-22 04:58:44 +00:00
bryner@brianryner.com
07ff6116c8 Backing out bug 253888 until I can figure out how to fix the crash 2004-08-21 06:27:54 +00:00
bryner@brianryner.com
d485fa5edc Refactor the frame property code and use it for supporting properties on dom elements. Bug 253888, r=jst, sr=dbaron. 2004-08-21 05:09:50 +00:00
gerv@gerv.net
a6af0a8150 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 13:54:27 +00:00
gerv@gerv.net
cf0b0c064a Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-17 21:52:36 +00:00
roc+@cs.cmu.edu
57d7b6df72 Bug 235335. Additional changes. r+sr=bryner 2004-03-06 04:53:30 +00:00
roc+@cs.cmu.edu
9fcd1843dc Bug 235335. Make nsFrameManager a direct member of nsIPresShell. r+sr=bryner 2004-03-06 04:46:11 +00:00