Граф коммитов

1380 Коммитов

Автор SHA1 Сообщение Дата
Bobby Holley f8c9d884fc Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal. r=emilio
MozReview-Commit-ID: 7wH5XcILVmX
2016-11-25 10:06:39 -08:00
Wes Kocher 0d3acb69a9 Backed out changeset 41f004509646 (bug 1315394) for android crashtest assertions a=backout 2016-11-11 11:17:53 -08:00
Bobby Holley 05c3b6e81a Bug 1315394 - stylo: stop unconditionally marking the root node as dirty in PresShell::Init. r=heycam
MozReview-Commit-ID: 66gJWIZl0wo
2016-11-11 09:13:06 -08:00
Jonathan Watt 9aad32cd64 Bug 1313386, part 2 - Make AutoPrintEventDispatcher::DispatchEventToWindowTree non-static. r=dholbert 2016-11-01 21:29:30 +00:00
Jonathan Watt fdc97b0759 Bug 1313386, part 1 - Clean up the beforeprint/afterprint event dispatching code. r=dholbert 2016-11-01 21:29:30 +00:00
Kan-Ru Chen 7c1c963ca5 Bug 1301346 - Add telemetry to collect how much time was spent in handling beforeunload and unload event. r=bsmedberg,smaug
MozReview-Commit-ID: 3jCsBcDncGC

--HG--
extra : rebase_source : b382dbf89483b9aee6c1a205bfc7b20cca18af85
2016-09-09 12:06:36 +08:00
Kris Maglione a6c6580702 Bug 1294442: Part 1 - Allow calculating content size with constraints. r=smaug
MozReview-Commit-ID: 4AyootQ5icK

--HG--
extra : rebase_source : 8d2421263e7636c99cecd1f7cf9dda2da20be6f3
2016-10-19 13:10:18 -07:00
Andrea Marchesini 9215b7b957 Bug 1307122 - Introducing a timeout for sync XHR when unload events are dispatched, r=smaug 2016-10-16 08:46:10 +02:00
Olli Pettay bddafc48dd Bug 1305309, backout Bug 1214805, r=backout
--HG--
extra : rebase_source : d86f67ef53b26027d739725829a2ee736d71221e
2016-09-27 01:03:24 +03:00
Xidorn Quan 2f49a48a09 Bug 1304302 part 10 - Replace all uses of StyleSheetHandle. r=heycam
This commit is generated by the following commands with some minor
manual adjustment:

find . \( -name '*.h' -or -name '*.cpp' \) -not -path './layout/style/StyleSheet*' -exec sed -i -b \
  -e '/^\(#include\|using\)/s/StyleSheetHandle/StyleSheet/g' \
  -e 's/\(mozilla::\)\?StyleSheetHandle::RefPtr/RefPtr<\1StyleSheet>/g' \
  -e 's/StyleSheetHandle()/nullptr/g' \
  -e 's/->AsStyleSheet()//g' \
  -e 's/StyleSheetHandle/StyleSheet*/g' {} +
sed -i -b 's/sheet->AsVoidPtr()/sheet.get()/' layout/style/Loader.cpp
sed -i -b 's/AsHandle()/this/' layout/style/StyleSheet.cpp

MozReview-Commit-ID: 7abdvlKHukd

--HG--
extra : source : e5682242db07203b5a91810fe1e243c955310588
2016-09-26 22:03:25 +10:00
Xidorn Quan 1dc2955ab8 Bug 1304302 part 8 - Change include of {CSS,Servo}StyleSheet.h to StyleSheetInlines.h. r=heycam
It is a preparation for later patch which moves functions from those
classes into StyleSheet. Some of the functions are better defined in
StyleSheetInlines.h.

This commit is generated by the following command:

find . \( -name '*.h' -or -name '*.cpp' \) -not -name '*StyleSheet*' -exec sed -i -b \
  -e '/^#include/ s_/\(CSS\|Servo\)StyleSheet\.h_/StyleSheetInlines.h_' \
  -e '1,\_^#include "mozilla/StyleSheetInlines.h"_ ! { \_^#include "mozilla/StyleSheetInlines.h"_d }' {} +

MozReview-Commit-ID: 54H5x27Pmso

--HG--
extra : source : e4fe253a8f82c3c58e5191d6af66fb0e85f2df19
2016-09-26 22:03:25 +10:00
Michael Layzell 118a8b7507 Bug 1018486 - Part 4: Changes in layout/, r=bz
MozReview-Commit-ID: BsaKGHsoqOq
2016-09-07 10:50:40 -04:00
Olli Pettay 961aa9b24b Bug 1214805, allow navigating when afterprint event is dispatched, r=bz
--HG--
extra : rebase_source : 67bb9b79332b009756781ae3e58aed91a5bdfbfa
2016-09-03 17:33:30 +03:00
Nicholas Nethercote b71747b2ac Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.

--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Matteo Ferretti c0ce371e10 Bug 1241867 - override the DPR without affecting the rendering; r=dbaron
- added overrideDPPX to nsIContentViewer
- made CSSStyleSheet and GlobalWindow using the overrideDPPX value
- added unit test with frame check

MozReview-Commit-ID: AOWpGs4vb9H

--HG--
extra : rebase_source : 45d9ae2c9b7aad835b5602e805ec7260c69c05b8
2016-08-25 13:15:19 +02:00
Henri Sivonen a3b8292670 Bug 1191841 - Perform label resolution in scriptable charset setters of nsIContentViewer. r=emk.
MozReview-Commit-ID: facCC1K7Dk
2016-08-22 20:18:24 +03:00
Sebastian Hengst 2f30199523 Backed out changeset 721fabf360ff (bug 1110928) for frequent failures to load onload scripts in reftests on Winodws XP and Windows 7 VM. r=backout 2016-08-21 12:29:01 +02:00
Sebastian Hengst 9d30a54ba3 Backed out changeset c5bc2d6ed0d7 (bug 1110928) 2016-08-21 12:27:56 +02:00
Sebastian Hengst 7422ce2634 Backed out changeset 31b56ae647c8 (bug 1110928) 2016-08-21 12:27:47 +02:00
Andrew McCreight a0ddf20ce7 Bug 1110928, part 4 - Try to pass a relevant zone to PokeGC. r=smaug
This means the browser will do less full GCs.

MozReview-Commit-ID: BXf4GGhmbMx
2016-08-19 15:26:56 -07:00
Andrew McCreight 52912280c9 Bug 1110928, part 2 - Call PokeGC in nsDocumentViewer::PageHide before the call to OnPageHide. r=smaug
This ensures that the document isn't destroyed when we call PokeGC, which will be useful later.

MozReview-Commit-ID: 4iCy0bRY2kK
2016-08-19 15:26:56 -07:00
Andrew McCreight 9bed765b2e Bug 1110928, part 1 - Hoist the LOAD_END PokeGC out of nsJSContext::LoadEnd. r=smaug
nsDocumentViewer knows which document is involved which will help us later.

Also, fix a typo in the comment.

MozReview-Commit-ID: L6AyRUV7Y3x
2016-08-19 15:26:56 -07:00
Olli Pettay c8587c2d07 Bug 1274079, ensure that after dispatching beforeprint, we have still valid ContentViewer to print, r=bz
--HG--
extra : rebase_source : c07cf7794d48d4f9b52b2646c18099a33bbea788
2016-08-02 21:41:51 +03:00
Bobby Holley 81084cfef0 Bug 1290214 - Remove NS_ERROR in the case where we skip checking the stylesheet service. r=emilio 2016-07-28 17:25:44 -07:00
Ting-Yu Lin d444310eb1 Bug 1277129 Part 1b - Rename nsHTMLReflowState.h/cpp to ReflowInput.h/cpp and fix #includes. r=dbaron
The #includes are fixed by the following script:

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "nsHTMLReflowState\.h" "mozilla\/ReflowInput\.h"

MozReview-Commit-ID: FjwHA4YRHNv

