Ehsan Akhgari
b354f9cf8c
Bug 762345 - Skip all the QIing stuff in the TreeMatchContext constructor if possible; r=bzbarsky
2012-06-07 15:19:56 -04:00
Ehsan Akhgari
1261bc9326
Merge mozilla-central into mozilla-inbound
2012-06-06 12:46:50 -04:00
Ed Morley
fbe10d4921
Merge mozilla-central to mozilla-inbound
2012-06-06 10:24:28 +01:00
Ms2ger
b9cdb58b83
Bug 629882 - Support currentColor in the 2D canvas context; r=dbaron
...
This changes nsCSSParser::ParseColorString to fill in an nsCSSValue instead
of an nscolor, and exposes nsRuleNode::ComputeColor to turn this nsCSSValue
into an nscolor.
Because gradients can be used with different canvas elements in different
documents, these cannot pass useful values for nsRuleNode::ComputeColor's
aPresContext and aStyleContext arguments. This patch also changes SetColor
to deal with those parameters being null.
2012-06-06 09:36:38 +02:00
Ehsan Akhgari
bdd1cdb13d
Bug 157681 - Part 2: Optimize positioned frame offset changes by moving the frame as opposed to reflowing it in case we know that the size of the frame will not change; r=dbaron
...
This patch adds a change hint to signal that one of the offsets on a
frame has been changed. When processing the hint, we do one of the
following things based on the position property of the frame.
* For static frames, we ignore the offset changes completely, as they
will not change the layout.
* For relative positioned frames, this patch refactors the
nsHTMLReflowState::ComputeRelativeOffsets function so that it can be
used from other callers, and it uses that to compute the new relative
offsets, and uses the offsets computed previously to compute the new
position of the frame.
* For absolute positioned frames, we set up a fake parent reflow state
object, and then we create a new reflow state object for the frame in
question. This setup is similar to what nsFrame::BoxReflow does.
Once we have the new reflow state object, we use it to compute the
absolute offsets, and then we use the computed offsets to set the new
position of the frame. The offset computation is similar to what
nsAbsoluteContainingBlock::ReflowAbsoluteFrame does. In some cases
where it is possible for the dimensions of the frame to change based
on the offset changes, we fall back to a full reflow.
2012-06-06 00:53:48 -04:00
Geoff Lankow
5cefea8480
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
Simon Montagu
5a4a71fe3a
Bug 760954 - Fix the performance regression in the View Source windows; r=ehsan
2012-06-03 05:00:01 -07:00
Cedric Vivier
f23c7de72d
Bug 727834 - Add an API to (re)parse a style sheet in place. r=bz
...
---
layout/inspector/public/inIDOMUtils.idl | 12 ++-
layout/inspector/src/inDOMUtils.cpp | 11 +++
layout/inspector/tests/chrome/Makefile.in | 2 +
layout/inspector/tests/chrome/test_bug727834.css | 7 ++
layout/inspector/tests/chrome/test_bug727834.xul | 88 +++++++++++++++++++
layout/style/nsCSSStyleSheet.cpp | 99 +++++++++++++++++++---
layout/style/nsCSSStyleSheet.h | 2 +
7 files changed, 207 insertions(+), 14 deletions(-)
create mode 100644 layout/inspector/tests/chrome/test_bug727834.css
create mode 100644 layout/inspector/tests/chrome/test_bug727834.xul
2012-06-03 12:54:38 -04:00
Frank Yan
ab80151f3b
Bug 760696 - Use :fullscreen to detect HTML5 video/audio state for controls visibility. r=jaws,dbaron
2012-06-01 15:10:37 -07:00
Mats Palmgren
4af9e1e450
Bug 760072 - Move RemoveFinishDependency() after the ok() so that the last test result comes before SimpleTest.finish(). r=dbaron
2012-06-01 20:52:37 +02:00
Boris Zbarsky
94b5beb86f
Bug 731447. Make buttons display:inline-block by default so that underlines don't reach into them. r=dbaron
2012-06-01 11:45:37 -04:00
Laurent Dulary
5f76a7e1fe
Bug 662251 - Default style and colors for the meter element. f=mounir r=bz,davidb
2012-05-16 12:26:42 +02:00
Yoan TEBOUL
cbbf51eb82
Bug 659999 - Add a meterbar and meterchunk appearances. f=mounir r=roc
2012-05-16 12:24:55 +02:00
Laurent Dulary
4f4090f3e7
Bug 660238 (2/3) - Add pseudo-class to access optimal, sub-optimal and sub-sub-optimal meter elements. f=mounir r=smaug
2012-05-16 13:23:31 +02:00
Shriram Kunchanapalli
52ac1d5caf
Bug 219767: Move font size functions in nsStyleUtil into nsRuleNode. r=dbaron
2012-05-31 10:09:46 +05:30
L. David Baron
4c91539c7a
Unprefix the border-image-* properties and add a temporary alias for -moz-border-image (but not for its subproperties, which we haven't shipped prefixed). (Bug 713643, patch 5) r=bzbarsky
2012-05-30 22:19:49 -07:00
L. David Baron
edbd83838f
Rename nsStyleBorder::GetActualBorderWidth to GetComputedBorderWidth. (Bug 713643, patch 4) r=bzbarsky
2012-05-30 22:19:49 -07:00
L. David Baron
6642be49cb
Remove nsStyleBorder::GetActualBorder, since it now does the same thing as nsStyleBorder::GetComputedBorder. (Bug 713643, patch 3) r=bzbarsky
2012-05-30 22:19:49 -07:00
L. David Baron
cc0f0f4f5c
Make the serialization of the 'border' shorthand fail when we have a 'border-image' subproperty or a '-moz-border-*-colors' property with a non-default value. (Bug 713643, patch 2) r=bzbarsky
2012-05-30 22:19:49 -07:00
L. David Baron
2cf7788598
Serialize border-image shorthand to shortest form, with the exception that we'll always serialize 'border-image-source'. (Bug 713643, patch 1) r=bzbarsky
2012-05-30 22:19:49 -07:00
Diogo Golovanevsky Monteiro
628405a8bf
Bug 713608 - HTML5 Video controls are missing in Fullscreen. f=fryn r=jaws,dbaron
2012-05-30 17:04:43 -07:00
Simon Montagu
f775bc123b
Prevent line numbers in view-source from participating in bidi reordering. Bug 751841, r=ehsan
2012-05-30 09:51:00 +03:00
Boris Zbarsky
fcf99ba406
Bug 758885. Don't apply the dynamic :hover reresolution skipping optimization to selectors which can match on mutable state other than :hover. r=dbaron
2012-05-29 00:17:45 -04:00
Vincent LAMOTTE
859886a242
Bug 657953 (1/2) - Implement the layout part of the meter element. r=roc
2012-05-16 17:47:10 +02:00
Frank Yan
ec74ac599d
Bug 673873 - Display placeholder when focusing empty input. r=mounir
2012-05-24 03:54:25 -07:00
Ed Morley
02a195b1f4
Backout 0d782874abea, 75571af38ce5 & bfd3a65c0feb (bug 673873) for increasing the failure rate of bug 702184
2012-05-24 14:12:19 +01:00
Frank Yan
6daa0281dc
Bug 673873 - Display placeholder when focusing empty input. r=mounir
2012-05-24 03:54:25 -07:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Benjamin Smedberg
eaa4878487
Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
...
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
L. David Baron
9c3e087f57
Don't use Moz prefix on internal function names in nsComputedDOMStyle for recommendation-track properties. (Bug 756219, patch 2) r=bzbarsky
...
This avoids using prefixes in internal code, in line with users of
nsCSSPropList.h, where we only make the CSS_PROP_DOMPROP_PREFIXED()
macro expand to use prefixes when it's needed for something that's
exposed.
2012-05-18 08:51:57 -04:00
L. David Baron
ab15079413
Remove unused functions from nsComputedDOMStyle. (Bug 756219, patch 1) r=bzbarsky
...
Remove unused DoGet* functions from nsComputedDOMStyle which are never
called because the shorthand properties that they're for aren't listed
in the value returned from GetQueryablePropertyMap (which is as it
should be).
2012-05-18 08:51:55 -04:00
Robert Longson
8953e7caaf
Bug 528332 - Implement non-scaling-stroke vector-effect. Part 1 - style system changes r=dbaron
2012-05-18 09:33:40 +01:00
Kang-Hao (Kenny) Lu
16b937e48c
Bug 752230 - Disallow control characters above 0x7e in CSS unquoted url() tokenization. r=dbaron
2012-05-14 19:01:05 -04:00
Boris Zbarsky
c8acd24873
Bug 753397. Add a field to nsCSSPropList for a preference that controls the property. r=dbaron
...
The actual controlling is not hooked up yet; that will happen in bug 753522 for
the DOM reflections of properties.
2012-05-09 21:29:37 -04:00
Makoto Kato
e70f17856c
Bug 249159 - Part 2 Implement CSS3 Text word-break property. r=dbaron, smontagu
2012-05-07 12:18:23 -07:00
Ms2ger
b849fe0a6c
Bug 745523 - Part a: prepare for unprefixing transforms by removing the prefix from internal APIs; r=dbaron
2012-05-05 11:00:04 +02:00
Kyle Huey
8f79312973
Bug 718539: Followup to fix MSVC warnings. r=me
2012-05-04 12:45:03 -07:00
Mats Palmgren
002ab4cc2a
Bug 615112 - Use correct type for a string length. r=bz
2012-05-04 02:14:01 +02:00
L. David Baron
bad1e080cc
Examine parentBorder only when parentContext is non-null. (Bug 749860) r=bzbarsky
2012-04-27 21:56:31 -07:00
Jonathan Kew
248ae5fed9
bug 739858 - cancel any in-progress loaders for @font-face rules that have been discarded when the font set is updated. r=jdaggett
2012-04-26 18:50:41 +01:00
Ed Morley
55e83a7ae7
Backout 476998cbd69f & f8654d020b1a (bug 739858) for compilation failures
2012-04-26 19:09:20 +01:00
Jonathan Kew
a39295d6c1
bug 739858 - cancel any in-progress loaders for @font-face rules that have been discarded when the font set is updated. r=jdaggett
2012-04-26 18:50:41 +01:00
Masatoshi Kimura
473d12ee2a
Bug 745498 - Add testcases for DOM4 exception types. r=sicking
2012-04-26 09:42:26 -07:00
John Daggett
112cffe3b1
Bug 718539. Update layout/style tests for new font-feature-settings syntax. r=dbaron
2012-04-26 15:24:54 +09:00
John Daggett
4984947d00
Bug 718539. Update font-feature-settings to latest spec syntax. r=dbaron
2012-04-26 15:24:26 +09:00
Nicholas Nethercote
43f329dbbd
Bug 744311 (part 1) - Preliminary whitespace and code order changes. r=jlebar.
...
--HG--
extra : rebase_source : f700733d8aa1aed1ae1f9206b4ee9063f9a03341
2012-04-09 22:52:33 -07:00
Boris Zbarsky
b38f6768b1
Bug 748254. When we encounter an unexpected '}' terminating a font-face descriptor's value, correctly close the font-face rule instead of eating the rest of the stylesheet. r=dbaron
2012-04-26 00:42:00 -04:00
Chris Pearce
e67b17755c
Bug 745067 - Remove margins by default on fullscreen elements. r=bz
2012-04-26 14:35:23 +12:00
Robert Longson
502eb38ee2
Bug 746632 - If no fallback colour is specified we shouldn't draw anything when the URL fails to resolve. r=dbaron
2012-04-25 13:33:47 +01:00
Mike Hommey
0ae0853a60
Bug 743241 - Remove OSARCH and OSTYPE defines from config.mk. r=ted
2012-04-25 09:01:10 +02:00