Commit Graph

289 Commits

Author SHA1 Message Date
Nicholas Nethercote
46b28d0680 Bug 1187782 (part 6) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey. 2015-11-03 16:15:52 -08:00
L. David Baron
49afe71e91 Bug 978833 patch 14 - Pass mozilla::css::Rule instead of nsIStyleRule to nsIDocument/nsIDocumentObserver style rule methods. r=heycam
This also fixes bug 980560.

This is needed for patch 15, which will make the rules passed to these
methods no longer implement nsIStyleRule.

TODO (bug 1221908): Given the amount that these parameters are used (not
at all), perhaps we should have a followup on removing them and
simplifying these notifications?
2015-11-05 16:44:10 +08:00
Cameron McCormack
ff09e791fd Bug 1220496 - Create PresHint/StyleAttr rule processors in nsStyleSet::Init and make DirtyRuleProcessors private. r=bzbarsky 2015-11-05 18:24:22 +11:00
Ben Kelly
31e57f37fa Bug 1221279 Don't crash while clearing imgLoader cache when disconnected document is destroyed. r=smaug 2015-11-04 08:26:46 -08:00
Ehsan Akhgari
56c6b6acba Bug 1202085 - Part 6: Clear the entries in the image cache belonging to a controlled document when it gets destroyed; r=seth 2015-10-30 16:03:13 -04:00
Seth Fowler
1cb1719455 Bug 1207355 (Part 1) - Stop requesting decodes in nsDocument. r=tn 2015-10-29 16:37:42 -07:00
Phil Ringnalda
0576fa76c9 Back out 8 changesets (bug 1207355) for OS X 10.10 reftest failures in generated-content/
CLOSED TREE