--HG--
rename : layout/generic/nsHTMLReflowState.cpp => layout/generic/ReflowInput.cpp
rename : layout/generic/nsHTMLReflowState.h => layout/generic/ReflowInput.h
extra : rebase_source : e4215620717df436a51243cee689286cfabc7c71
2016-07-21 18:36:34 +08:00
Cameron McCormack acd21d26c0 Bug 1285474: Decide style system backend type for documents earlier. r=bholley
MozReview-Commit-ID: 7A4t3957CWe
2016-07-12 00:33:57 -07:00
Jonathan Kew 5848b8fce9 Bug 1154125 - Ensure the context has up-to-date device pixel DPI scaling before using it in calling nsViewManager::SetWindowDimensions. r=mstange
--HG--
extra : rebase_source : c757bbeae9b86e139b32c224c6df01318cc7a33f
2016-06-30 12:27:29 +01:00
Phil Ringnalda 93890f7d54 Back out 068fa73fa918 (bug 1154125) for e10s timeouts in test_bug1166138.html and test_img_mutations.html 2016-06-29 19:15:36 -07:00
Jonathan Kew e8c95f9701 Bug 1154125 - Ensure the context has up-to-date device pixel DPI scaling before using it in calling nsViewManager::SetWindowDimensions. r=mstange 2016-06-29 20:58:02 +01:00
Andrea Marchesini 37ac18fc67 Bug 1269162 - part 6 - Merge XMLHttpRequestWorker and XMLHttpRequestMainThread, r=smaug
--HG--
rename : dom/xhr/nsXMLHttpRequest.cpp => dom/xhr/XMLHttpRequestMainThread.cpp
rename : dom/xhr/nsXMLHttpRequest.h => dom/xhr/XMLHttpRequestMainThread.h
2016-06-27 19:13:41 +02:00
Masayuki Nakano d960ef26d5 Bug 1278014 part.5 Rename SelectionType::SELECTION_NORMAL to SelectionType::eNormal r=smaug
MozReview-Commit-ID: AAdxTTKEvrk

