gecko-dev/layout/base
Brad Werth 80409f33ea Bug 1555511 Part 2: Remove a float division in MVM::ScaleZoomWithDisplayWidth. r=botond
This is a drive-by fix to turn a division into a multiplication. It also
is more correct in that the existing code attempts a divide-by-zero if
aNewViewport.width is zero. The updated code will instead return a zoom
of zero in such a case.

Differential Revision: https://phabricator.services.mozilla.com/D32909

--HG--
extra : rebase_source : 83ab76092596d7feda11f66d83c022d3d1e4acd3
extra : source : 2a85e3af81bbe475217ecdf16ce7c5a1a7985a21
2019-06-04 22:25:06 +00:00
..
crashtests Bug 1555823 - Remove bug 1323652 annotations from crashtest.lists. r=emilio 2019-05-30 22:18:01 +00:00
doc
gtest Bug 1550422 - P23. Remove now unused gfxPrefs. r=jrmuizel 2019-05-26 14:31:53 +00:00
tests Bug 1554224 - Enable some ESLint rules for more of layout/. r=dholbert 2019-05-29 10:50:49 +00:00
AccessibleCaret.cpp Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00
AccessibleCaret.h Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00
AccessibleCaretEventHub.cpp Bug 1550422 - P23. Remove now unused gfxPrefs. r=jrmuizel 2019-05-26 14:31:53 +00:00
AccessibleCaretEventHub.h Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00
AccessibleCaretLogger.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
AccessibleCaretManager.cpp Backed out 2 changesets (bug 1553772) for Geckoview failures in org.mozilla.geckoview.test.SelectionActionDelegateTest.collapseToStart[#designmode] 2019-05-23 18:30:54 +03:00
AccessibleCaretManager.h Bug 1543315 - part 15: Mark PresShell::ScrollFrameRectIntoView() as MOZ_CAN_RUN_SCRIPT r=smaug 2019-05-06 13:57:46 +00:00
ArenaObjectID.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
AutoProfilerStyleMarker.h Bug 1500692 - Centralize profiling category definition and add infrastructure for subcategories. r=njn 2019-02-16 17:37:43 +00:00
CaretAssociationHint.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
FrameProperties.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
GeckoMVMContext.cpp Bug 1535945 - Don't skip invalidating frames when creating displayports for async scrollable ancestors. r=tnikkel 2019-05-01 04:23:07 +00:00
GeckoMVMContext.h Bug 1528052 - Suppress resize events until the initial paint has finished on mobile. r=botond 2019-04-23 04:14:55 +00:00
GeometryUtils.cpp Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
GeometryUtils.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
LayoutConstants.h Bug 1548673 Part 1 - Rename NS_INTRINSIC_WIDTH_UNKNOWN to NS_INTRINSIC_ISIZE_UNKNOWN. r=jfkthame 2019-05-03 17:34:36 +00:00
LayoutLogging.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
LayoutLogging.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
MVMContext.h Bug 1528052 - Suppress resize events until the initial paint has finished on mobile. r=botond 2019-04-23 04:14:55 +00:00
MobileViewportManager.cpp Bug 1555511 Part 2: Remove a float division in MVM::ScaleZoomWithDisplayWidth. r=botond 2019-06-04 22:25:06 +00:00
MobileViewportManager.h Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00
OverflowChangedTracker.h Bug 1544995 - Always update overflow areas up to the preserve-3d root. r=dbaron 2019-05-19 22:39:58 +00:00
PositionedEventTargeting.cpp Bug 1259660 - Cleaned up WidgetMouseEventBase by renaming WidgetMouseEventBase::inputSource to WidgetMouseEventBase::mInputSource r=masayuki 2019-04-21 18:19:43 +00:00
PositionedEventTargeting.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
PresShell.cpp Bug 1543439 - Part 1: Move special handling for MouseDown/Up event out of AutoHandlingUserInputStatePusher; r=masayuki 2019-05-29 07:48:16 +00:00
PresShell.h Bug 1415270 - Part 1: Move nsHTMLDocument editing APIs to Document; r=farre,masayuki 2019-05-31 01:37:26 +00:00
PresShellForwards.h Bug 253889 - part 4: Finally, get rid of nsIPresShell r=emilio 2019-05-01 02:28:59 +00:00
PresShellInlines.h Bug 1547621 - Move all inline methods of nsIPresShell into mozilla::PresShell r=smaug 2019-04-30 01:52:53 +00:00
PresState.ipdlh Bug 1498812 - Part 11: Use Visual Viewport for storing scroll position in the PresState. r=botond,tnikkel 2019-01-11 19:50:24 +00:00
RestyleManager.cpp Bug 1556857 - Return true in AttributeChangeRequiresSubtreeRestyle whenever lwtheme attrs change in any chrome doc, not just those with XUL document elements r=emilio 2019-06-04 20:43:51 +00:00
RestyleManager.h Bug 1540015 - part 2: Make nsPresContext.h stop including nsIPresShel.h and nsIPresShellInlines.h r=smaug 2019-03-29 15:11:22 +00:00
ScrollStyles.cpp Bug 1546219 - Rename mScrollSnapType{X,Y} to mScrollSnapStrictness{X,Y}. r=botond 2019-05-22 17:43:34 +00:00
ScrollStyles.h Bug 1546219 - Rename mScrollSnapType{X,Y} to mScrollSnapStrictness{X,Y}. r=botond 2019-05-22 17:43:34 +00:00
ScrollTypes.h Bug 1546697 - Use a consistent style for enum classes in layout. r=dholbert 2019-04-25 23:03:04 +00:00
ShapeUtils.cpp Bug 1548691 - Use the owned slice type for basic shape polygon coordinates. r=TYLin,heycam 2019-05-09 11:24:57 +00:00
ShapeUtils.h Bug 1548691 - Use the owned slice type for basic shape polygon coordinates. r=TYLin,heycam 2019-05-09 11:24:57 +00:00
StackArena.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
StackArena.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
StaticPresData.cpp Bug 1537594 - Make the fixed generic family a parse-time alias to monospace. r=jfkthame 2019-04-01 21:48:08 +00:00
StaticPresData.h Bug 1537594 - Make the fixed generic family a parse-time alias to monospace. r=jfkthame 2019-04-01 21:48:08 +00:00
TouchManager.cpp Bug 1543439 - Part 2: Move is-user-interaction checks out of PresShell::EventHandler::PrepareToDispatchEvent; r=masayuki 2019-05-27 10:14:06 +00:00
TouchManager.h Bug 1543439 - Part 2: Move is-user-interaction checks out of PresShell::EventHandler::PrepareToDispatchEvent; r=masayuki 2019-05-27 10:14:06 +00:00
UnitTransforms.h Bug 1530661 - Make APZ report the per LayersId layer-to-screen transform matrices to the chrome process. r=kats 2019-03-09 20:33:17 +00:00
Units.h Bug 253889 - part 2: Move all methods and public structs of nsIPresShell into mozilla::PresShell r=emilio 2019-05-01 02:27:53 +00:00
WordMovementType.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ZoomConstraintsClient.cpp Bug 1550422 - P15. Move Skip and Once gfxPrefs to StaticPrefs. r=jrmuizel 2019-05-26 14:30:14 +00:00
ZoomConstraintsClient.h Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00
moz.build Bug 253889 - part 4: Finally, get rid of nsIPresShell r=emilio 2019-05-01 02:28:59 +00:00
nsAutoLayoutPhase.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsAutoLayoutPhase.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
nsBidi.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsBidi.h Bug 1515556 comment fix-ups for the tree reformat (layout/) r=Ehsan,heycam 2018-12-21 03:07:05 +00:00
nsBidiPresUtils.cpp Bug 1554461 - Use an array to store nsContinuationStates when the number of them is low. r=jfkthame 2019-05-31 11:42:42 +00:00
nsBidiPresUtils.h Bug 1554461 - Use an array to store nsContinuationStates when the number of them is low. r=jfkthame 2019-05-31 11:42:42 +00:00
nsCSSColorUtils.cpp Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsCSSColorUtils.h Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsCSSFrameConstructor.cpp Bug 1519948, remove XUL box objects, r=bzbarsky 2019-06-04 12:45:55 -04:00
nsCSSFrameConstructor.h Backed out changeset e52d041dc3de (bug 1553378) for causing build bustages in ContentEventHandler.cpp. CLOSED TREE 2019-05-24 14:32:27 +03:00
nsCaret.cpp Bug 1547536 - Make PresShell QI-able for aware of do_QueryReferent() r=smaug 2019-04-30 00:56:14 +00:00
nsCaret.h Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00
nsChangeHint.h Bug 1533963 - Use a single RestyleHint representation. r=heycam 2019-03-14 11:47:50 +00:00
nsCompatibility.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsCounterManager.cpp Bug 1552719 - Make nsBulletFrame::Ordinal() O(1) again. r=mats 2019-05-21 17:30:42 +00:00
nsCounterManager.h Bug 1552719 - Make nsBulletFrame::Ordinal() O(1) again. r=mats 2019-05-21 17:30:42 +00:00
nsDocumentViewer.cpp Bug 1537586 - Address build failure with --disable-printing r=bobowen,froydnj 2019-06-05 01:25:36 +00:00
nsFrameManager.cpp Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00
nsFrameManager.h Bug 1544343 - part 1: Make nsFrameManager, nsCSSFrameConstructor and nsFrameConstructorState use mozilla::PresShell directly rather than via nsIPresShell r=emilio 2019-04-16 07:24:29 +00:00
nsFrameTraversal.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsFrameTraversal.h Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsGenConList.cpp Bug 1552719 - Make nsGenConList::NodeAfter handle correctly nested pseudo-elements. r=mats 2019-05-21 17:29:26 +00:00
nsGenConList.h Bug 1552719 - Make nsBulletFrame::Ordinal() O(1) again. r=mats 2019-05-21 17:30:42 +00:00
nsIDocumentViewerPrint.h Bug 1544215 - Make nsIContentVewer::GetPresShell() return mozilla::PresShell instead of nsIPresShell r=bzbarsky 2019-04-16 02:47:26 +00:00
nsIFrameTraversal.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsILayoutDebugger.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-03-31 15:12:55 +00:00
nsILayoutHistoryState.idl Bug 1551652. Stop using [array] in nsILayoutHistoryState. r=heycam 2019-05-16 00:36:41 +00:00
nsIPercentBSizeObserver.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsIPreloadedStyleSheet.idl
nsIReflowCallback.h Bug 253889 - part 2: Move all methods and public structs of nsIPresShell into mozilla::PresShell r=emilio 2019-05-01 02:27:53 +00:00
nsIStyleSheetService.idl
nsLayoutDebugger.cpp Bug 1550554 - Use OwnedSlice for will-change. r=heycam 2019-05-16 23:23:28 +00:00
nsLayoutHistoryState.cpp Bug 1551652. Stop using [array] in nsILayoutHistoryState. r=heycam 2019-05-16 00:36:41 +00:00
nsLayoutUtils.cpp Bug 1554847 - Improve cross-origin checks in canvas API - consider intermediate redirects, r=jya 2019-06-04 06:32:37 +00:00
nsLayoutUtils.h Bug 1554847 - Improve cross-origin checks in canvas API - consider intermediate redirects, r=jya 2019-06-04 06:32:37 +00:00
nsPresArena.cpp Bug 1553731 - Part 1: Rename nsFrameIdList.h to FrameIdList.h. r=mats 2019-06-01 08:03:32 +00:00
nsPresArena.h Bug 1525371 - Remove ArenaRefPtr. r=jwatt 2019-02-07 11:15:39 +01:00
nsPresArenaObjectList.h Bug 1525371 - Remove ArenaRefPtr. r=jwatt 2019-02-07 11:15:39 +01:00
nsPresContext.cpp Bug 1550422 - P23. Remove now unused gfxPrefs. r=jrmuizel 2019-05-26 14:31:53 +00:00
nsPresContext.h Bug 253889 - part 2: Move all methods and public structs of nsIPresShell into mozilla::PresShell r=emilio 2019-05-01 02:27:53 +00:00
nsPresContextInlines.h Bug 1535788 - Make the Document own the StyleSet. r=heycam 2019-04-03 07:02:00 +00:00
nsQuoteList.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-05-25 17:46:15 +00:00
nsQuoteList.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsRefreshDriver.cpp Bug 1550422 - P23. Remove now unused gfxPrefs. r=jrmuizel 2019-05-26 14:31:53 +00:00
nsRefreshDriver.h Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00
nsStyleChangeList.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsStyleChangeList.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsStyleSheetService.cpp Bug 1547621 - Move all inline methods of nsIPresShell into mozilla::PresShell r=smaug 2019-04-30 01:52:53 +00:00
nsStyleSheetService.h Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00