Backed out changeset aafd6db2fbb4 (bug 1207355)
Backed out changeset 9dd950b837fb (bug 1207355)
Backed out changeset e941e0e106a1 (bug 1207355)
Backed out changeset ecebca101fcb (bug 1207355)
Backed out changeset 08f2017137e1 (bug 1207355)
Backed out changeset 3dc69e37c9b4 (bug 1207355)
Backed out changeset bcdf51edb121 (bug 1207355)
Backed out changeset 1d4c00dbf49a (bug 1207355)
2015-10-28 22:57:43 -07:00
Seth Fowler
dac63f0f91 Bug 1207355 (Part 1) - Stop requesting decodes in nsDocument. r=tn 2015-10-28 16:40:42 -07:00
Nicholas Nethercote
a0b6805739 Bug 1187782 (part 5) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey. 2015-10-27 15:13:04 -07:00
Wes Kocher
c76555dd46 Merge fx-team to central, a=merge 2015-10-27 12:35:17 -07:00
Victor Porof
0ceb9155f2 Bug 859042 - Show onload and DOMContentLoaded markers in the timeline, r=smaug, jsantell 2015-10-27 13:10:08 +01:00
Kyle Huey
3c530551ba Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Birunthan Mohanathas
68c551a17a Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02:00
Cameron McCormack
b14353f25e Bug 1216043 - Rename nsStyleSheet::sheetType and make it an enum class. r=dbaron
The only substantive change here, apart from a few variables changing in
size from uint16_t to uint8_t, is FontFaceSet's use of SheetType::Unknown
(0xFF) instead of 0 for FontFaceRecords for script-created FontFaces.
2015-10-20 10:16:20 +11:00
Nathan Froyd
9c5965b035 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Eric Rahm
26e457ac2f Bug 1214764 - Convert NS_ENSURE to a plain return in nsDocument::IsScriptEnabled. r=bholley 2015-10-16 11:20:38 -07:00
Boris Zbarsky
83e427089a Backing out changeset f6759ed53f46 (bug 799937) due to causing extension breakage. 2015-10-14 11:07:06 -04:00
Aryeh Gregor
8416474647 Bug 799937 - Make createElement()'s result always in the HTML namespace (except for XUL documents); r=bz
The new expected failures in web-platform are in a test that doesn't
match the spec, which has already been synced upstream and will be
synced shortly.  For the same test in imptests, I chose to modify the
test instead, because it's easier and imptests is going to be removed.
2015-10-14 11:16:08 +05:30
Zack Weinberg
9ceb4413b1 Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam 2015-10-13 17:43:16 -04:00
Aryeh Gregor
6e09c7da53 Bug 1213818 - Align document.title for SVG documents with HTML spec; r=bz
This allows setting, and for getting, pays attention to only children of
the root element (instead of all descendants as in HTML).
2015-10-13 18:14:43 +03:00
Xidorn Quan
f11e2b5f53 Bug 1212299 part 1 - Forbid documents inside elements other than iframe from requesting fullscreen. r=smaug 2015-10-12 11:24:23 +11:00
Xidorn Quan
05457cb75d Bug 1187801 part 3 - Add iframe fullscreen flag and stop auto-rollback when this flag presents. r=smaug 2015-10-08 17:47:39 +11:00
Xidorn Quan
4107d0c383 Bug 1187801 part 2 - Put clearing fullscreen state on element into an independent function. r=smaug 2015-10-08 17:47:39 +11:00
Xidorn Quan
ffb87f6427 Bug 1187801 part 1 - Rewrite nsDocument::RestorePreviousFullScreenState() to unify logic of reverting element in parent document. r=smaug 2015-10-08 17:47:39 +11:00
Xidorn Quan
278fd74c67 Bug 1126230 part 6 - Add nsIDocument::GetFullscreenStack() method. r=smaug 2015-10-07 14:04:32 +11:00
Nicholas Nethercote
a3789f553d Bug 1209351 (part 2) - Optimize nsTHashTable::RemoveEntry() usage in dom/. r=bz. 2015-09-24 19:05:16 -07:00
Kartikaya Gupta
6bd94506f0 Bug 1208023 - Avoid using a bad initial-scale when computing the CSS viewport. r=botond 2015-10-02 23:08:23 -04:00
Botond Ballo
6f5d9f43e2 Bug 1205511 - Use nsPresContext::DevToCSSPixelScale() where appropriate. r=kats 2015-09-28 20:14:26 -04:00
Nigel Babu
4e04894b0f Backed out 9 changesets (bug 1126230) for Mulet Gij(25) and M(5) failures
Backed out changeset 8a9d8a556183 (bug 1126230)
Backed out changeset 441b55f015c2 (bug 1126230)
Backed out changeset 7bfa2a2d4e29 (bug 1126230)
Backed out changeset b55511536c65 (bug 1126230)
Backed out changeset ada76e419aac (bug 1126230)
Backed out changeset 745d659bef49 (bug 1126230)
Backed out changeset 7c303cc4c30b (bug 1126230)
Backed out changeset 8bf708acbad4 (bug 1126230)
Backed out changeset 590404aac357 (bug 1126230)
2015-10-02 13:39:20 +05:30
Xidorn Quan
7711bef764 Bug 1126230 part 5 - Add nsIDocument::GetFullscreenStack() method. r=smaug 2015-10-02 16:34:09 +10:00
Kartikaya Gupta
93587b825c Bug 1202713 - Fix the CSS viewport dimensions for desktop mode. r=snorp
The CSS viewport computation for desktop mode was incorrect. The end result was
that the right amount of CSS pixels was visible on the screen, but the layout
properties were incorrect (so elements that were width:100% would use a different
width than intended). This caused content to be truncated and otherwise
mis-rendered in desktop mode.
2015-10-01 11:48:22 -04:00
Xidorn Quan
85acde1780 Bug 1201798 part 2 - Update viewport scrollbar override for fullscreen and remove the leagcy css rule. r=roc 2015-09-30 10:48:41 +10:00
Gijs Kruitbosch
de9040cc06 Bug 636905 - part 1: add a flag that tracks whether the user has interacted with a given document, r=smaug 2015-09-26 14:54:29 +01:00
Masatoshi Kimura
7ebbf10635 Bug 647621 - Implement document.charset and update document.inputEncoding to the latest spec. r=bz 2015-09-23 09:32:29 +09:00
Christoph Kerschbaumer
ad12815962 Bug 1048048 - add preload content policy types for images (r=seth) 2015-09-20 14:55:59 -07:00
Christoph Kerschbaumer
dad4927d12 Bug 1048048 - add preload content policy types for stylesheets (r=cam) 2015-09-20 14:56:10 -07:00
Wes Kocher
977486c724 Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer
8a5d00f976 Bug 1048048 - add preload content policy types for stylesheets (r=cam) 2015-09-20 14:56:10 -07:00
Christoph Kerschbaumer
4288181182 Bug 1048048 - add preload content policy types for images (r=seth) 2015-09-20 14:55:59 -07:00
Boris Zbarsky
02aa90f994 Bug 1205364 part 1. Make createAttribute in an HTML document lowercase the passed-in attribute name. r=smaug 2015-09-18 13:36:24 -04:00
Nathan Froyd
5c848f4109 Bug 1204994 - part 2 - rename all USE_COUNTER_* histograms to USE_COUNTER2_* histograms; r=bz,vladan
We're changing the definition of each of the use counter histograms.
Therefore, they need new names, so as to not throw wrenches into the
server-side machinery.  This renaming is the most straightforward way to
do things and similar to how we have renamed other histograms before.
2015-09-15 20:44:37 -04:00
Nathan Froyd
e9460276e1 Bug 1204994 - part 1 - add *CONTENT_DOCUMENTS_DESTROYED histograms; r=bz,vladan
These histograms will be used in conjunction with the revised use
counter histograms to ascertain the number of pages that don't use
particular features.  The associated comment in nsDocument.cpp explains
how things work.
2015-09-15 20:27:59 -04:00
Nathan Froyd
a83e95210f Bug 1204994 - part 0 - separate debugging use counters check from value check; r=bz
This change is only here to make future changes more obvious.  It is a
no-op on its own: just adding a block and shifting whitespace around.
2015-09-15 20:20:44 -04:00
Xidorn Quan
c7a55c145e Bug 1204149 - Fix entering DOM fullscreen in fullscreen mode for e10s. r=smaug 2015-09-18 09:33:54 +08:00
William Chen
8e8ae79997 Bug 1176829 follow-up, finish removing unused member to fix bustage. CLOSED TREE 2015-09-17 15:25:24 -07:00
William Chen
0351948a6f Bug 1176829 - Remove custom elements base element queue. r=smaug 2015-09-17 14:49:00 -07:00
Brendan Dahl
3fe185be2e Bug 1202895 - Fix shift-reload check for setting up service worker. r=bkelly 2015-09-16 15:28:45 -07:00
Nicholas Nethercote
e7fadb1c11 Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj.
There are many sub-classes of nsExpirationTracker. In order to distinguish them
nicely in the logging of timer firings, it's necessary to manually name each
one. (This wouldn't be necessary if there was a way to stringify template
parameters, but there isn't.)
2015-09-09 21:07:07 -07:00
Nathan Froyd
95e1026b8c Backout c5b25c30befc:b217dfd70e22 (bug 1204994) for browser-chrome oranges; r=me 2015-09-17 05:09:13 -04:00
Nathan Froyd
d5e2c2b5cf Bug 1204994 - part 2 - rename all USE_COUNTER_* histograms to USE_COUNTER2_* histograms; r=bz,vladan
We're changing the definition of each of the use counter histograms.
Therefore, they need new names, so as to not throw wrenches into the
server-side machinery.  This renaming is the most straightforward way to
do things and similar to how we have renamed other histograms before.
2015-09-15 20:44:37 -04:00