--HG--
extra : rebase_source : 82e10db6b8b17d4f571625e34bb3c8f1905ef58a
2016-06-09 18:35:22 +09:00
Masayuki Nakano 00591135a4 Bug 1278014 part.2 Define mozilla::SelectionType as an enum class and use it instead of RawSelectionType as far as possible r=smaug
This patch defines mozilla::SelectionType as an enum class.  This is safer than nsISelectionController::SELECTION_* since setting illegal value to its variable is checked at build time.  So, as far as possible, this should be used everywhere (but of course, this isn't available in scriptable interfaces).

And also this implements some useful methods for managing SelectionType and RawSelectionType which are implemented in layout/nsSelection.cpp because nsISelectionController is implemented by both PresShell and nsTextEditorState.  Therefore, implementing one of them may make hard to find them.  On the other hand, nsSelection.cpp is a better file name to look for them.

Note that this patch creates mozilla::Selection::RawType() for binding.  Native code should keep using Selection::Type() but the binding code needs to use RawType() due to impossible to convert from SelectionType to RawSelectionType without explicit cast.

MozReview-Commit-ID: 81vX7A0hHQN

--HG--
extra : rebase_source : d9f88e217c713c60d1c2578ce6421c73ccba8650
2016-06-11 11:06:37 +09:00
Jonathan Watt b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Mats Palmgren 4e63c1e0cf Bug 881832 - Make inner document reflow asynchronous. r=tnikkel 2016-05-12 12:07:45 +12:00
Phil Ringnalda 6bb0bc4494 Back out 6 changesets (bug 881832) for failures in test_Debugger.Source.prototype.element.html
CLOSED TREE

Backed out changeset fac50ce10b07 (bug 881832)
Backed out changeset 32e01c144cd4 (bug 881832)
Backed out changeset 779f5336b81e (bug 881832)
Backed out changeset 95efd250e29f (bug 881832)
Backed out changeset 7fe79f07189f (bug 881832)
Backed out changeset 8ee1824f2a57 (bug 881832)
2016-05-23 18:34:49 -07:00
Mats Palmgren fdb3066641 Bug 881832 - Make inner document reflow asynchronous. r=tnikkel 2016-05-12 12:07:45 +12:00
Boris Zbarsky ee97bc5aed Bug 1267989 part 3. Make suppressing event handling on a document also block script execution for that document. r=smaug
Note that we do this here instead of when we suspend timeouts, because it makes
it simpler to handle situations in which a window's document changes while
things are suspended/blocked.

The nsDocumentViewer.cpp is not strictly needed, but avoids some extraneous
calls to SuppressEventHandling with a 0 suppression count.
2016-05-20 23:13:18 -04:00
Bob Owen 757e385a15 Bug 1189846 Part 3: Remove CreatePrintSettings nsIPrintOptions and use GetNewPrintSettings instead. r=jimm
MozReview-Commit-ID: Esv5zYxpKVo
2016-05-16 10:40:54 +01:00
Phil Ringnalda c6417cc01e Back out 5 changesets (bug 881832) for failures in browser_html_tooltip-02.js
Backed out changeset 117e8e24d714 (bug 881832)
Backed out changeset 8a0d5df41cfb (bug 881832)
Backed out changeset 6b3c5e185b04 (bug 881832)
Backed out changeset 11106afdcbe7 (bug 881832)
Backed out changeset d711b7c19a43 (bug 881832)
2016-05-11 21:08:08 -07:00
Mats Palmgren e04a74ec14 Bug 881832 - Make inner document reflow asynchronous. r=tnikkel
--HG--
extra : rebase_source : 9987e19e3318d5bc58ac8214496893041bc1775c
2016-05-12 12:07:45 +12:00
Boris Zbarsky 08254285a1 Bug 1190641 part 2. Add the sandboxed modals flag to iframe sandboxing. r=ckerschb
Automated testing for this seems rather difficult; I've done manual testing.
2016-05-06 13:56:36 -04:00
Boris Zbarsky b84ac31e14 Bug 1271521. Add a sane way of temporarily disabling dialogs on a window. r=smaug
What we have right now is not very usable, because you can only enable/disable
on the scriptable top of the window, but it's not at all obvious that this is
the case when using the API.
2016-05-10 20:57:29 -04:00
Makoto Kato 833bf3893a Bug 1261012 - Check whether nsIObserverService is nullptr. r=smaug
During shutdown, mozilla::services::GetObserverServie will return nullptr.  So we should check it.  Add another nullptr check

MozReview-Commit-ID: 9xBbltRatJF

--HG--
extra : rebase_source : a859de09f30eeba344c317aec4cf4ed2cce8da2b
extra : histedit_source : 325aba902eff367d046807e9be3a73ad3100ee67
2016-04-27 19:10:11 +09:00
Kartikaya Gupta 65f5105de7 Bug 1269539 - Ensure that the scroll position is restored properly on reloading a page which loads incrementally. r=tnikkel
MozReview-Commit-ID: 1qVA5yU7a7g

--HG--
extra : rebase_source : 032336d7552ece6dbeafa4eb07eceb7ed2a096ba
2016-05-03 10:40:20 -04:00
Aryeh Gregor f14f1babe8 Bug 1193762 part 8 - Fix things that will break; r=froydnj
It looks like VC++ doesn't like comparisons of nsCOMPtr to 0 after this
change, but those are bad style anyway, so I removed them from
TestCOMPtr.cpp instead of trying to make them work.
2016-05-01 21:29:23 +03:00
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Timothy Nikkel e78e313fa5 Bug 1259246. Simplify nsDocumentViewer::FindContainerView. r=dholbert
Turn a series of nested if's into early return if's with no nesting so it is easier to follow.
2016-04-04 02:59:15 -05:00
Timothy Nikkel 4fa1d92384 Bug 1259246. Move nsIPresShell::GetRealPrimaryFrameFor to nsLayoutUtils::GetRealPrimaryFrameFor. r=dholbert
The function doesn't need to be a non-static member of nsIPresShell: it only checks if the document of the passed in element matches the presshell's document, and then the remaining code could be static. It has only one user, nsDocumentViewer::FindContainerView, and it doesn't care about the specific presshell, it just wants the primary frame, so it doesn't need the document check.

This lets us simplify nsDocumentViewer::FindContainerView because it had to jump through hoops to get the presshell.
2016-04-23 15:18:26 -05:00
Ben Kelly 67cfa5a9ee Bug 1265795 P4 Always call nsDocument::SetScriptGlobalObject(nullptr) from nsDocument::Destroy(). r=bz
Currently there are certain paths in nsDocumentViewer that can call
nsDocument::Destroy(), but fail to call SetScriptGlobalObject(nullptr).  This
results in the global never being cleared.

This patch refactors things so nsDocument::Destroy() always clears the global.
This ensures a more consistent document teardown since we don't rely on
external callers to get multiple method calls correct.
2016-04-21 16:10:40 -07:00
Timothy Nikkel d5ab4ae492 Back out changesets 4bbf54c1bcd9 and ffcc3708103a from bug 1259246.
Backed out to see if they caused bug 1262027.
2016-04-21 23:14:37 -05:00
Masayuki Nakano da3898bcb7 Bug 1259656 part.5 Rename WidgetEvent::target to WidgetEvent::mTarget r=smaug
MozReview-Commit-ID: L0GnVR6NcAe

--HG--
extra : rebase_source : a8784d4599dad317f8335477afac9a7d4b92918f
2016-04-19 00:46:00 +09:00
Tobias Schneider 7fa6b225c8 Bug 1260480 - Remove mozNoMarginBoxes. r=dbaron 2016-04-06 09:53:00 +02:00
Timothy Nikkel 8915fda5f6 Bug 1259246. Simplify nsDocumentViewer::FindContainerView. r=dholbert
Turn a series of nested if's into early return if's with no nesting so it is easier to follow.
2016-04-04 02:59:15 -05:00
Timothy Nikkel 59adfe3545 Bug 1259246. Move nsIPresShell::GetRealPrimaryFrameFor to nsLayoutUtils::GetRealPrimaryFrameFor. r=dholbert
The function doesn't need to be a non-static member of nsIPresShell: it only checks if the document of the passed in element matches the presshell's document, and then the remaining code could be static. It has only one user, nsDocumentViewer::FindContainerView, and it doesn't care about the specific presshell, it just wants the primary frame, so it doesn't need the document check.

This lets us simplify nsDocumentViewer::FindContainerView because it had to jump through hoops to get the presshell.
2016-04-04 02:59:15 -05:00
Timothy Nikkel 420a4263c2 Bug 1234622. Tweak how nsDocumentViewer::FindContainerView finds the parent presshell. r=bz
During page transition the presshell we get via the parent docshell is the presshell for the _next_ document.

Whereas, the presshell we get via the containing frame element (iframe etc) is the current document.

If we use the presshell for the next document to get the primary frame for the containerElement it will return null because it doesn't have the right document.
2016-03-25 13:49:29 -05:00
Masayuki Nakano 8c8cbe0e4c Bug 1256589 part.5 Add DefaultPrevented() and DefaultPreventedByContent() to WidgetEvent r=smaug
MozReview-Commit-ID: 5q3QUPTf12Z

--HG--
extra : rebase_source : 83ed946b44910713a61c80bd21202aba9430dd2a
extra : source : 4eb2193814ab1958a65add0c8c307d07c646d61c
2016-03-22 16:47:52 +09:00
Daniel Holbert 541713fc1f Bug 1245978 part 1: Make nsDocumentViewer::CreateStyleSet directly return the thing it creates. r=heycam 2016-02-29 15:09:13 -08:00
Cameron McCormack 49f6905565 Bug 1250790 - Don't try to add CSSStyleSheets from the style sheet service to a ServoStyleSet. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack 3633214b94 Bug 1250379 - Create css::Loaders for specific style backend types. r=dholbert 2016-02-24 18:01:12 +11:00
Cameron McCormack 7e32ad166a Bug 1250377 - Part 3: Create a ServoStyleSet for HTML documents in content docshells. r=bholley 2016-02-24 18:01:12 +11:00
Cameron McCormack 0ecd5593cc Bug 1244074 - Part 4: Use StyleSheetHandle instead of concrete style sheet class in most places. r=dholbert 2016-02-24 18:01:12 +11:00
Cameron McCormack 7c95c39734 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
Aidin Gharibnavaz 6863090c8a Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn

--HG--
extra : transplant_source : 2%82%D5%89%19%94%7C%E7%CA1%99%B5%24%1F5%E1%C0%1F%DE%07
2016-02-12 19:10:07 +03:30
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Ting-Yu Lin 2d02ad0652 Bug 1227927 Part 3 - Use ranged-based for-loop to rewrite some simple loops in part 2. r=mats
--HG--
extra : commitid : CcdpGdlMNIk
extra : rebase_source : 9c184cb8107bf6276c237d03d240f8755fd61553
2016-01-29 22:42:15 +08:00
Ting-Yu Lin 1889f6bc41 Bug 1227927 Part 2 - Remove nsIFrame::GetFirstPrincipalChild(). r=mats
--HG--
extra : commitid : 5qtaK1nS8RC
extra : rebase_source : dcc98f423b2446269beb6fa6a9d092ae8213f38e
2016-01-29 22:42:14 +08:00
Nicholas Nethercote 2282e33e5b Re-backout c216ff19d690 (bug 1059014 part 3) because the removed code is less dead than it first appears.
--HG--
extra : rebase_source : 22c84e309f8b9e26c359108905a2e8a6e5df2bb7
2016-01-20 22:55:37 -08:00
Olli Pettay 2b2b2cc690 Bug 1155730, implement History.scrollRestoration r=jst 2015-12-26 12:59:09 +02:00
Nicholas Nethercote 8a4d84a51a Bug 1059014 (part 3) - Remove support for pausing and resuming painting. r=dbaron.
This reverts much of part 2 of bug 878935, except for the Android browser.js
changes which have already been reverted elsewhere.

The revert caused mass b2g Gij test bustages
2015-11-24 16:09:04 +05:30
Nicholas Nethercote 93390d7300 Backout 3ad33d09825a (bug 1059014 part 3) because the removed code is less dead than it first appears. 2015-11-23 14:13:48 -08:00
Cameron McCormack fd2fba0c73 Bug 990250 - Fold nsIStyleSheet into CSSStyleSheet. r=dbaron 2015-11-17 17:04:09 +11:00
Kyle Huey bdbb2ec50a Bug 1224061: Make Event::InitEvent infallible. r=smaug 2015-11-13 08:09:42 +08:00
Carsten "Tomcat" Book fde361620f merge mozilla-inbound to mozilla-central a=merge 2015-11-12 12:00:55 +01:00
Bill McCloskey 4f99faeaed Bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process (r=Gijs) 2015-11-11 18:04:21 -08:00
Victor Porof a54b717a42 Bug 1218078 - Show onload and DOMContentLoaded markers in the netmonitor's frontend, r=smaug, jsantell, tromey 2015-11-11 23:11:40 +01:00
sajitk 85550613ed Bug 1219470 - Replace PRLogModuleInfo with LazyLogModule. r=roc 2015-11-05 23:35:03 +01:00
Bill McCloskey dba8372445 Backout bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process 2015-11-08 12:24:42 -08:00
Bill McCloskey 2f8ca7a3ce Bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process (r=Gijs) 2015-11-08 10:27:49 -08:00
Nicholas Nethercote 6f4a1e234b Bug 1059014 (part 3) - Remove support for pausing and resuming painting. r=dbaron.
This reverts much of part 2 of bug 878935, except for the Android browser.js
changes which have already been reverted elsewhere.

--HG--
extra : rebase_source : efdcede145567d8a56409cebecdd49a9307ec71a
2015-11-04 20:55:32 -08:00
Nicholas Nethercote f07dc1c47b Bug 1059014 (part 1) - Remove support for max line box width. r=dbaron.
This basically reverts bug 780258.

--HG--
extra : rebase_source : 59cc458d83fed9735e9e0321ec52a0a9484bd7ba
2015-11-04 20:25:01 -08:00
James Willcox 1c5b794be3 No bug, use attached widget listener mode on iOS, NPOTB 2015-10-28 14:10:31 -05:00
Victor Porof 603fd3fe06 Bug 859042 - Show onload and DOMContentLoaded markers in the timeline, r=smaug, jsantell 2015-10-27 13:10:08 +01:00
Kyle Huey c7d3c4e21a Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Cameron McCormack 2f1046d287 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 01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Bill McCloskey c5d5457154 Back out bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process 2015-10-07 11:15:11 -07:00
Xidorn Quan a52fd07abd Bug 1126230 part 9 - Remove fullscreen override and related test. r=dbaron
--HG--
extra : source : 3abf655d87187abc2d3dcd100a267410c42abbb0
2015-10-07 14:04:32 +11:00
Nigel Babu a47d2e063f 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 fd6366f6e5 Bug 1126230 part 8 - Remove fullscreen override and related test. r=dbaron
--HG--
extra : source : 13c6349bea96873967ba5113b552d31f1dab1bac
2015-10-02 16:34:09 +10:00
Bill McCloskey 207404ad2d Bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process (r=Gijs) 2015-10-01 21:18:48 -07:00
Gijs Kruitbosch ff07a9d7e5 Bug 636905 - part 2: check for document interactivity state when prompting for beforeunload, r=bz
--HG--
extra : commitid : 3jpKjuOULpC
extra : rebase_source : 8f033b0febca4cda10a46b48169772e20b21c7b6
2015-09-24 12:11:07 +01:00
Michael Layzell 2aa752dd26 Bug 1199288 - Rename mApplyUserSelectStyle to mUserInitiated, r=smaug 2015-09-23 23:28:36 -04:00
Mike Conley 2606bb64e2 Bug 1199434 - Fire an event when the print engine encounters an error. r=smaug
The print engine used to directly cause a prompt to be displayed in the most
recent window in the event of an error. This patch causes the print engine to
fire an event instead so that the front-end can choose to display or ignore
the error.

--HG--
extra : commitid : J2icIUiO8Lv
extra : rebase_source : 0288d18cf29b8c167da2be9b907f234cf4c3f2b7
2015-09-16 16:12:43 -04:00
Masayuki Nakano 983ec22e88 Bug 895274 part.116 Rename NS_COPY to eCopy r=smaug 2015-09-08 23:33:34 +09:00
Masayuki Nakano e1d00d44c8 Bug 895274 part.61 Rename NS_LOAD to eLoad r=smaug 2015-09-02 15:07:59 +09:00
Masayuki Nakano 6421cfec57 Bug 895274 part.60 Rename NS_PAGE_UNLOAD to eUnload r=smaug 2015-09-02 15:07:59 +09:00
Ting-Yu Chou c9627afeba Bug 1194121 - Skip UpdateCommands() from initializing collapse to avoid sync IPC during app startup. r=jst 2015-08-28 15:18:56 +08:00
Birunthan Mohanathas 7315345693 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Drew Willcoxon 6560d4f70d Bug 1188665 - Make nsIDOMWindowUtils.disableDialogs() disable onbeforeunload dialogs. r=bz 2015-07-31 16:13:01 -07:00
Eric Rahm 06fe3194ec Bug 1183879 - Soften "non-subdocument frame" warning to also allow dummy nsFrames, which exist while subdocument is loading. r=dholbert 2015-07-19 12:27:40 -07:00
Cameron McCormack dd81f3c902 Bug 1169512 - Add and remove quirk.css rather than enable and disable a clone of it. r=jwatt 2015-06-26 13:49:58 +10:00
Eric Rahm ce21e87392 Bug 1175289 - Part 2: Disable "Subdocument container has no frame" warning by default. r=mats 2015-06-16 16:37:16 -07:00
Cameron McCormack 4c1cfc10bd Bug 1169514 - Part 2: Move noframes rules from the preferences style sheet to a cached UA style sheet. r=jwatt 2015-06-16 11:34:47 +10:00
Cameron McCormack 5492e00444 Bug 1169514 - Part 1: Move noscript rule from the preference style sheet to a cached UA style sheet. r=jwatt 2015-06-16 11:34:47 +10:00
Eric Rahm 75c4bebb79 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm 0fe3472d8b Bug 1170642 - Silence nsDocumentViewer::GetInImage warnings. r=ehsan 2015-06-03 08:22:04 -07:00
Carsten "Tomcat" Book 5471309381 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)

