Kartikaya Gupta
13cce51e10
Bug 1125422 - Populate the ContainerLayer flag to force events to be dispatched to content. r=roc
2015-02-10 16:28:07 -05:00
Kartikaya Gupta
9f15723476
Bug 1125422 - Fold touch and scroll listener flags into a single apz-aware flag for better code reuse. r=roc
2015-02-10 16:28:07 -05:00
Jonathan Kew
e7647bda80
Bug 1117210 - Snap text baselines to device pixels in vertical writing modes. r=smontagu
2015-02-11 08:44:34 +00:00
Seth Fowler
557aceb232
Bug 1128225 (Part 2) - Propagate the imgIContainer::Draw result through the nsLayoutUtils::Draw*Image functions. r=tn
2015-02-04 13:50:56 -08:00
David Zbarsky
520ac2cad8
Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond
2015-02-04 15:21:03 -05:00
David Anderson
cfade247e1
Remove apz.subframe.enabled and assume it is always true. (bug 1128761, r=kats)
2015-02-03 15:02:04 -08:00
Phil Ringnalda
8ff441aa5a
Back out 5167196c4b98 (bug 1125040) for not compiling on Linux
...
CLOSED TREE
2015-02-01 15:27:14 -08:00
David Zbarsky
baa5df4d99
Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond
2015-02-01 17:27:41 -05:00
David Zbarsky
1e37e03e20
Bug 1125040: Use LayoutDeviceIntPoint for nsLayoutUtils::GetEventCoordinatesRelativeTo and Touch::mRefPoint r=botond
2015-02-01 17:27:31 -05:00
Masatoshi Kimura
91b7bfd47c
Bug 1111290 - Part 2: Non-mechanical changes. r=waldo
2015-01-26 07:22:08 +09:00
Trevor Saunders
5bd37fbee6
bug 1122065 - use MOZ_OVERRIDE more in gfxish things r=jrmuizel
2015-01-19 17:41:12 -05:00
Jonathan Kew
443f1d371f
Bug 1113216 - Avoid assertions/crashes by treating enumerated block-size values as auto, pending proper implementation of all the values. r=dbaron
2015-01-15 11:56:51 +00:00
Xidorn Quan
660e809d5e
Bug 1055667 part 2 - Remove unnecessary param of SetBSizeFromFontMetrics. r=dbaron
2015-01-15 20:02:11 +11:00
L. David Baron
fabdf2eb83
Bug 1110277 patch 2 - Add nsLayoutUtils::LastContinuationOrIBSplitSibling(). r=bzbarsky
...
This is used in patch 3.
2015-01-11 15:43:10 -08:00
Geoff Lankow
ccc287c39f
Bug 1114297 - Improve performance of nsTreeBodyFrame::AdjustForCellText for very long strings; r=smontagu
2015-01-11 00:07:58 +13:00
Ting-Yu Lin
a1e25edf38
Bug 1067728 - Part 3 - Expose FindNearestCommonAncestorFrame. r=roc
2014-12-10 19:52:00 +01:00
Ting-Yu Lin
721aa8ea41
Bug 1067728 - Part 1.1 - Move IsRectVisibleInScrollFrames to nsLayoutUtils. f=mtseng, r=roc
2014-12-08 01:53:00 +01:00
Kartikaya Gupta
bd341fc1da
Bug 1105823 - Ensure we find a scrollable ancestor even for fixed-position items. r=botond
2014-11-28 12:25:40 -05:00
Jonathan Kew
3038ba1068
Bug 1105268 - part 1 - Fix the logical/physical confusion with min- and max- dimensions in nsFrame::ComputeSize(). r=smontagu
2014-11-27 15:01:11 +00:00
Daniel Holbert
e56f86d677
Bug 1098417 part 1: Add optional anchor-point arg to nsLayoutUtils::ComputeObjectDestRect() and nsLayoutUtils::DrawSingleImage(). r=seth
2014-11-21 18:25:46 -08:00
Kartikaya Gupta
b2a8527170
Bug 918288 - Ensure we set a displayport on elements that we get touch-start events for. r=botond
2014-11-21 21:36:25 -05:00
Kartikaya Gupta
f7078e6ca5
Bug 918288 - Add code to TabChild to dispatch the SetTargetAPZC notification. r=roc,botond
2014-11-21 21:36:25 -05:00
David Anderson
9b52de759d
Cache the current animated geometry root in nsDisplayListBuilder. (bug 1101260 part 1, r=roc)
2014-11-20 16:58:18 -08:00
Mats Palmgren
249ccee969
Bug 907396 - Make RestyleManager::RestyleElement and nsCSSFrameConstructor::MaybeRecreateFramesForElement deal with display:contents elements. r=bzbarsky
2014-11-20 18:24:10 +00:00
Daniel Holbert
100c4f77be
Bug 624647 part 1: Add utility method nsLayoutUtils::ComputeObjectDestRect() to handle object-fit/object-position. r=seth
2014-11-14 16:45:23 -08:00
Benoit Girard
de95949f46
Bug 1094442 - Part 1: Refactor how tile w/h is queried r=kats
2014-11-12 17:54:29 -05:00
Botond Ballo
4eddb9ef90
Bug 1076163 - Basic APZ support for css-driven resolution. r=kats,tn
...
This makes APZ behave nicely with most uses of a css transform:scale.
Summary of changes:
- FrameMetrics::mCumulativeResolution now includes the css-driven resolution
in addition to the pres-shell resolution.
- Displayports are now stored in Screen pixels rather than Layer pixels.
This is what we want anyways (as we'd like the displayport size to remain
constant as a fraction of the screen size), but it was necessary to make
this change as part of this patch because continuing to store them in
Layer pixels in the presence of a css-driven resolution would have
required a bunch of infrastructure to implement correctly.
Remaining work:
- Layout painting a scrollable layer at a resolution different from the
scale induced by the css transform causes problems. These will go away
with bug 1076192.
- Different resolutions on the x and y axes are not supported. This is
tracked by bug 1039967.
2014-10-24 15:49:38 -04:00
Carsten "Tomcat" Book
5ab7b878a7
Backed out changeset fbb9dc943109 (bug 1076163) for Android 4.0 Crashes on a CLOSED TREE
2014-11-13 11:47:57 +01:00
Jonathan Kew
e7e5f2df11
Bug 1093553 - Improve handling of line-height metrics, block ascent, etc., in vertical writing mode. r=smontagu
2014-11-13 08:58:06 +00:00
Botond Ballo
9b6d326e37
Bug 1076163 - Basic APZ support for css-driven resolution. r=kats,tn
...
This makes APZ behave nicely with most uses of a css transform:scale.
Summary of changes:
- FrameMetrics::mCumulativeResolution now includes the css-driven resolution
in addition to the pres-shell resolution.
- Displayports are now stored in Screen pixels rather than Layer pixels.
This is what we want anyways (as we'd like the displayport size to remain
constant as a fraction of the screen size), but it was necessary to make
this change as part of this patch because continuing to store them in
Layer pixels in the presence of a css-driven resolution would have
required a bunch of infrastructure to implement correctly.
Remaining work:
- Layout painting a scrollable layer at a resolution different from the
scale induced by the css transform causes problems. These will go away
with bug 1076192.
- Different resolutions on the x and y axes are not supported. This is
tracked by bug 1039967.
2014-10-24 15:49:38 -04:00
Morris Tseng
5998dde150
Bug 1094056 - Use nsCaret::GetGeometryForFrame to determine position of selection carets. r=roc
2014-11-11 22:54:00 +01:00
Kartikaya Gupta
34df777ecb
Bug 1078029 - Add code to reposition input event coordinates into the target frame. r=roc
...
The PositionedEventTargeting code allows input events to be dispatched to a
target not directly under the input event point. However, the coordinates of the
input event can then end up outside the bounding rect of the event target. This
state is generally unexpected by web content and may cause compatibility issues.
Fennec's front-end code used to deal with this by repositioning the input event
coordinates to be inside the bounding rect; now that Fennec is using the shared
C++ code we need to have that code here. This behaviour is guarded by a pref and
disabled by default (but enabled on Fennec).
2014-11-04 09:52:16 -05:00
Jonathan Watt
eceb3099ee
Bug 1091794 - Replace gfxCornerSizes with Moz2D's RectCornerRadii. r=mattwoodrow
2014-11-01 10:45:10 +00:00
Jonathan Watt
2ae60576c4
Bug 1091323 - Convert the nsLayoutUtils helpers that paint images and take an nsRenderingContext to take a gfxContext instead. r=seth
2014-11-01 10:45:09 +00:00
Jonathan Watt
38d8f2dd23
Bug 1088781 - Rename nsLayoutUtils::GetStringWidth to nsLayoutUtils::AppUnitWidthOfStringBidi. r=dholbert
2014-10-26 17:57:49 +00:00
Botond Ballo
44b608d976
Bug 1085569 - When calculating the composition bounds based on the frame size, use the cumulative resolution rather than the parent resolution everywhere. r=tn
2014-10-20 15:53:29 -04:00
Jonathan Watt
3c69ad6faa
Bug 1088625, part 2 - Pass nsFontMetrics objects through to code that needs it instead of storing it on the nsRenderingContext. r=mstange
2014-10-24 16:28:14 +01:00
Jonathan Watt
abbc6ac8ac
Bug 1088599 - Move nsRenderingContext::GetBoundingMetrics to nsLayoutUtils. r=mstange
2014-10-24 16:28:14 +01:00
Jonathan Watt
10b10a6bef
Bug 1088550 - Move nsRenderingContext's remaining GetWidth methods to nsLayoutUtils. r=mstange
2014-10-24 16:28:13 +01:00
Jonathan Watt
3d7cc0843f
Bug 1088071, part 2 - Move the nsRenderingContext::DrawString code to nsLayoutUtils::DrawUniDirString. r=jfkthame
2014-10-24 11:00:23 +01:00
Jonathan Watt
16e135bc53
Bug 1088071, part 1 - Wrap the callers of the final nsRenderingContext::DrawString method up in a new nsLayoutUtils::DrawUniDirString method. r=jfkthame
2014-10-24 11:00:23 +01:00
Matt Woodrow
8d847a7a2a
Bug 1078337 - Correctly respect the source rect in DrawSingleImage. r=seth
2014-10-23 11:41:14 +13:00
Jonathan Watt
3b52cf43ad
Bug 1086708 - Rename the snapping variant of NSRectToRect to NSRectToSnappedRect. r=mattwoodrow
2014-10-22 12:29:06 +01:00
Benoit Girard
8ad6049025
Bug 961871 - Part 2: Refactor will-change scroll, pass through a nsDisplayListBuilder. r=mattwoodrow
2014-10-21 21:54:06 -04:00
Jonathan Watt
5d42f29aa8
Bug 1085159 - Port the code that uses nsRenderingContext::DrawLine() to Moz2D. r=mattwoodrow
2014-10-20 10:55:48 +01:00
Jonathan Watt
6a1953e045
Bug 1083597, part 2 - Add a variant of NSRectToRect that snaps to device pixels, and have nsTableCellFrame::DecorateForSelection use it to restore its snapping behavior.
2014-10-19 11:47:22 +01:00
Jonathan Watt
a85c726c1e
Bug 1083557 - Port the code that uses nsRenderingContext::FillPolygon() to Moz2D. r=mattwoodrow
2014-10-17 15:06:34 +01:00
Jonathan Watt
6ec27a149e
Bug 1083761 - Use Color::FromABGR in more places that to the conversion by hand and remove nsLayoutUtils::NSColorToColor(). r=mstange
2014-10-17 12:53:16 +01:00
Jonathan Watt
218ac8e8b8
Bug 1083215, part 2 - Convert drawing of HTML image map area focus to Moz2D. r=mattwoodrow
2014-10-16 10:51:14 +01:00
Michael Wu
ed2099aaf4
Bug 1083393 - Remove unused thebes things in nsLayoutUtils, r=mattwoodrow
2014-10-15 17:13:14 -04:00