Shawn Wilsher
b6e4bfa8f1
Bug 542632 - Protect nsGenericHTMLElement::GetHrefURIForAnchors
...
Also makes DNS prefetching take mozilla::dom::Link instead of nsIContent.
r=bz
2010-02-24 08:37:03 -08:00
Shawn Wilsher
149f5aac0a
Bug 542592 - Change how we use/store nsDocument::mLinkMap
...
This makes changes nsDocument::mLinkMap in a number of ways:
1) renamed to mStyledLinks to better reflect its new nature.
2) change it to an nsTHashtable of Link*. It no longer has a strong reference
3) add some assertions to make sure we call ForgetLink and AddStyleRelevantLink
in pairs.
This also makes mozilla::dom::Link::ResetLinkState take a boolean indicating if
we should notify or not.
r=bz
2010-02-24 08:37:03 -08:00
Shawn Wilsher
aa9b0c2fd7
Bug 461199 (Part 26) - Update content tests to work with the new async isVisited API
2010-02-24 08:37:03 -08:00
Shawn Wilsher
94b3600d96
Bug 461199 (Part 28) - Tell the document that we are a style relevant link
...
Adds the needed calls to inform the document if we are a style relevant link,
and when we no longer are.
r=bz
2010-02-24 08:37:03 -08:00
Shawn Wilsher
aab3b02a8b
Bug 461199 (Part 23) - Remove no longer needed code in ns[I]Document.[cpp|h]
...
r=bz
2010-02-24 08:37:02 -08:00
Shawn Wilsher
40dabb5bd0
Bug 461199 (Part 22) - Call ResetLinkState if given eLinkState_Unknown
...
If consumers tell mozilla::dom::Link::SetLinkState that its new state is
eLinkState_Unknown, call mozilla::dom::Link::ResetLinkState and return.
r=bz
2010-02-24 08:37:02 -08:00
Shawn Wilsher
5c712b68a2
Bug 461199 (Part 21) - Cache the nsIContent pointer in Link for performance reasons
...
Add a Content method that obtains a pointer to the nsIContent interface on
mozilla::dom::Link. This is cached so we only have to call QueryInterface once
during the entire lifetime of the mozilla::dom::Link object.
r=bz
2010-02-24 08:37:02 -08:00
Shawn Wilsher
1e53ff806b
Bug 461199 (Part 19) - nsSVGAElement fails to call ResetLinkState in [Uns|S]etAttr
...
Have nsSVGAelement implement UnsetAttr and SetAttr, and make sure it calls
mozilla::dom::Link::ResetLinkState when appropriate.
r=jwatt
sr=bz
2010-02-24 08:37:02 -08:00
Shawn Wilsher
8d82ffe93c
Bug 461199 (Part 14) - Implement nsIContent::IntrinsicState on mozilla::dom::Link subclasses
...
All mozilla::dom::Link subclasses need to implement IntrinsicState and make sure
to call LinkState.
r=sicking
sr=bz
2009-12-15 16:04:09 -08:00
Shawn Wilsher
5a5b1276de
Bug 461199 (Part 13) - mozilla::dom::Link::SetLinkState should inform the document about changes to its state when it is called.
...
Make Link::SetLinkState notify the document about changes in state, plus a
whole bunch of assertions for sanity checking.
r=sicking
r=bz
2009-12-15 16:04:07 -08:00
Shawn Wilsher
2171f3f5d2
Bug 461199 (Part 12) - mozilla::dom::Link should unregister with mozilla::IHistory when it goes away
...
Call UnregisterWithHistory in Link's destructor to ensure that we are no longer
registered with IHistory.
r=sicking
sr=bz
2009-12-15 16:01:53 -08:00
Shawn Wilsher
258c845043
Bug 461199 (Part 11) - [un]register in mozilla::dom::Link::[Reset]LinkState
...
Register with History in mozilla::dom::Link::LinkState and unregister in
mozilla::dom::Link::RestLinkState.
r=bz
2009-11-23 10:48:52 -08:00
Shawn Wilsher
3a408ccc92
Bug 461199 (Part 10) - Ensure that Link::ResetLinkState is always called when an element is bound or unbound from the DOM tree.
...
We would not be notified about base URI changes during this time, so we need to
make sure we are not registered and have no cached state.
r=bz
r=jwatt
2009-11-23 10:48:52 -08:00
Shawn Wilsher
c74c499d06
Bug 461199 (Part 9) - Move href helpers from nsGenericHTMLElement to mozilla::dom::Link.
...
Move the helpers so that they can easily use the cached URI when available.
r=sicking
sr=bz
2009-11-09 10:00:54 -08:00
Shawn Wilsher
2849d7ab1f
Bug 461199 (Part 8) - Remove nsAttrValue::eLazyURIValue and related code
...
Stop using lazy href attributes in nsAttrValue. Link will store it as needed.
r=sicking
sr=bz
2009-11-09 10:00:54 -08:00
Shawn Wilsher
7138f81c0a
Bug 461199 (Part 7) - mozilla::dom::Link should have a method to obtain a cached URI
...
Add mozilla::dom::Link::GetURI method used to cache the URI for this element.
r=bz
2009-11-09 10:00:54 -08:00
Shawn Wilsher
a0f960d660
Bug 461199 (Part 6) - nsSVGAElement::GetHrefURI is not implemented
...
Fixes nsSVGAElement::GetHrefURI so that it actually returns a URI when it is a
link instead of nsnull.
r=jwatt
2009-11-09 10:00:54 -08:00
Shawn Wilsher
3c5791490b
Bug 461199 (Part 5) - Add mozilla::dom::Link::LinkState
...
Adds a LinkState method that should be called by subclasses when they get asked
about their IntrinsicState.
r=sicking
sr=bz
2009-11-09 10:00:53 -08:00
Shawn Wilsher
f0cb06c199
Bug 461199 (Part 3) - Create a cached getter for mozilla::IHistory on nsContentUtils.
...
r=sicking
2009-11-09 10:00:53 -08:00
Boris Zbarsky
966f597e72
Bug 534526 part 3. Change the ordering in nsSVGElement::UnsetAttr. r=longsonr
2010-02-23 23:37:47 -05:00
Boris Zbarsky
ebac0e31a3
Bug 534526 part 2. Move AttributeWillChange out of SetAttrAndNotify, and in particular to before ParseAttribute, since some ParseAttribute implementations actually change the attribute value. Also move it to before we've changed the CSSDeclaration for inline style changes. r=sicking,longsonr,dbaron
2010-02-23 23:37:47 -05:00
Boris Zbarsky
0aef843d39
Bug 534526 part 1. Remove a SetAttrAndNotify caller by making XUL inherit from nsStyledElement. r=sicking
2010-02-23 23:37:46 -05:00
Ben Turner
e8124b22b1
Bug 537572 - 'Workers: nsLayoutStatics refcounting isn't threadsafe, triggered via nsContentUtils::WrapNative'. r+sr=sicking
2010-02-23 17:44:52 -08:00
Sid Stamm
ba3276f601
fix tinderbox test hang after landing bug 515442. r=dveditz
2010-02-23 16:37:38 -08:00
Daniel Veditz
e8e0b08526
Forgot tests for bug 515442
2010-02-23 14:28:18 -08:00
Daniel Veditz
ac0251d255
bug 515442 CSP inline script protection
2010-02-23 13:20:46 -08:00
Robert Longson
dded1dc9d5
Bug 547596 - zoom events do not fire. r=jwatt
2010-02-23 20:39:15 +00:00
Jonas Sicking
62651da7b8
Bug 547850: Make case folding code in HTML DOM only case fold ASCII characters. r=hsivonen
2010-02-23 09:38:10 -08:00
Boris Zbarsky
d14db3049f
Bug 530373 followup. Fix build bustage.
2010-02-22 15:13:19 -05:00
Jae-Seong Lee-Russo
30218c70c3
Bug 530373. Use NS_MIN/NS_MAX instead of PR_MIN/PR_MAX in DOM code. r=bzbarsky
2010-02-22 14:41:19 -05:00
Frédéric Wang
8b46e8bd69
Bug 530275. Move more MIME types into nsMimeTypes.h so we don't have to hardcode the strings in various places. r=bzbarsky
2009-11-21 00:12:42 +01:00
Saint Wesonga
f78442c0ad
Bug 523417 - "warning: invoking macro NS_ENSURE_SUCCESS argument 2: empty macro arguments are undefined in ISO C90 and ISO C++98" in DOM worker code. r=jst
2010-02-22 18:41:21 +01:00
Alexander Surkov
be2b5e3966
Bug 534527 - Accessibility needs new DOM API part 2, r=smaug, sr=bz
2010-02-20 16:52:50 -08:00
Daniel Holbert
1c36459f3b
Bug 533291 Patch Z: Enable "don't recompose if we know our animated value can't have changed" optimization, and add tests. r=roc
2010-02-20 13:13:11 -08:00
Daniel Holbert
9123e91013
Bug 533291 Patch E: Add another outparam to nsISMILAttr::ValueFromString, to let us know whether we can re-use the parsed result in the future. r=roc
2010-02-20 13:13:11 -08:00
Daniel Holbert
abcd247e08
Bug 533291 Patch D: Cache base value with each SMIL compositor, since we need to recompose when base value changes. r=roc
2010-02-20 13:13:11 -08:00
Daniel Holbert
f2e36498c9
Bug 542670 Patch B: Add specialized implementations for nsISMILType::IsEqual. r=roc
2010-02-20 13:13:11 -08:00
Daniel Holbert
a9ff273b62
Bug 542670 Patch A: Add equality operator for nsSMILValue. r=roc
2010-02-20 13:13:11 -08:00
Daniel Holbert
6512adf203
Bug 533291 Patch C: When an inactive nsSMILAnimationFunction has changed, force its target to recompose during that sample. r=roc
2010-02-20 13:13:11 -08:00
Daniel Holbert
c85d4fe6db
Bug 533291 Patch B: Add method nsSMILAnimationFunction::UpdateCachedTarget, to tell when an animation function's target has changed. r=roc
2010-02-20 13:13:11 -08:00
Daniel Holbert
b927b3d9ae
Bug 533291 Patch A: Create classes nsSMILTargetIdentifier & nsSMILWeakTargetIdentifier, based on nsSMILCompositorKey. r=roc
2010-02-20 13:13:11 -08:00
Neil Deakin
65465d8068
Bug 528491, combine nsFocusController and nsWindowRoot, r=jst,sr=smaug
2010-02-20 11:07:03 -05:00
Justin Lebar
f7fb801ff8
Bug 519400: Speed up Canvas's [get|put]ImageData() r=vlad
2009-12-04 19:21:45 -08:00
Boris Zbarsky
78a74029ee
Bug 547342 attempted fix. Since scrollToRow doesn't flush layout, and since layout is what sets up the tree view, and since scrollToRow bails out early if there's no view, make sure to flush layout before calling scrollToRow. But we should really consider fixing scrollToRow instead.
2010-02-19 23:35:17 -05:00
Daniel Holbert
2dad1d18f6
Followup to Bug 541884: Fix --disable-smil build bustage by moving SVGViewBoxSMILType.cpp within Makefile
2010-02-19 12:39:30 -08:00
Boris Zbarsky
fa4effe1c0
Bug 545927. Check for negative numbers before doing roman-numeral stuff. r=sicking
2010-02-19 12:11:40 -05:00
Jonathan Watt
20a0206062
Bug 541884 follow-up to use IsNull() instead of checking mPtr manually. r=dholbert
2010-02-19 13:28:23 +00:00
Ehsan Akhgari
9d92eb48f9
Merge backout of changeset 70b1ccb14325
2010-02-18 19:02:08 -05:00
Ehsan Akhgari
50f48242c4
Backed out changeset 70b1ccb14325
2010-02-18 18:52:12 -05:00
Jonathan Watt
f2e0136d80
Bug 540588. Add support for SMIL animation of <integer> attributes in SVG. r=dholbert
2010-02-18 21:51:00 +00:00