--HG--
extra : rebase_source : 6fb850d063cbabe738f97f0380302153e3eae97a
2015-06-02 13:05:56 +02:00
Eric Rahm a9afd68cef Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00
Wes Kocher 4e9f80ed2e Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Eric Rahm f82c0e7caf Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Birunthan Mohanathas 1c20df74c6 Bug 1166840 - Remove document argument from nsIClipboardHelper.copyString{,ToClipboard}. r=ehsan 2015-05-21 21:50:09 +01:00
Eric Rahm 3925a960aa Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Eric Rahm 4879ae86f4 Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Eric Rahm e1ce2b6323 Bug 1162673 - Part 1: Remove instances of #ifdef PR_LOGGING in layout. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-11 13:53:18 -07:00
Kartikaya Gupta 9d19536ed8 Bug 1156952 - Switch Fennec over to the "attached" widget model, so we get one nsWindow instead of two. r=snorp 2015-04-24 22:26:34 -04:00
Neil Deakin 5500eadc0e Bug 1058712, e10s, support for copy image command, r=ehsan,mconley 2015-04-21 20:09:14 -04:00
Mike Hommey b077d9624d Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Andrea Marchesini e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky 07d483677a Bug 1135764. Make sure XSLT transform results have a document timeline so things like transitions will work. r=smaug 2015-03-03 07:12:00 -05:00
Andrea Marchesini 2c4f63331f Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
Nicholas Nethercote 242708cf72 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight d3826daa16 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote d34f0301b8 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Jim Mathies 8250de3687 Bug 1077085 - Insure puppet widgets don't skip sending resize notifications to the view manager when the user navigates through history items. r=tn 2015-01-25 05:16:59 -06:00
Gijs Kruitbosch b714ba6ff5 Bug 1107771 - disabling beforeunload should only disable the dialog, not the event, r=bz 2014-12-05 10:31:30 -08:00
pchang 040f9d3add Bug 1090008 -Part 1 - Refactor the logic to dispatch selectionchange to TextDialog, r=roc 2014-11-28 05:35:00 +01:00
Carsten "Tomcat" Book aa7f18d14d merge mozilla-inbound to mozilla-central a=merge 2014-11-21 12:57:00 +01:00
Justin Dolske fbb361a8c1 Bug 1098123 - Add telemetry for onbeforeunload usage. r=jst 2014-11-20 14:50:01 -08:00
Karl Tomlinson ed15675b8b bug 1096132 rename UnscaledAppUnitsPerDevPixel() to AppUnitsPerDevPixelAtUnitFullZoom() r=tn
--HG--
extra : rebase_source : 220ede5d449a752c16064bb77905bc68af3df707
2014-11-14 00:53:02 +13:00
Ting-Yu Lin 41fb52c7e0 Bug 1094607 - Move scroll observer logic to SelectionCarets. r=roc 2014-11-05 22:00:00 +01:00
Jonathan Watt bf49eb7f25 Bug 651021 - Make nsRenderingContext a stack class. r=jrmuizel 2014-10-31 20:08:49 +00:00
Eric Rahm 8d715a7fe4 Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan 2014-10-08 13:17:32 -07:00
Wes Kocher 445e1466e9 Backed out 5 changesets (bug 806819) for WinXP test failures on a CLOSED TREE
Backed out changeset 009ae35b0c67 (bug 806819)
Backed out changeset 5a57f87f5061 (bug 806819)
Backed out changeset f06cd735b5b3 (bug 806819)
Backed out changeset e25a2a8d4af4 (bug 806819)
Backed out changeset 70a167982c3f (bug 806819)
2014-10-06 16:32:50 -07:00
Eric Rahm 80d2b8bba6 Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan
--HG--
extra : rebase_source : c96eea1c12ea8c19314393f0e8b4b57a4316a61d
2014-10-06 13:08:20 -07:00
Boris Zbarsky 14ff5707d7 Bug 1067504. Hook up print preview to our parent widget as needed, so it will actually paint. r=smaug 2014-09-15 14:15:15 -04:00
Mats Palmgren 1ae9903d62 Bug 739396, part 1 - Split a range (that are to be added to the Selection as a result of a user action) into multiple ranges that excludes any non-selectable (-moz-user-select:none) sub-trees. 2014-09-10 17:07:36 +00:00
Mats Palmgren 9ede471b64 Bug 739396, part 0 - Make nsDocumentViewer use mozilla::dom::Selection internally instead of nsISelection. 2014-09-10 17:07:36 +00:00
Ryan VanderMeulen 0e562f96b9 Backed out 3 changesets (bug 739396) for Mulet perma-fail on a CLOSED TREE.
Backed out changeset 299911e6983b (bug 739396)
Backed out changeset de11af3e0964 (bug 739396)
Backed out changeset e274cb276cc5 (bug 739396)
2014-09-10 12:21:58 -04:00
Mats Palmgren 4530d16e45 Bug 739396, part 1 - Split a range (that are to be added to the Selection as a result of a user action) into multiple ranges that excludes any non-selectable (-moz-user-select:none) sub-trees. 2014-09-10 13:07:43 +00:00
Mats Palmgren 63eddaffcd Bug 739396, part 0 - Make nsDocumentViewer use mozilla::dom::Selection internally instead of nsISelection. 2014-09-10 13:07:43 +00:00
Trevor Saunders d75ed5bf7f bug 1059490 - mark more classes MOZ_FINAL r=froydnj 2014-08-27 14:26:48 -04:00
C.J. Ku ad92a99a8a Bug 974242 - Registry and handle FullZoomChange chrome event in TabChild. r=tn, r=kats
--HG--
extra : rebase_source : 05a700f9071d30b87916ffa949acfed776f21f0c
2014-08-21 19:37:00 -04:00
Ehsan Akhgari 2b84010cb8 Bug 1048246 - Fix more bad implicit constructors in layout; r=roc
--HG--
extra : rebase_source : ed828993139bc70232508364a9f046e38b7d3e06
2014-08-07 19:48:38 -04:00
Olli Pettay bb5f6c0cd7 Bug 1031303 - mContext can be null when nsGlobalWindow::SetNewDocument is called, r=jst 2014-07-31 23:15:57 +03:00
Benoit Jacob c50ccf8dba Bug 1044658 - 5/6 - remove asWeakPtr - r=froydnj 2014-07-30 15:52:05 -04:00
Morris Tseng bdc2515786 Bug 987040 - Part 1: Implement mozbrowserselectionchange. r=vingtetun,ehsan,bugs. sr=bz 2014-07-28 01:21:00 +02:00
Jonathan Kew ce9cbe4216 bug 1031241 pt 1 - Rename Get{Min,Pref}Width to Get{Min,Pref}ISize throughout layout. r=dbaron,smontagu 2014-07-24 18:03:25 +01:00
Trevor Saunders dfb8d4ea04 bug 1036694 - merge nsIMarkupDocumentViewer into nsIContentViewer r=smaug 2014-07-09 17:27:49 -04:00
Olli Pettay 54b9ed8751 Bug 1018265 - iframe containing Javascript alert() dialog fails after leaving and returning to page, r=bz
--HG--
extra : rebase_source : eee7ae5e4f980e580004b9149a2b1973873e03d2
2014-07-11 22:09:08 +03:00
Benoit Jacob e1b7dbca34 Bug 1028588 - Fix dangerous public destructors in layout/ - r=dbaron 2014-06-23 18:40:01 -04:00
Ms2ger bad4ca4d29 Bug 1022855 - Rename nsCSSStyleSheet to mozilla::CSSStyleSheet; r=heycam
--HG--
rename : layout/style/nsCSSStyleSheet.cpp => layout/style/CSSStyleSheet.cpp
rename : layout/style/nsCSSStyleSheet.h => layout/style/CSSStyleSheet.h
2014-06-20 12:32:49 +02:00
Ms2ger 451c7edf83 Backout revision 308e51eae10c for build bustage.
--HG--
rename : layout/style/CSSStyleSheet.cpp => layout/style/nsCSSStyleSheet.cpp
rename : layout/style/CSSStyleSheet.h => layout/style/nsCSSStyleSheet.h
2014-06-20 13:00:08 +02:00
Ms2ger 9fb7f507f0 Bug 1022855 - Rename nsCSSStyleSheet to mozilla::CSSStyleSheet; r=heycam
--HG--
rename : layout/style/nsCSSStyleSheet.cpp => layout/style/CSSStyleSheet.cpp
rename : layout/style/nsCSSStyleSheet.h => layout/style/CSSStyleSheet.h
2014-06-20 12:32:49 +02:00
Xidorn Quan a711bc7355 Bug 966166 - Part 4: Rewrite some builtin counter styles. r=dbaron 2014-06-11 21:12:00 -04:00
Ms2ger c52225d272 Bug 1018778 - Part b: use more early returns in nsDocumentViewer::SyncParentSubDocMap; r=roc 2014-06-06 10:06:25 +02:00
Ms2ger 373c13b4dd Bug 1018778 - Part a: use nsPIDOMWindow::GetDoc in nsDocumentViewer::SyncParentSubDocMap; r=roc 2014-06-06 10:06:25 +02:00
Morris Tseng 5d9e036945 Bug 987718 - Part 6: Hooks up SelectionCaret; r=roc 2014-06-04 22:58:00 +02:00
Trevor Saunders a7a065cd75 bug 966084 - don't QI the result of win->GetFrameElementInternal() when its not required r=smaug 2014-01-23 16:14:29 -05:00
Trevor Saunders 78966cf36b bug 966059 - add nsIDocShell::GetWindow and GetDocument r=smaug 2014-01-09 21:03:47 -05:00
Mats Palmgren 273ad272f1 Bug 508665 - part 3, Change GetContentInsertionFrame() to return a nsContainerFrame*, and return null for leaf frames. Deal with GetContentInsertionFrame() returning null in a couple of places. r=roc 2014-05-24 22:20:39 +00:00
Jonathan Watt 7792c4a45f Bug 1011806 - Stop loading user-agent and user style sheets for SVG-as-an-image (the main UA sheets svg.css, html.css, etc. will still load on demand). r=bz CLOSED TREE 2014-05-24 21:37:48 +01:00
Jonathan Watt ec734706e6 Bug 1013936, part 2 - Only load the html.css UA style sheet on-demand for SVG documents. r=bz CLOSED TREE 2014-05-24 20:29:11 +01:00
Jonathan Watt 74572624da Bug 1008455 - Avoid loading the xul.css UA style sheet when possible. r=bz CLOSED TREE
--HG--
rename : toolkit/content/xul.css => toolkit/content/minimal-xul.css
2014-05-24 19:51:06 +01:00
Boris Zbarsky 1c698d2d65 Bug 999456. Page load events should not be cancelable. r=smaug 2014-05-22 00:23:51 -04:00
Karl Tomlinson a3ba9b4cb5 backout bug 1096132 for Mac build failure
--HG--
extra : rebase_source : 6994fe50e8fb1a4f89298e1b9ad1c714acdfe39e
2014-11-12 16:02:34 +13:00
Karl Tomlinson 4b187d31fa bug 1096132 rename UnscaledAppUnitsPerDevPixel() to AppUnitsPerDevPixelAtUnitFullZoom() r=tn
--HG--
extra : rebase_source : 113b249f2cb6f1619e0b1a495655726b5100038b
2014-11-08 17:48:14 +13:00
Ms2ger d25ec45e5b Bug 1004202 - Stop calling PrepareToStartLoad in nsDocumentViewer::LoadStart; r=smaug
Before bug 968805, none of the callers would reach this branch. The callers in
nsContentDLF.cpp call LoadStart immediately after constructing the
nsDocumentViewer, so they hit the !mDocument case, and the comparison was
always false for the caller in nsHTMLDocument::Open, as it passed an
nsIHTMLDocument pointer, so the nsISupports pointers being compared were
always different. (XPCOM rules require SameCOMIdentity in this case, to avoid
exactly this issue.)

