diff --git a/accessible/generic/Accessible.cpp b/accessible/generic/Accessible.cpp index e57ae93933..4476ec33e6 100644 --- a/accessible/generic/Accessible.cpp +++ b/accessible/generic/Accessible.cpp @@ -535,7 +535,7 @@ Accessible::ChildAtPoint(int32_t aX, int32_t aY, nsIWidget* rootWidget = rootFrame->GetView()->GetNearestWidget(nullptr); NS_ENSURE_TRUE(rootWidget, nullptr); - nsIntRect rootRect; + LayoutDeviceIntRect rootRect; rootWidget->GetScreenBounds(rootRect); WidgetMouseEvent dummyEvent(true, eMouseMove, rootWidget, diff --git a/accessible/generic/HyperTextAccessible.cpp b/accessible/generic/HyperTextAccessible.cpp index b4ec2337f6..df992c2751 100644 --- a/accessible/generic/HyperTextAccessible.cpp +++ b/accessible/generic/HyperTextAccessible.cpp @@ -1285,34 +1285,34 @@ HyperTextAccessible::CaretLineNumber() return lineNumber; } -nsIntRect +LayoutDeviceIntRect HyperTextAccessible::GetCaretRect(nsIWidget** aWidget) { *aWidget = nullptr; RefPtr caret = mDoc->PresShell()->GetCaret(); - NS_ENSURE_TRUE(caret, nsIntRect()); + NS_ENSURE_TRUE(caret, LayoutDeviceIntRect()); bool isVisible = caret->IsVisible(); if (!isVisible) - return nsIntRect(); + return LayoutDeviceIntRect(); nsRect rect; nsIFrame* frame = caret->GetGeometry(&rect); if (!frame || rect.IsEmpty()) - return nsIntRect(); + return LayoutDeviceIntRect(); nsPoint offset; // Offset from widget origin to the frame origin, which includes chrome // on the widget. *aWidget = frame->GetNearestWidget(offset); - NS_ENSURE_TRUE(*aWidget, nsIntRect()); + NS_ENSURE_TRUE(*aWidget, LayoutDeviceIntRect()); rect.MoveBy(offset); - nsIntRect caretRect; - caretRect = rect.ToOutsidePixels(frame->PresContext()->AppUnitsPerDevPixel()); + LayoutDeviceIntRect caretRect = LayoutDeviceIntRect::FromUnknownRect( + rect.ToOutsidePixels(frame->PresContext()->AppUnitsPerDevPixel())); // ((content screen origin) - (content offset in the widget)) = widget origin on the screen - caretRect.MoveBy((*aWidget)->WidgetToScreenOffsetUntyped() - (*aWidget)->GetClientOffset()); + caretRect.MoveBy((*aWidget)->WidgetToScreenOffset() - (*aWidget)->GetClientOffset()); // Correct for character size, so that caret always matches the size of // the character. This is important for font size transitions, and is diff --git a/accessible/generic/HyperTextAccessible.h b/accessible/generic/HyperTextAccessible.h index 76807178fb..5b5251fa66 100644 --- a/accessible/generic/HyperTextAccessible.h +++ b/accessible/generic/HyperTextAccessible.h @@ -331,7 +331,7 @@ public: * @param [out] the widget containing the caret * @return the caret rect */ - nsIntRect GetCaretRect(nsIWidget** aWidget); + mozilla::LayoutDeviceIntRect GetCaretRect(nsIWidget** aWidget); /** * Return selected regions count within the accessible. diff --git a/accessible/windows/msaa/AccessibleWrap.cpp b/accessible/windows/msaa/AccessibleWrap.cpp index 978f7ed602..0155ab6502 100644 --- a/accessible/windows/msaa/AccessibleWrap.cpp +++ b/accessible/windows/msaa/AccessibleWrap.cpp @@ -1378,7 +1378,7 @@ AccessibleWrap::UpdateSystemCaretFor(Accessible* aAccessible) return; nsIWidget* widget = nullptr; - nsIntRect caretRect = text->GetCaretRect(&widget); + LayoutDeviceIntRect caretRect = text->GetCaretRect(&widget); HWND caretWnd; if (caretRect.IsEmpty() || !(caretWnd = (HWND)widget->GetNativeData(NS_NATIVE_WINDOW))) { return; diff --git a/browser/base/content/sync/aboutSyncTabs.js b/browser/base/content/sync/aboutSyncTabs.js index 535c43e561..0c72ce6fb5 100644 --- a/browser/base/content/sync/aboutSyncTabs.js +++ b/browser/base/content/sync/aboutSyncTabs.js @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -const Cu = Components.utils; +var Cu = Components.utils; Cu.import("resource://services-common/utils.js"); Cu.import("resource://services-sync/main.js"); diff --git a/browser/base/jar.mn b/browser/base/jar.mn index fb2207ac08..99afe0a513 100644 --- a/browser/base/jar.mn +++ b/browser/base/jar.mn @@ -81,7 +81,7 @@ browser.jar: content/browser/pageinfo/security.js (content/pageinfo/security.js) #ifdef MOZ_SERVICES_SYNC content/browser/sync/aboutSyncTabs.xul (content/sync/aboutSyncTabs.xul) - content/browser/sync/aboutSyncTabs.js (content/sync/aboutSyncTabs.js) +* content/browser/sync/aboutSyncTabs.js (content/sync/aboutSyncTabs.js) content/browser/sync/aboutSyncTabs.css (content/sync/aboutSyncTabs.css) content/browser/sync/aboutSyncTabs-bindings.xml (content/sync/aboutSyncTabs-bindings.xml) content/browser/sync/setup.xul (content/sync/setup.xul) diff --git a/browser/components/moz.build b/browser/components/moz.build index c87b6330af..3f92e577cb 100644 --- a/browser/components/moz.build +++ b/browser/components/moz.build @@ -11,6 +11,7 @@ DIRS += [ 'downloads', 'feeds', 'fuel', + 'migration', 'places', 'preferences', 'privatebrowsing', @@ -18,7 +19,6 @@ DIRS += [ 'sessionstore', 'shell', 'selfsupport', - 'migration', ] if CONFIG['MOZ_BROWSER_STATUSBAR']: diff --git a/browser/themes/linux/browser.css b/browser/themes/linux/browser.css index e2e3b52a23..6171240402 100644 --- a/browser/themes/linux/browser.css +++ b/browser/themes/linux/browser.css @@ -937,9 +937,6 @@ toolbar[iconsize="small"] #webrtc-status-button { .urlbar-icon { cursor: pointer; padding: 0 3px; - /* 16x16 icon with border-box sizing */ - width: 22px; - height: 16px; } #urlbar-search-splitter { diff --git a/browser/themes/osx/browser.css b/browser/themes/osx/browser.css index 5ae75a89c9..c4578dd096 100644 --- a/browser/themes/osx/browser.css +++ b/browser/themes/osx/browser.css @@ -913,9 +913,6 @@ html|*.urlbar-input:-moz-lwtheme::-moz-placeholder, .urlbar-icon { padding: 0 3px; - /* 16x16 icon with border-box sizing */ - width: 22px; - height: 16px; } .searchbar-engine-button, diff --git a/browser/themes/windows/browser.css b/browser/themes/windows/browser.css index 0b17b121ea..90f1cb0b7d 100644 --- a/browser/themes/windows/browser.css +++ b/browser/themes/windows/browser.css @@ -1340,9 +1340,6 @@ html|*.urlbar-input:-moz-lwtheme::-moz-placeholder, .urlbar-icon { padding: 0 3px; - /* 16x16 icon with border-box sizing */ - width: 22px; - height: 16px; } .searchbar-engine-button, diff --git a/build/valgrind/mach_commands.py b/build/valgrind/mach_commands.py index fb9e1f7db6..63c08a4347 100644 --- a/build/valgrind/mach_commands.py +++ b/build/valgrind/mach_commands.py @@ -92,6 +92,8 @@ class MachCommands(MachCommandBase): env['MOZ_CRASHREPORTER_NO_REPORT'] = '1' env['XPCOM_DEBUG_BREAK'] = 'warn' + env.update(self.extra_environment_variables) + outputHandler = OutputHandler() kp_kwargs = {'processOutputLine': [outputHandler]} diff --git a/config/config.mk b/config/config.mk index 6aa8174f0b..93ea65e467 100644 --- a/config/config.mk +++ b/config/config.mk @@ -115,7 +115,7 @@ FINAL_TARGET ?= $(if $(XPI_NAME),$(DIST)/xpi-stage/$(XPI_NAME),$(DIST)/bin)$(DIS FINAL_TARGET_FROZEN := '$(FINAL_TARGET)' ifdef XPI_NAME -DEFINES += -DXPI_NAME=$(XPI_NAME) +ACDEFINES += -DXPI_NAME=$(XPI_NAME) endif # The VERSION_NUMBER is suffixed onto the end of the DLLs we ship. @@ -430,8 +430,8 @@ OS_COMPILE_CMMFLAGS += -fobjc-abi-version=2 -fobjc-legacy-dispatch endif endif -COMPILE_CFLAGS = $(VISIBILITY_FLAGS) $(DEFINES) $(INCLUDES) $(OS_INCLUDES) $(DSO_CFLAGS) $(DSO_PIC_CFLAGS) $(RTL_FLAGS) $(OS_CPPFLAGS) $(OS_COMPILE_CFLAGS) $(CFLAGS) $(MOZBUILD_CFLAGS) -COMPILE_CXXFLAGS = $(if $(DISABLE_STL_WRAPPING),,$(STL_FLAGS)) $(VISIBILITY_FLAGS) $(DEFINES) $(INCLUDES) $(OS_INCLUDES) $(DSO_CFLAGS) $(DSO_PIC_CFLAGS) $(RTL_FLAGS) $(OS_CPPFLAGS) $(OS_COMPILE_CXXFLAGS) $(CXXFLAGS) $(MOZBUILD_CXXFLAGS) +COMPILE_CFLAGS = $(VISIBILITY_FLAGS) $(DEFINES) $(INCLUDES) $(OS_INCLUDES) $(DSO_CFLAGS) $(DSO_PIC_CFLAGS) $(RTL_FLAGS) $(OS_COMPILE_CFLAGS) $(CFLAGS) $(MOZBUILD_CFLAGS) +COMPILE_CXXFLAGS = $(if $(DISABLE_STL_WRAPPING),,$(STL_FLAGS)) $(VISIBILITY_FLAGS) $(DEFINES) $(INCLUDES) $(OS_INCLUDES) $(DSO_CFLAGS) $(DSO_PIC_CFLAGS) $(RTL_FLAGS) $(OS_COMPILE_CXXFLAGS) $(CXXFLAGS) $(MOZBUILD_CXXFLAGS) COMPILE_CMFLAGS = $(OS_COMPILE_CMFLAGS) $(MOZBUILD_CMFLAGS) COMPILE_CMMFLAGS = $(OS_COMPILE_CMMFLAGS) $(MOZBUILD_CMMFLAGS) ASFLAGS += $(MOZBUILD_ASFLAGS) @@ -551,7 +551,7 @@ sysinstall_cmd = install_cmd # overridden by the command line. (Besides, AB_CD is prettier). AB_CD = $(MOZ_UI_LOCALE) # Many locales directories want this definition. -DEFINES += -DAB_CD=$(AB_CD) +ACDEFINES += -DAB_CD=$(AB_CD) ifndef L10NBASEDIR L10NBASEDIR = $(error L10NBASEDIR not defined by configure) @@ -681,7 +681,5 @@ export CL_INCLUDES_PREFIX # non-English systems. export NONASCII -DEFINES += -DNO_NSPR_10_SUPPORT - # Freeze the values specified by moz.build to catch them if they fail. $(foreach var,$(_MOZBUILD_EXTERNAL_VARIABLES) $(_DEPRECATED_VARIABLES),$(eval $(var)_FROZEN := '$($(var))')) diff --git a/config/tests/src-simple/Makefile.in b/config/tests/src-simple/Makefile.in index aa5de0b0e1..96f9a41540 100644 --- a/config/tests/src-simple/Makefile.in +++ b/config/tests/src-simple/Makefile.in @@ -13,7 +13,7 @@ include $(topsrcdir)/config/config.mk XPI_NAME = test_jar_mn -DEFINES += \ +ACDEFINES += \ -DAB_CD=ab-X-stuff \ $(NULL) diff --git a/configure.in b/configure.in index 2c138a826f..13911cfd3d 100644 --- a/configure.in +++ b/configure.in @@ -3657,7 +3657,6 @@ MOZ_DISABLE_PARENTAL_CONTROLS=1 ENABLE_SYSTEM_EXTENSION_DIRS=1 MOZ_BRANDING_DIRECTORY= MOZ_OFFICIAL_BRANDING= -MC_OFFICIAL=1 MOZ_FEEDS=1 MOZ_AUTH_EXTENSION=1 MOZ_RAW= @@ -4426,42 +4425,14 @@ MOZ_ARG_ENABLE_STRING(ui-locale, MOZ_UI_LOCALE=$enableval ) AC_SUBST(MOZ_UI_LOCALE) -dnl ======================================================== -dnl = Vendor override -dnl ======================================================== -MOZ_ARG_DISABLE_BOOL(official-vendor, -[ --disable-official-vendor Disable the use of official vendor.], - MC_OFFICIAL=, - MC_OFFICIAL=1) - -dnl ======================================================== -dnl = Trademarked Branding -dnl ======================================================== -MOZ_ARG_ENABLE_BOOL(official-branding, -[ --enable-official-branding - Enable official branding - Do not distribute builds with - --enable-official-branding unless you have - permission to use the name/logo per - http://www.palemoon.org/redist.shtml .], -[ +AC_SUBST(MOZ_OFFICIAL_BRANDING) +if test -n "$MOZ_OFFICIAL_BRANDING"; then if test -z "$MOZ_OFFICIAL_BRANDING_DIRECTORY"; then AC_MSG_ERROR([You must specify MOZ_OFFICIAL_BRANDING_DIRECTORY to use --enable-official-branding.]) else MOZ_BRANDING_DIRECTORY=${MOZ_OFFICIAL_BRANDING_DIRECTORY} - MOZ_OFFICIAL_BRANDING=1 - MC_OFFICIAL=1 + AC_DEFINE(MOZ_OFFICIAL_BRANDING) fi -], MOZ_OFFICIAL_BRANDING=) - -AC_SUBST(MC_OFFICIAL) -if test -n "$MC_OFFICIAL"; then - AC_DEFINE(MC_OFFICIAL) -fi - -AC_SUBST(MOZ_OFFICIAL_BRANDING) -if test -n "$MOZ_OFFICIAL_BRANDING"; then - AC_DEFINE(MOZ_OFFICIAL_BRANDING) fi MOZ_ARG_WITH_STRING(branding, @@ -4481,22 +4452,6 @@ fi AC_SUBST(MOZ_BRANDING_DIRECTORY) -dnl ======================================================== -dnl = Private Build -dnl ======================================================== -MOZ_ARG_ENABLE_BOOL(private-build, -[ --enable-private-build Enable private builds - This allows you to build with official - branding for personal use only using any - build time configuration.], - MC_PRIVATE_BUILD=1, - MC_PRIVATE_BUILD=) - -AC_SUBST(MC_PRIVATE_BUILD) -if test -n "$MC_PRIVATE_BUILD"; then - AC_DEFINE(MC_PRIVATE_BUILD) -fi - dnl ======================================================== dnl = Distribution ID dnl ======================================================== @@ -8746,6 +8701,9 @@ if test -z "$JS_SHARED_LIBRARY"; then fi AC_SUBST(JS_SHARED_LIBRARY) +# Avoid using obsolete NSPR features +AC_DEFINE(NO_NSPR_10_SUPPORT) + MOZ_CREATE_CONFIG_STATUS() if test "$COMPILE_ENVIRONMENT"; then diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index ac520e79c1..6a62edb57f 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -5758,7 +5758,7 @@ nsDocShell::GetPositionAndSize(int32_t* aX, int32_t* aY, int32_t* aWidth, { if (mParentWidget) { // ensure size is up-to-date if window has changed resolution - nsIntRect r; + LayoutDeviceIntRect r; mParentWidget->GetClientBounds(r); SetPositionAndSize(mBounds.x, mBounds.y, r.width, r.height, false); } diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index 5f2ad9e9a5..947d3fe262 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -5322,14 +5322,6 @@ static void ProcessViewportToken(nsIDocument *aDocument, #define IS_SEPARATOR(c) ((c == '=') || (c == ',') || (c == ';') || \ (c == '\t') || (c == '\n') || (c == '\r')) -/* static */ -nsViewportInfo -nsContentUtils::GetViewportInfo(nsIDocument *aDocument, - const ScreenIntSize& aDisplaySize) -{ - return aDocument->GetViewportInfo(aDisplaySize); -} - /* static */ nsresult nsContentUtils::ProcessViewportInfo(nsIDocument *aDocument, @@ -6996,38 +6988,6 @@ nsContentUtils::GetSelectionInTextControl(Selection* aSelection, aOutEndOffset = std::max(anchorOffset, focusOffset); } -/* static */ -nsRect -nsContentUtils::GetSelectionBoundingRect(Selection* aSel) -{ - nsRect res; - // Bounding client rect may be empty after calling GetBoundingClientRect - // when range is collapsed. So we get caret's rect when range is - // collapsed. - if (aSel->IsCollapsed()) { - nsIFrame* frame = nsCaret::GetGeometry(aSel, &res); - if (frame) { - nsIFrame* relativeTo = - nsLayoutUtils::GetContainingBlockForClientRect(frame); - res = nsLayoutUtils::TransformFrameRectToAncestor(frame, res, relativeTo); - } - } else { - int32_t rangeCount = aSel->RangeCount(); - nsLayoutUtils::RectAccumulator accumulator; - for (int32_t idx = 0; idx < rangeCount; ++idx) { - nsRange* range = aSel->GetRangeAt(idx); - nsRange::CollectClientRects(&accumulator, range, - range->GetStartParent(), range->StartOffset(), - range->GetEndParent(), range->EndOffset(), - true, false); - } - res = accumulator.mResultRect.IsEmpty() ? accumulator.mFirstRect : - accumulator.mResultRect; - } - - return res; -} - nsIEditor* nsContentUtils::GetHTMLEditor(nsPresContext* aPresContext) diff --git a/dom/base/nsContentUtils.h b/dom/base/nsContentUtils.h index 611c6d9fc7..884eaf9d73 100644 --- a/dom/base/nsContentUtils.h +++ b/dom/base/nsContentUtils.h @@ -1690,24 +1690,6 @@ public: */ static void RunInMetastableState(already_AddRefed aRunnable); - /** - * Retrieve information about the viewport as a data structure. - * This will return information in the viewport META data section - * of the document. This can be used in lieu of ProcessViewportInfo(), - * which places the viewport information in the document header instead - * of returning it directly. - * - * @param aDisplayWidth width of the on-screen display area for this - * document, in device pixels. - * @param aDisplayHeight height of the on-screen display area for this - * document, in device pixels. - * - * NOTE: If the site is optimized for mobile (via the doctype), this - * will return viewport information that specifies default information. - */ - static nsViewportInfo GetViewportInfo(nsIDocument* aDocument, - const mozilla::ScreenIntSize& aDisplaySize); - // Call EnterMicroTask when you're entering JS execution. // Usually the best way to do this is to use nsAutoMicroTask. static void EnterMicroTask(); @@ -2366,14 +2348,6 @@ public: int32_t& aOutStartOffset, int32_t& aOutEndOffset); - /** - * Takes a selection, and return selection's bounding rect which is relative - * to root frame. - * - * @param aSel Selection to check - */ - static nsRect GetSelectionBoundingRect(mozilla::dom::Selection* aSel); - /** * Takes a frame for anonymous content within a text control ( or *