gecko-dev/layout/base
Jamie Nicol a2741d30bf Bug 1292856 - Don't cast scale to int in nsDisplayTransform::ShouldPrerenderTransformedContent; r=mstange
Casting the scale components to integers before multiplying meant that
nsDisplayTransform::ShouldPrerenderTransformedContent was incorrectly
calculating the scaled frame size. This was especially bad when scale <
(1.0, 1.0), as it would calculate a size of (0, 0), leading us to
prerender the frame even if it was too large.

Calculate the frame's size using floating point scale components so as
to avoid this problem.

MozReview-Commit-ID: KhbP8tJ8qYx

--HG--
extra : transplant_source : %E6%BD%80l%D9O%CE%B0%12%D8%94R%AB%C0%13%A0%E7%B9%01E
2016-08-09 14:55:45 +01:00
..
crashtests Bug 1286889 - Handle ruby text container as line container in InlineBackgroundData. r=jfkthame 2016-07-19 13:32:47 +10:00
doc Bug 1246477 - Fix carets not updated by scroll events in LongTapState. r=roc 2016-02-08 16:08:45 +08:00
gtest Bug 1195722 - On desktop, allow the context menu to pop up concurrently with text selection. r=tylin 2016-08-03 12:00:19 -04:00
tests Bug 1278957 - enable Skia content for Linux and Android. r=mchang 2016-08-09 15:56:28 -04:00
AccessibleCaret.cpp Bug 1255555 - When a frame reconstruction triggers caret elements to be cloned, ensure the dummy touch listeners are re-registered on the clones. r=tylin 2016-07-11 08:16:39 -04:00
AccessibleCaret.h Bug 1293950 - Update mozilla wiki link in AccessibleCaret headers. r=mtseng 2016-08-10 15:46:27 +08:00
AccessibleCaretEventHub.cpp Bug 1195722 - On desktop, allow the context menu to pop up concurrently with text selection. r=tylin 2016-08-03 12:00:19 -04:00
AccessibleCaretEventHub.h Bug 1293950 - Update mozilla wiki link in AccessibleCaret headers. r=mtseng 2016-08-10 15:46:27 +08:00
AccessibleCaretLogger.h
AccessibleCaretManager.cpp Bug 1255555 - When a frame reconstruction triggers caret elements to be cloned, ensure the dummy touch listeners are re-registered on the clones. r=tylin 2016-07-11 08:16:39 -04:00
AccessibleCaretManager.h Bug 1293950 - Update mozilla wiki link in AccessibleCaret headers. r=mtseng 2016-08-10 15:46:27 +08:00
ActiveLayerTracker.cpp Bug 1287725 - Drop KeyframeEffectReadOnly::HasAnimationOfProperties and nsLayoutUtils::HasCurrentAnimationsForProperties. r=birtles 2016-07-26 06:44:11 +09:00
ActiveLayerTracker.h Bug 550426 - Use background-position-x/y in ActiveLayerTracker. r=dbaron 2016-04-20 23:34:46 -04:00
ArenaObjectID.h
ArenaRefPtr.h
ArenaRefPtrInlines.h
BorderCache.h Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel 2015-08-06 11:42:09 +09:00
BorderConsts.h Bug 382721 - Part 8: Render too large dotted/dashed corner with solid style. r=jrmuizel 2016-06-10 13:10:03 +09:00
CaretAssociationHint.h
DashedCornerFinder.cpp Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel 2015-08-06 11:42:09 +09:00
DashedCornerFinder.h Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel 2015-08-06 11:42:09 +09:00
DisplayItemClip.cpp Bug 1259734 - use AppendElements in DisplayItemClip::AppendRoundedRects; r=dholbert 2016-03-25 09:34:37 -04:00
DisplayItemClip.h
DisplayItemScrollClip.cpp Bug 1269321: Part 1 - Add a way to check if the current clip has rounded corners. r=mstange 2016-06-30 18:08:35 +02:00
DisplayItemScrollClip.h Bug 1269321: Part 1 - Add a way to check if the current clip has rounded corners. r=mstange 2016-06-30 18:08:35 +02:00
DisplayListClipState.cpp Bug 1271714. When creating the wrap list item that contains the display list for a frame make sure to use a scroll clip that includes content in the display list. r=mstange 2016-07-13 01:08:18 -05:00
DisplayListClipState.h Bug 1284586 - Disable paint-skipping for scrollframes that we detect as having a CSS-clipped descendant. r=mstange 2016-07-13 16:05:53 -04:00
DottedCornerFinder.cpp Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel 2015-08-06 11:42:09 +09:00
DottedCornerFinder.h Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel 2015-08-06 11:42:09 +09:00
FrameLayerBuilder.cpp Bug 1237102 - Make sure we don't generate invalidations for children of opacity:0 frames, even when plugins are present. r=tnikkel 2016-08-10 15:15:28 +12:00
FrameLayerBuilder.h Bug 1237102 - Make sure we don't generate invalidations for children of opacity:0 frames, even when plugins are present. r=tnikkel 2016-08-10 15:15:28 +12:00
FramePropertyTable.cpp Bug 1246846 (part 4) - Avoid nsTHashtable::RawRemoveEntry() in FramePropertyTable. r=roc. 2016-02-09 13:56:07 +11:00
FramePropertyTable.h Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
GeometryUtils.cpp Bug 1277131 : Part 1 - rename nsTableOuterFrame to nsTableWrapperFrame. r=heycam 2016-06-16 13:14:08 +01:00
GeometryUtils.h
LayerState.h
LayoutLogging.cpp
LayoutLogging.h Bug 1275744 - Reference MOZ_LOG in layout comments. r=erahm 2016-05-26 11:40:17 -07:00
MaskLayerImageCache.cpp
MaskLayerImageCache.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
MobileViewportManager.cpp Bug 1282902 - Part 2 - Extract resolution scaling into separate function. r=kats 2016-07-02 22:15:19 +02:00
MobileViewportManager.h Bug 1282902 - Part 2 - Extract resolution scaling into separate function. r=kats 2016-07-02 22:15:19 +02:00
OverflowChangedTracker.h Bug 1290335: stylo: Hoist OverflowChangedTracker to its own file. r=heycam 2016-08-03 15:11:15 -07:00
PaintTracker.cpp
PaintTracker.h
PositionedEventTargeting.cpp Bug 1259656 part.1 Rename WidgetEvent::refPoint to WidgetEvent::mRefPoint r=smaug 2016-04-18 23:09:02 +09:00
PositionedEventTargeting.h
RestyleLogging.h
RestyleManager.cpp Bug 1290335: Reuse the OverflowChangedTracker between both restyle managers. r=heycam 2016-08-03 15:11:15 -07:00
RestyleManager.h Bug 1290335: Make ProcessRestyledFrames non static, and tidy up a bit. r=heycam 2016-08-03 15:11:15 -07:00
RestyleManagerBase.cpp Bug 1290335: Make ProcessRestyledFrames non static, and tidy up a bit. r=heycam 2016-08-03 15:11:15 -07:00
RestyleManagerBase.h Bug 1290335: Make ProcessRestyledFrames non static, and tidy up a bit. r=heycam 2016-08-03 15:11:15 -07:00
RestyleManagerHandle.h Bug 1290335: Reuse the OverflowChangedTracker between both restyle managers. r=heycam 2016-08-03 15:11:15 -07:00
RestyleManagerHandleInlines.h Bug 1290335: Reuse the OverflowChangedTracker between both restyle managers. r=heycam 2016-08-03 15:11:15 -07:00
RestyleTracker.cpp Bug 1290335: Hoist GetNextContinuationWithSameStyle to RestyleManagerBase. r=heycam 2016-08-03 15:11:15 -07:00
RestyleTracker.h Bug 1290335: stylo: Hoist OverflowChangedTracker to its own file. r=heycam 2016-08-03 15:11:15 -07:00
RestyleTrackerInlines.h
ScrollbarStyles.cpp
ScrollbarStyles.h
ServoRestyleManager.cpp Bug 1291891 - Switch to NS_WARNING for various unimplemented incremental restyle methods. r=emilio 2016-08-03 18:30:59 -07:00
ServoRestyleManager.h Bug 1290335: Make ProcessRestyledFrames non static, and tidy up a bit. r=heycam 2016-08-03 15:11:15 -07:00
StackArena.cpp
StackArena.h Bug 1263773 - Mark a bunch of classes in layout as MOZ_RAII. r=dholbert 2016-03-28 13:34:26 +01:00
StaticPresData.cpp Bug 1261552 - Introduce StaticPresData and hoist some shared functionality into it. r=heycam 2016-04-04 23:14:27 -07:00
StaticPresData.h Bug 1261552 - Introduce StaticPresData and hoist some shared functionality into it. r=heycam 2016-04-04 23:14:27 -07:00
TouchManager.cpp Bug 1277722, release touch objects even if dispatching touchend fails, r=masayuki 2016-07-07 15:43:23 +03:00
TouchManager.h
UnitTransforms.h Handle device resets by recreating the compositor, rather than the compositor IPDL stack. (bug 1245765 part 7, r=mattwoodrow) 2016-02-29 01:53:15 -05:00
Units.h Bug 1219296 - Scroll snap directly in APZ instead of going through the main thread. r=kats 2016-03-28 18:36:02 -04:00
WordMovementType.h
ZoomConstraintsClient.cpp Bug 1277358 xul:browser element kept alive too long if tab is dnd'ed to a new window, r=kats 2016-06-02 18:02:14 +03:00
ZoomConstraintsClient.h Bug 1259733 - use forward declarations for nsIDocument in a few places; r=dholbert 2016-04-27 14:48:36 -04:00
moz.build Bug 1290335: stylo: Hoist OverflowChangedTracker to its own file. r=heycam 2016-08-03 15:11:15 -07:00
nsArenaMemoryStats.h
nsAutoLayoutPhase.cpp
nsAutoLayoutPhase.h
nsBidi.cpp Bug 1160847 part 3 - Restore virtual bidi control characters for reordering. r=jfkthame 2016-06-29 17:47:18 +10:00
nsBidi.h Bug 1160847 part 3 - Restore virtual bidi control characters for reordering. r=jfkthame 2016-06-29 17:47:18 +10:00
nsBidiPresUtils.cpp Bug 1160847 part 4 - Remove useless lineOffset variable in nsBidiPresUtils::ResolveParagraph. r=jfkthame 2016-06-29 17:48:00 +10:00
nsBidiPresUtils.h Bug 1160847 part 4 - Remove useless lineOffset variable in nsBidiPresUtils::ResolveParagraph. r=jfkthame 2016-06-29 17:48:00 +10:00
nsCSSColorUtils.cpp
nsCSSColorUtils.h
nsCSSFrameConstructor.cpp Bug 1290335: Reuse the OverflowChangedTracker between both restyle managers. r=heycam 2016-08-03 15:11:15 -07:00
nsCSSFrameConstructor.h Bug 1290335: stylo: Allow processing change hints generated from Servo. r=heycam 2016-08-03 15:11:15 -07:00
nsCSSRendering.cpp Backed out changeset adc1960091eb (bug 1291528) 2016-08-09 16:55:59 +02:00
nsCSSRendering.h Bug 1285320 - Part 2: Purge border-image cache when hypothetical SVG viewport changes, if using SVG image with no aspect ratio. r=dholbert 2016-07-31 20:24:00 -04:00
nsCSSRenderingBorders.cpp Bug 1285658 - Part 2: Use less-erroneous value while calculating border corner dimensions. r=jrmuizel 2016-07-16 10:39:44 +09:00
nsCSSRenderingBorders.h Bug 382721 - Part 9: Warn about too large dotted/dashed corner. r=jrmuizel 2016-06-10 13:10:03 +09:00
nsCaret.cpp Bug 1281099 part 1 - Convert some macros to functions to help later change. r=jfkthame 2016-06-21 17:21:09 +10:00
nsCaret.h
nsChangeHint.h Bug 1287308 - part2: remove old NS_STYLE_HINT_NONE constant. r=dbaron 2016-07-17 22:20:22 +08:00
nsCompatibility.h
nsCounterManager.cpp Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
nsCounterManager.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
nsDisplayItemTypes.h
nsDisplayItemTypesList.h Bug 1248913 - Rename nsDisplayMixBlendMode to nsDisplayBlendMode. r=mattwoodrow 2016-03-05 17:04:02 -05:00
nsDisplayList.cpp Bug 1292856 - Don't cast scale to int in nsDisplayTransform::ShouldPrerenderTransformedContent; r=mstange 2016-08-09 14:55:45 +01:00
nsDisplayList.h Bug 1237102 - Make sure we don't generate invalidations for children of opacity:0 frames, even when plugins are present. r=tnikkel 2016-08-10 15:15:28 +12:00
nsDisplayListInvalidation.cpp Bug 1258510 - Part 1. Use the return value of nsCSSRendering::PaintBackgroundWithSC. r=mstange 2016-07-12 01:22:54 +08:00
nsDisplayListInvalidation.h Bug 1258510 - Part 1. Use the return value of nsCSSRendering::PaintBackgroundWithSC. r=mstange 2016-07-12 01:22:54 +08:00
nsDocumentViewer.cpp Bug 1274079, ensure that after dispatching beforeprint, we have still valid ContentViewer to print, r=bz 2016-08-02 21:41:51 +03:00
nsFrameManager.cpp Bug 1261351: Look past ShadowRoots when looking for the parent for the UndisplayedMap. r=dbaron 2016-06-07 14:09:22 -07:00
nsFrameManager.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
nsFrameManagerBase.h 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
nsFrameTraversal.cpp Bug 1227927 Part 2 - Remove nsIFrame::GetFirstPrincipalChild(). r=mats 2016-01-29 22:42:14 +08:00
nsFrameTraversal.h
nsGenConList.cpp
nsGenConList.h
nsIDocumentViewerPrint.h Bug 1245978 part 3: Drop unnecessary whitespace in NS_DECL_NSIDOCUMENTVIEWERPRINT macro. (whitespace only, no review) 2016-02-29 15:09:13 -08:00
nsIFrameTraversal.h
nsILayoutDebugger.h
nsILayoutHistoryState.h
nsIPercentBSizeObserver.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsIPresShell.h Bug 1282902 - Part 3 - Let the MobileViewportManager recalculate the saved resolution if the display width changed before restoring. r=kats 2016-07-01 21:23:25 +02:00
nsIReflowCallback.h
nsIStyleSheetService.idl
nsLayoutDebugger.cpp Bug 1271931 - Make DisplayItem::IsUniform to return Maybe<nscolor>. r=tnikkel 2016-05-19 16:07:52 +08:00
nsLayoutHistoryState.cpp
nsLayoutUtils.cpp Bug 1290013 - Add a pref to disable stylo. r=bholley 2016-08-05 17:45:58 +08:00
nsLayoutUtils.h Bug 1290013 - Add a pref to disable stylo. r=bholley 2016-08-05 17:45:58 +08:00
nsPresArena.cpp
nsPresArena.h
nsPresArenaObjectList.h
nsPresContext.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
nsPresContext.h Bug 1290013 - Add a pref to disable stylo. r=bholley 2016-08-05 17:45:58 +08:00
nsPresShell.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
nsPresShell.h Bug 1195722 - Add a new pref to enable the accessible carets if touch events are supported, and enable the pref on nightly. r=tylin 2016-08-03 12:00:22 -04:00
nsPresState.h Bug 1273123 - removed unused variable |mRestoringHistoryScrollPosition|. r=dbaron 2016-05-17 09:51:05 +03:00
nsQuoteList.cpp Bug 1261754 - Part 3: Move quotes from nsStyleQuotes to nsStyleList and delete nsStyleQuotes. r=dholbert 2016-04-12 15:52:40 +10:00
nsQuoteList.h
nsRefreshDriver.cpp Bug 1284674 - Remove NUWA r=cyu 2016-08-02 14:54:00 +02:00
nsRefreshDriver.h Bug 1286445: stylo: Support restyles of non-pseudo content on state change. r=heycam 2016-07-16 16:22:12 -07:00
nsStyleChangeList.cpp Bug 1273766 - part3: purge NS_UpdateHint inline. r=heycam 2016-05-23 11:26:03 +08:00
nsStyleChangeList.h Bug 1290335: stylo: Allow processing change hints generated from Servo. r=heycam 2016-08-03 15:11:15 -07:00
nsStyleSheetService.cpp Bug 1250379 - Create css::Loaders for specific style backend types. r=dholbert 2016-02-24 18:01:12 +11:00
nsStyleSheetService.h 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