I tested that the removed code was never reached after a backout of bug 968805.
2014-05-03 09:34:00 +02:00
Birunthan Mohanathas 5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Daniel Holbert 61204d781b Bug 996351: Rename nsPresShell::GetReferenceRenderingContext() to CreateReferenceRenderingContext(), to reduce implication of fallibility. r=roc 2014-04-14 21:30:25 -07:00
Tim Taubert 3f87b82238 Bug 616853 - Make the beforeunload prompt tab-modal r=dao,bz 2014-04-02 08:21:14 +02:00
Neil Deakin 382114ad8c Bug 982734, make nsIWidget::GetWindowType and nsIWidget::GetZIndex return their values, remove some unused colour-related widget methods, r=tn 2014-03-19 12:48:08 -04:00
Masayuki Nakano 3234ceea19 Bug 983049 part.5 Rename nsEventDispatcher to mozilla::EventDispatcher r=smaug
--HG--
rename : dom/events/nsEventDispatcher.cpp => dom/events/EventDispatcher.cpp
rename : dom/events/nsEventDispatcher.h => dom/events/EventDispatcher.h
2014-03-18 13:48:21 +09:00
Kearwood (Kip) Gilbert f32b4e5fab Bug 687297 - The per-presentation base minimum font size is now propagated without being max’ed with the language-specific global minimum font size preference, r=dbaron
A separate accessor has been added to nsPresContext to enable TransferZoomLevels and nsDocumentViewer::GetMinFontSize to access the minimum font size that has not been max’ed against the language specific minimum font size preset.

