Commit Graph

38471 Commits

Author SHA1 Message Date
Justin Dolske
dcc6796023 Bug 545734 - need to hide the iframe used for submitting plugin crash reports. r=ted.mielczarek 2010-02-15 19:29:00 -08:00
Paul O’Shannessy
acb67d3f39 Bug 535689 - Avoid clobbering and replacing password value when moving focus outside of username field [r=dolske] 2010-02-24 12:02:24 -08:00
Paul O’Shannessy
6af0de413b Reduce extraneous console output from DNS Service when offline [r=dwitte] 2010-02-24 11:59:26 -08:00
Jonathan Kew
3d28b28018 Bug 524107 - part 2 - store language as atom instead of string in gfxFontStyle. r=roc sr=mats 2010-02-24 09:57:57 -08:00
Jonathan Kew
e9d0f828e0 Bug 524107 - part 1 - pass original value of 'lang' to gfx text code rather than only a 'langGroup' value, to allow language-specific font rendering. r=roc sr=mats 2010-02-24 09:57:44 -08:00
Shawn Wilsher
cb0509c597 Bug 461199 (Part 30) - Fixes invalidation issues when changing the href attribute.
r=bz
2010-02-24 08:37:38 -08:00
Shawn Wilsher
376df21743 Bug 461199 (Part 29) - Fix dom tests.
r=sicking
2010-02-24 08:37:03 -08:00
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
17cfa3d578 Bug 461199 (Part 27) - Fix test_visited_pref.html so it passes with the new async isVisited API
r?dbaron
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
843b58d6fe Bug 461199 (Part 25) - Fix layout reftests to work with the new async isVisited API
r=jwatt
2010-02-24 08:37:03 -08:00
Shawn Wilsher
0a2aa1b513 Bug 461199 (Part 24) - Update docshell tests to work with the new async isVisited API
r=bz
2010-02-24 08:37:02 -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
Ehsan Akhgari
d14f0f9897 Bug 461199 (Part 20) - Rewrite the private browsing visited link coloring test to make it work with the new async API
r=mconnor
r=sdwilsh
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
201e801a1f Bug 461199 (Part 18) - Need an observer notification to indicate when link status is known from the database
Adds an observer to indicate when a URI lookup is completed and passes the
visited state with the notification.  This greatly simplifies test writing.
r=mak
2010-02-24 08:37:02 -08:00
Shawn Wilsher
2fd7f20bd1 Bug 461199 (Part 17) - Remove no longer needed code from webshell and docshell.
r=bz
sr=sicking
2009-12-15 16:04:18 -08:00
Shawn Wilsher
abba56baee Bug 461199 (Part 16) - Remove now unused style code testing for Link and HTML Links.
r=bz
sr=dbaron
2009-12-15 16:04:15 -08:00
Shawn Wilsher
27a2fcd36e Bug 461199 (Part 15) - Rely on nsIContent::IntrinsicState instead of nsIContent::GetLinkState in layout.
Layout should call IntrinsicState instead of GetLinkState.  Simplifies a lot of
logic, and makes the code easier to follow.
r=bz
sr=dbaron
2009-12-15 16:04:12 -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
Neil Deakin
ae97c93329 Bug 543065, only scroll one ancestor of menus, back out due to scrolling regressions 2010-02-24 10:34:39 -05:00
John Daggett
d33c429bba Bug 533251. Always insert default font if needed when rebuilding font list. r=jkew 2010-02-24 16:18:49 +09:00
Doug Turner
6dbfd82c90 merge 2010-02-23 23:11:34 -08:00
Doug Turner
99bbb9251a Backed out Bug 489813 / changeset 0542680c6f74 2010-02-23 23:11:18 -08:00
Boris Zbarsky
51305f265d Merge a push that I failed to actually push to the right tree initially 2010-02-24 00:08:52 -05:00
Ricardo Bittencourt
e6a3b1a9b5 Bug 431524. Make the 'cursor' set on a file input work for its button too. r=bzbarsky, ui-r=alimi 2010-02-23 23:37:47 -05:00
Boris Zbarsky
d2033f6182 Bug 547239. Don't lose our POST body on 307 redirects and internal proxy-related redirects. r=sicking. r=jduell and biesi pending. 2010-02-23 23:37:47 -05:00
Boris Zbarsky
066dd6ebce Bug 534526 part 4. Tests. 2010-02-23 23:37:47 -05: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
Doug Turner
8191486eee Bug 489813 - fire geolocation timeout error if the provider fails to response after initial response. r=olli
--HG--
extra : rebase_source : 03c08ca4f017302e8ae2e63cdb844c62f01c234e
2010-02-23 20:27:27 -08:00
Rob Arnold
229645f4b2 Bug 541182 - Custom CSS cursor not working; Remove GetSystemMetric check.
r=jmathies.
2010-02-24 05:42:29 +01:00
Serge Gautherie
352641e1f7 Bug 512520 - remove Maemo geolocation providers; (Bv1) Clean up nsGeolocation.cpp too.
r=dougt.
2010-02-24 05:36:29 +01:00
Jonas Sicking
703cc57e55 Bug 548171: Make getFile function on SERVER_ROOT platform independent. r=waldo 2010-02-23 18:04:35 -08: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