nsPresContext::mMinFontSize, its getter, and its setter have been renamed to more clearly distinguish them from minFontSize used elsewhere.
2014-02-25 11:07:47 -08:00
Carsten "Tomcat" Book ce0a2a311e Backed out changeset 27f21343ffe5 (bug 687297) for mochitest-1 perma fail 2014-02-27 10:21:55 +01:00
Kearwood (Kip) Gilbert 8a83c4f0fb Bug 687297 - The per-presentation base minimum font size is now propagated without being max’ed with the language-specific global minimum font size preference, r=dbaron
A separate accessor has been added to nsPresContext to enable TransferZoomLevels and nsDocumentViewer::GetMinFontSize to access the minimum font size that has not been max’ed against the language specific minimum font size preset.

nsPresContext::mMinFontSize, its getter, and its setter have been renamed to more clearly distinguish them from minFontSize used elsewhere.
2014-02-25 11:07:47 -08:00
Blake Kaplan 6597d2720f Bug 956704 - Introduce a mechanism for only suppressing animation frames. r=smaug 2014-02-26 15:58:21 -08:00
Jonathan Watt 724f52955d Bug 974430 - Put the |input[type=number]| rule in forms.css into a separate sheet so we can make it respect the dom.forms.number pref. r=dbaron
--HG--
extra : rebase_source : 450ffd1ca743868d75dda6ce0f89078216934e79
2014-02-26 12:26:14 +00:00
Arnaud Sourioux a127266e74 Bug 974687 - Part 1: Add about 300 MOZ_OVERRIDE in layout/. r=dholbert 2014-02-24 09:41:56 -05:00
Olli Pettay 3bff68ce19 Bug 969671 - Warn about use of sync XHR in the main thread, r=sicking/ehsan
--HG--
extra : rebase_source : 4af00da28a4e8b6cc1209d9a5e098d9914286deb
2014-02-10 20:35:25 +02:00
Ms2ger 6e7f5b1c60 Bug 968805 - Pass nsIDocument to nsIContentViewer.loadStart; r=smaug 2014-02-09 09:04:40 +01:00
Ms2ger f29b03ad4c Bug 969035 - Outparamdel NS_NewContentViewer; r=bz 2014-02-09 09:04:40 +01:00
Daniel Holbert bf057ca935 Bug 967871: Wrap nsDocumentViewer.cpp's sPrintOptionsContractID variable in #ifdef DEBUG, to fix 'unused variable' build warning in opt builds. r=mats 2014-02-05 18:39:56 -08:00
Mats Palmgren 15cbe0028f Bug 946929 - Part 1, Don't schedule paint related events in a detached pres context. r=roc 2014-02-03 23:47:57 +00:00
Oskar Eisemuth 46811b8ec7 Bug 844473 - Honor mozdisallowselectionprint and moznomarginboxes in print preview and use child document. r=roc 2014-02-02 17:17:28 +01:00
Chris Peterson f6f08af0a0 Bug 965693 - Remove annoying "Printing XUL documents is not supported" error dialog. r=roc 2014-01-29 20:40:34 -08:00
Oskar Eisemuth 307f35b892 Bug 844473: Honor mozdisallowselectionprint and moznomarginboxes in print preview as well as print. r=roc 2014-01-24 17:18:54 -05:00
Ms2ger 4f1e9b830b Bug 956015 - Add an infallible nsIDocShellTreeItem::ItemType; r=bz 2014-01-20 08:58:26 +01:00
Tom Schuster e939a46cb8 Bug 691614 - Make content zooming work with e10s Firefox. r=felipe 2014-01-13 18:36:26 +01:00
Gijs Kruitbosch 0daa541342 Bug 956524
--HG--
extra : rebase_source : 1bfe727a03a06a90a49c7002a9d2a71bc17acbfe
2014-01-16 16:57:13 +01:00
Trevor Saunders ff0491aef6 bug 331376 - merge nsIDocShellTreeNode into nsIDocShellTreeItem r=smaug 2014-01-06 17:34:15 -05:00
Neil Rashbrook a1b1fdf915 Bug 952087 Anchor scroll fails if the anchor is created between DOMContentLoaded and onload r=smaug 2014-01-10 08:35:46 +00:00
Ryan VanderMeulen 5b52fc0a06 Backed out changeset d1b5408d946f (bug 952087) for Android reftest failures. 2014-01-07 15:46:15 -05:00
Neil Rashbrook a0de957770 Bug 952087 Anchor scroll fails if the anchor is created between DOMContentLoaded and onload r=smaug 2014-01-07 18:34:21 +00:00
Gijs Kruitbosch 881aade0e7 Bug 636374 - don't show multiple onbeforeunload prompts, r=bz 2013-12-18 18:36:12 +00:00
Ehsan Akhgari 1b83407ce9 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Scott Johnson a6b8d5be6d Bug 878935, Part 2: Pause painting while reflow-on-zoom is in progress to provide a better user experience. [r=kats,dbaron] 2013-10-01 14:52:13 -05:00
Carsten "Tomcat" Book 8ba68170dd Backed out changeset 70befb4cf2f4 (bug 878935) for mochitest -4 and bc test failures 2013-12-20 12:42:54 +01:00
Scott Johnson 4f50d60904 Bug 878935, Part 2: Pause painting while reflow-on-zoom is in progress to provide a better user experience. [r=kats,dbaron] 2013-10-01 14:52:13 -05:00
Brad Lassey bdfab24d3e Backed out changeset 93d8c8703f4d 2013-12-19 17:49:05 -05:00
Scott Johnson 08a18e025e Bug 878935, Part 2: Pause painting while reflow-on-zoom is in progress to provide a better user experience. r=kats,dbaron
--HG--
extra : rebase_source : 7eb13d00208cef8e696ec6e9a1cdc2739a994d9a
2013-10-01 14:52:13 -05:00
Gijs Kruitbosch c9bcd44acf Bug 950336 - add a pref to disable onbeforeunload, r=bz
--HG--
extra : rebase_source : 37eaa4764a662837ae12354b9cde0e2d17a4c90d
2013-12-18 14:56:40 +00:00
Trevor Saunders ae517971ad bug 947022 - type nsIPresShell::mForwardingContainer and nsPresContext::mContainer r=bz 2013-11-20 14:18:25 -05:00
Henri Sivonen c007e66c29 Bug 946647 - Remove bidi options from nsIMarkupDocumentViewer as dead code. r=smontagu. 2013-12-11 15:47:50 +02:00
Trevor Saunders 2505274530 bug 931399 - shutdown DocAccessibles in nsDocumentViewer::Destroy r=bz 2013-12-06 16:03:40 -05:00
Irakli Gozalishvili e5876e23e6 Bug 843910 - Expose document state changes via observer service r=mrbkap 2013-12-05 15:10:06 -08:00
Mats Palmgren 4be7999a3e Bug 507728 - Initialize the pres-shell/context with the correct width/height with zooming taken into account. r=bz 2013-12-05 04:37:03 +00:00
John Daggett 5a92bd2828 Bug 934710 - log text perf metrics at reflow end, load complete and presshell teardown. r=heycam 2013-11-25 14:00:00 +09:00
Trevor Saunders c5ae45823c bug 939049 - staticly type nsIDocument::mDocumentContainer and nsDocumentViewerContainer::mContainer r=smaug 2013-11-15 02:12:43 -05:00
Dongie Agnir efc93e36c8 Bug 940825 - Initialize dialogsWereEnabled to false. r=roc 2013-11-20 09:40:32 -05:00
Trevor Saunders 19d185018b revert bug 931399 to see if it helps with bug 883059 at all 2013-11-18 12:31:56 -05:00
Trevor Saunders 0bfdc15f97 bug 931399 - shutdown DocAccessible's when the related docshell is destroyed r=bz 2013-10-29 17:22:41 -04:00
Wes Kocher af78dbf4a5 Backed out changeset 6a613a7288e1 (bug 931399) for breaking the build on at least Windows on a CLOSED TREE 2013-10-29 16:17:07 -07:00
Trevor Saunders 239027e36b bug 931399 - shutdown DocAccessible's when the related docshell is destroyed r=bz
When we get to PresShell::Destroy the pres shell and document have already
nulled out their poitners to the docshell which DocAccessible::Shutdown()
needs to remove the document from the command observer.
2013-10-29 17:22:41 -04:00
Henri Sivonen eb050aeb55 Bug 871161 - Stop inheriting charset where other browsers do not inherit it. r=bzbarsky. 2013-10-16 04:46:10 +03:00
Tim Abraldes 1047bbdaba bug 856977. Alert should not be possible from beforeunload. r=bbondy,bz 2013-10-08 14:00:12 -07:00
Birunthan Mohanathas e3709383ec Bug 784739 - Switch from NULL to nullptr in layout/; r=ehsan
--HG--
extra : rebase_source : 0d0d9e11be9d39e4457bddd0bac7e19a50b91b0b
2013-10-08 14:47:21 -04:00
Scott Johnson 1d75885366 Backout 6a5549d97d8d (bug 878935) for missing IID changes. 2013-10-02 11:36:44 -05:00
Masayuki Nakano 5dbc2a60e4 Bug 920377 part.31 Get rid of nsEvent r=roc 2013-10-02 12:46:04 +09:00
Scott Johnson b0b7d88ca3 Bug 878935: Pause painting while reflow-on-zoom is in progress to provide a better user experience. [r=kats] 2013-10-01 14:52:13 -05:00
Masayuki Nakano f90a5b1125 Bug 912956 part.18 Remove nsGUIEvent.h r=roc 2013-09-25 20:21:22 +09:00
Mark Banner 2b8e6d47e8 Bug 909870 nsIContentViewerFile::printWithParent is unused. r=bz 2013-08-28 08:28:03 +01:00
Ehsan Akhgari 2621b190f1 Bug 906790 - Minimize layout/base #includes; r=roc 2013-08-19 18:55:18 -04:00
Neil Deakin 8e1b7d6683 Bug 894736, pass clipboard type to data transfer so that the correct clipboard is used when pasting, r=ehsan 2013-08-07 14:52:38 -04:00
Tim Abraldes cc4c6104ab bug 864247. If PermitUnload is called while another PermitUnload is being processed, simply allow the unload to happen. r=roc 2013-08-05 23:29:55 -07:00
Graeme McCutcheon 5d31223735 Bug 819930 - Part 1: Implement an API for emulating CSS media types. r=dbaron 2013-07-17 16:39:19 +01:00
Matt Woodrow 7b0c403cca Bug 873944 - Remove unecessarily callers to nsView::Invalidate. r=roc 2013-06-18 19:59:00 +12:00
Trevor Saunders bf4396ca60 bug 856779 - outparamdel nsIDocument::CreatePresShell() r=dholbert 2013-04-01 06:26:37 -04:00
Scott Johnson 621376f7f2 Bug 861106: Add null check for mDocument in SetTextZoom, SetFullZoom, and SetMinFontSize to prevent crash on tab close. [r=blassey] 2013-05-01 17:21:47 -05:00
David Zbarsky 720289e06b Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
David Zbarsky 9f8b887ebf [Bug 862129] Cleanup nsDocument r=Ms2ger 2013-04-19 04:49:20 -04:00
Ryan VanderMeulen 0048151f1e Bug 807442 - Make assertion non-fatal. r=hsivonen 2013-03-28 12:13:11 -04:00
Jon Coppeard 3dcda9b143 Bug 849273 - Investigate splitting the js and JS namespaces r=terrence
--HG--
extra : rebase_source : 2b131d0177f02e5f0e89398545481fcacbfde00f
2013-03-19 10:35:41 +00:00
Henri Sivonen a2fbf951cd Bug 844461 - Perform alias resolution on the fallback encoding pref value. r=smontagu. 2013-03-04 20:09:11 +02:00
Olli Pettay 87022e0fa8 Bug 840263, make sure to notify the right navigation timing about page load, r=hsivonen
--HG--
extra : rebase_source : fedfbc41e787117e941fd4d5c12807002dfbe64a
2013-02-20 20:15:21 +02:00
Julian Viereck f6e00a6a19 Bug 743252 - Implement moznomarginboxes attribute. r=roc 2013-02-20 10:50:21 -05:00
Trevor Saunders c4d231052a bug 841436 - remove nolonger needed qi from nsIDocShell to nsIDocShellTreeItem r=bz 2013-02-12 17:02:51 -05:00
Cameron McCormack 87fc6e7ab2 Bug 830278 - Allow disabling of selecting printing with mozdisallowselectionprint on the document element. r=roc 2013-01-29 15:59:55 +11:00
Mats Palmgren 0f5fce1da3 Bug 830236 (follow-up) - Keep the print engine when printing finished inside Print Preview. Make nsPrintEngine::DestroyPrintingData re-entrancy safe. r=cam 2013-01-20 13:40:09 +01:00
Mats Palmgren b48fe04ebd Bug 830236 - Add re-entrancy protection in a few places to avoid destroying things twice. r=cam 2013-01-15 21:47:10 +01:00
Mats Palmgren 1036dbd90c Bug 823041 - Destroy the pres shell before the document. r=roc 2012-12-09 23:31:54 +01:00
Robert O'Callahan 88df3e818e Bug 826632. Part 3: Create nsViewManagers directly instead of using XPCOM. r=tnikkel
--HG--
extra : rebase_source : f6286a4bcffa2f80bd9d444f7c04005644b8cb2f
2013-01-05 16:12:49 +13:00
Robert O'Callahan aba980bcb4 Bug 826632. Part 2: Use nsRefPtr<nsViewManager> instead of nsCOMPtr. r=tnikkel
--HG--
rename : view/public/nsIViewManager.h => view/public/nsViewManager.h
extra : rebase_source : 7245e7c988a208471d8c860449ff7b06c29a4a52
2013-01-05 16:12:42 +13:00
Robert O'Callahan 970988bc3c Bug 826632. Part 1: Merge nsIViewManager into nsViewManager. r=tnikkel
--HG--
rename : view/public/nsIViewManager.h => view/public/nsViewManager.h
extra : rebase_source : d00947c925b17f860fcdc0e12b1ec3cc31b7c630
2013-01-05 16:12:24 +13:00
Phil Ringnalda d44dff5096 Back out 5e76dfb1d426 (bug 826635) and 0df74b1a4543:20df426b6111 (bug 826632) for bustage
CLOSED TREE
2013-01-04 21:30:14 -08:00
Robert O'Callahan e25c1519f1 Bug 826632. Part 3: Create nsViewManagers directly instead of using XPCOM. r=tnikkel
--HG--
extra : rebase_source : f85da22ada991035fbb7116a993898dd0801663d
2013-01-05 16:12:49 +13:00
Robert O'Callahan 4464dc950d Bug 826632. Part 2: Use nsRefPtr<nsViewManager> instead of nsCOMPtr. r=tnikkel
--HG--
rename : view/public/nsIViewManager.h => view/public/nsViewManager.h
extra : rebase_source : c9eabd54bb43d711a8c24222620abfdde674a1f7
2013-01-05 16:12:42 +13:00
Robert O'Callahan 0bda13504b Bug 826632. Part 1: Merge nsIViewManager into nsViewManager. r=tnikkel
--HG--
rename : view/public/nsIViewManager.h => view/public/nsViewManager.h
extra : rebase_source : 85587555e1f202809cd39fe899570644e6ca4eb3
2013-01-05 16:12:24 +13:00
Trevor Saunders 09f3b656b4 bug 825419 - outparamdel nsIDocShell::GetPresShell() r=smaug 2012-12-28 20:56:42 -05:00
Robert O'Callahan 943cb99eff Bug 825866. Part 8: Mass-rename of nsIView to nsView. r=tnikkel
This was autogenerated by basically replacing all occurrences of the word "nsIView" with nsView.

--HG--
rename : view/public/nsIView.h => view/public/nsView.h
2013-01-04 02:23:11 +13:00
Kyle Huey cad48adc68 Bug 696591: Properly handle blocking databases from pages that are entering the bfcache. r=bent,bz 2012-12-20 06:18:03 -08:00
Masayuki Nakano bc637323fa Bug 813445 part.5 Remove NS_EVENT_FLAG_NO_DEFAULT and NS_EVENT_FLAG_NO_DEFAULT_CALLED_IN_CONTENT r=smaug 2012-12-16 10:26:04 +09:00
Masayuki Nakano 4581677d83 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
Scott Johnson 948f478584 Bug 812372: Rename DocumentViewerImpl to nsDocumentViewer for consistency. [r=ehsan] 2012-11-28 18:26:39 -06:00
Mounir Lamouri f3e9f0a56b Bug 764240 - Clamp window.sizeToContent() the same way we clamp other resizing methods. r=bz 2012-11-19 23:18:21 +00:00
Phil Ringnalda 9cc19a4801 Back out 204665ad4a24 (bug 764240) for Android M4 failures 2012-11-19 14:40:32 -08:00
Mounir Lamouri 9405ab0e71 Bug 764240 - Clamp window.sizeToContent() the same way we clamp other resizing methods. r=bz 2012-11-19 18:15:23 +00:00
Robert O'Callahan 6792d95bd3 Bug 811301. Part 3: Cleanup presshell code now that we don't do special state save/restore for the root scroll frame. r=mats
Scrolling is never synchronous now, so we don't need to block scripts
or reflows when restoring the scroll position.
2012-11-14 22:40:28 -08:00
Felipe Gomes d158dec950 Bug 803255. Ensure previous document viewer is cleared when creating a new one to avoid leaking the old one. r=bz 2012-11-12 13:00:19 -08:00
Mounir Lamouri 84d0250f94 Bug 809425 - Fix GCC 4.7 warnings in nsDocumentViewer.cpp. r=bz 2012-11-07 16:51:32 +00:00
Nathan Froyd 4c61ef9ec5 Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Karl Tomlinson a6c5033f1a b=793501 attach DocumentViewer to top GTK widget r=roc
--HG--
extra : transplant_source : F%94%EC%07%23%7B2L%BCr%28%C5%088%06%FD%CD%9A%BAe
2012-10-23 11:46:45 +13:00
Karl Tomlinson 257facb956 b=793501 don't resize toplevel window in response to resized notification r=bz
--HG--
extra : transplant_source : U%3E%D3b%3D%AE0%0D%C7%8D%27%F5a%D4%F6%2C%27%EE%EA%A1
2012-10-23 11:32:24 +13:00
Gabor Krizsanits 5d3a0e3c38 Bug 676054: part3: nsStyleSheetService::GetInstance. r=bz 2012-10-16 21:45:56 +02:00
Matt Woodrow cee1aa3599 Bug 539356 - Part 9c - Remove old invalidation code. r=bz 2012-08-29 17:39:31 +12:00
Ed Morley aba3a8f5ef Revert mozilla-inbound to e4dd1fa6d222 for crashes and test failures on a CLOSED TREE 2012-09-27 16:34:46 +01:00
Matt Woodrow 4d096475d2 Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt 2012-08-29 17:38:58 +12:00
Olli Pettay 1221b03e54 Bug 790856, ensure bounds on the previous viewer, r=bz 2012-09-21 10:38:14 +03:00
Julian Viereck 5c87bd7c7a Bug 468568. Main patch: support downloading fonts in printing and print preview. r=smaug
--HG--
extra : rebase_source : 2fbaef2896d218e6900449c9510fc867419eac30
2012-09-04 16:29:27 +03:00
Robert O'Callahan 4e3c26c40c Bug 468568. Part 0.8: Remove invalid assertion about matching containers. r=smaug
--HG--
extra : rebase_source : 6e9bb1fcf977dce8c3dc5fd807a20bfc06e625cb
2012-09-17 17:10:03 +12:00
Ehsan Akhgari 8cc30b88b2 Bug 792502 - Kill the FunctionTimer code; r=vlad 2012-09-19 16:59:38 -04:00
L. David Baron 6521fcaca1 Rename nsIPresShell::InitialReflow to Initialize since it doesn't actually perform reflow. (Bug 788956) r=roc 2012-09-06 21:16:09 -07:00
Scott Johnson 3ea152f05b Bug 780258: Add an interface to set the maximum line box width, accessible from chrome script. [r=dbaron] 2012-09-05 16:39:34 -05:00
Brendan Dahl 4478101696 Bug 745025 - Part 2 - Adds layout/printing support for mozPrintCallback. r=roc 2012-08-30 17:24:35 -07:00
Ehsan Akhgari e368dc9c85 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
Neil Deakin 953592e2fe Bug 391834, don't allow prompts in beforeunload, unload and pagehide events,r=smaug,patch mostly by gavin 2012-08-13 15:05:34 -04:00
Ehsan Akhgari 3ad40dbf10 Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor 587e4453db Bug 777292 - Don't use |= on nsresult; r=ehsan 2012-07-27 17:03:08 +03:00
Henri Sivonen d5ae090db7 Bug 775467 - Make readyState progress through all states without duplicate transitions. r=bzbarsky. 2012-07-27 16:35:09 +03:00
Geoff Lankow 5fc630a647 Bug 230959 - Inconsistent extra 1 pixel width of XUL window; r=Neil 2011-09-07 22:14:04 +12:00
Ehsan Akhgari cf18ee9122 Backout changeset f568fc280fb0 (bug 539356) because of performance and correctness regressions 2012-07-03 20:24:55 -04:00
Ms2ger 2b6c403037 Bug 767790 - Remove nsIHTMLDocument::{Get,Set}IsFrameset; r=mounir 2012-07-02 08:22:37 +02:00
Matt Woodrow 31125260ee Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt 2012-06-30 15:06:11 +12:00
Ehsan Akhgari f4b598bf08 Bug 722872 - Part 1: Add nsITransferable::Init(nsILoadContext*), enforce that it's called in debug builds, and add nsIDOMDocument* arguments to nsIClipboardHelper methods; r=roc
This patch does the following:

* It adds nsITransferable::Init(nsILoadContext*).  The load context
  might be null, which means that the transferable is non-private, but
  if it's non-null, we extract the boolean value for the privacy mode
  and store it in the transferable.
* It adds checks in debug builds to make sure that Init is always
  called, in form of fatal assertions.
* It adds nsIDOMDocument* agruments to nsIClipboardHelper methods which
  represent the document that the string is coming from.
  nsIClipboardHelper implementation internally gets the nsILoadContext
  from that and passes it on to the transferable upon creation.  The
  reason that I did this was that nsIClipboardHelper is supposed to be a
  high-level helper, and in most of its call sites, we have easy access
  to a document object.
* It modifies all of the call sites of the above interfaces according to
  this change.
* It adds a GetLoadContext helper to nsIDocument to help with changing
  the call sites.
2012-04-16 22:14:01 -04:00
Jonathan Watt 970e60a384 Bug 767388 - Kill NS_DEBUG. r=bz.
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Ryan VanderMeulen 5f2a19ee6e Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
Ryan VanderMeulen 6d6c4efbab Backout the bug 754202 backout due to orange. 2012-06-10 19:37:47 -04:00
Olli Pettay e160cfea86 Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst 2012-06-10 21:14:30 +03:00
Ms2ger b63367bd67 Bug 760047 - Don't handle a null aDocument in nsGlobalWindow::SetNewDocument; r=mounir 2012-06-06 09:36:58 +02:00
Kartikaya Gupta 82d4333178 Bug 758361 - Move the before-first-paint event so it doesn't get improperly triggered on a plugin codepath. r=bz 2012-06-04 12:26:03 -04:00
Alexander Surkov 2a14b57426 Bug 757670 - make nsIPresShell::GetLinkLocation faster, r=bz, tbsaunde 2012-05-24 15:57:16 +09:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
L. David Baron b051b7aaa9 Expose DocumentViewerImpl::CallChildren with an API that fills an array. (Bug 747231, patch 3) r=roc
--HG--
extra : transplant_source : %FFc%40%AE%D6%22%40%1D%7F%F7%A8%BC%1A%ECG%98G%DCFf
2012-05-05 15:25:45 +02:00
Olli Pettay c7a649ab35 Bug 641821, MutationObserver, r=sicking
--HG--
extra : rebase_source : a680c883b22976edf38eea23fb516215e081084f
2012-03-31 09:30:13 -07:00
Henri Sivonen 31192f4b01 Bug 737417 part 1 - Split charset source constants out of nsIParser.h. r=smaug. 2012-03-22 16:42:42 +02:00
Adam Dane [:hobophobe] a4e77c0d40 Bug 720126 - Update scroll API to use ScrollAxis parameters (where and when). r=roc 2012-03-19 21:09:50 -05:00
Benoit Girard dc6ea71b7e Merge mc->Maple 2012-03-13 11:05:28 -04:00
Kartikaya Gupta 676a95e99e Bug 732564 - Add a before-first-paint event that fires before the first paint of the new document. r=Cwiiis, bz 2012-03-12 12:03:38 -04:00
Benoit Girard 73a287f0ea Restore merge changeset 39a3044823b0, regression fixed upstream in mc 2012-03-05 13:09:05 -05:00