Commit Graph

17911 Commits

Author SHA1 Message Date
Martijn Wargers
55022997b9 Bug 899939 - Fix some tests that still use prefBranch instead of SpecialPowers.pushPrefEnv. r=jmaher 2013-07-31 11:30:54 +02:00
Ed Morley
a342f8508e Backed out changeset e27bd873b413 (bug 898361) for crashes on a CLOSED TREE 2013-07-31 16:00:27 +01:00
Dirk Schulze
d731d43c44 Bug 898361 - [CSS Filters] Implement parsing for drop-shadow. r=heycam 2013-07-31 09:26:45 -04:00
Corey Ford
de9204984b Bug 894716 - Parameterize nsLayoutUtils::GetNearestScrollableFrame. r=dbaron 2013-07-30 21:01:06 -07:00
Ed Morley
41f605077d Merge latest green fx-team changeset and mozilla-central 2013-07-31 13:02:44 +01:00
Ed Morley
661992e9a6 Backed out changeset f10f7c79846c (bug 883364) 2013-07-31 08:58:32 +01:00
Nicholas Cameron
e91b1d6d0d Bug 895873 - backout bug 893117 for Win8 mc bustage 2013-07-30 23:32:35 -04:00
John Daggett
d249819fcb Bug 892929 - test that CSSFontFeatureValueRule hidden when font features disabled. r=bz 2013-07-31 14:19:49 +09:00
Jeff Gilbert
c06bcdc03e Bug 883364 - Mark tests as failing on ARMv6. r=bjacob 2013-07-30 20:48:00 -07:00
Cameron McCormack
649b18b958 Bug 899385 - Update comments that incorrectly state nsIPresShell::AllocateBlah are fallible. r=dbaron 2013-07-31 10:52:32 +10:00
Cameron McCormack
5ecbce73bd Bug 899389 - Don't null check result of NS_NewStyleContext. r=dbaron 2013-07-31 10:52:32 +10:00
Cameron McCormack
c3e4238af9 Bug 897887 - Avoid calling ScheduleReflowSVGNonDisplayText when constructing frames during reflow. r=jwatt 2013-07-31 10:39:04 +10:00
L. David Baron
da01c5cc19 Bug 898329 patch 10: Fix wrapping of comment that I just reintended. r=heycam 2013-07-30 17:36:12 -07:00
L. David Baron
57f958e14c Bug 898329 patch 9: Fix indentation from previous patches. r=heycam 2013-07-30 17:36:12 -07:00
L. David Baron
a02c243076 Bug 898329 patch 8: Use for loops instead of while loops for iterating extra style contexts. r=heycam 2013-07-30 17:36:11 -07:00
L. David Baron
98a4c2fb01 Bug 898329 patch 7: Split ElementRestyler::Restyle into multiple functions. r=heycam 2013-07-30 17:36:11 -07:00
L. David Baron
2af34355c3 Bug 898329 patch 6: Avoid using pseudoTag outside of what will be in RestyleManager::RestyleSelf. r=heycam 2013-07-30 17:36:11 -07:00
L. David Baron
710616ca5c Bug 898329 patch 5: Create and use ElementRestyler::mResolvedChild. r=heycam 2013-07-30 17:36:11 -07:00
L. David Baron
91506255f9 Bug 898329 patch 4: Avoid using newContext outside of what will be in RestyleManager::RestyleSelf. r=heycam
This replaces newContext with mFrame->StyleContext(), which is a valid
replacement since all of the replacements are inside a test that we
don't have a framechange hint.  If we have a framechange hint, then
mFrame still has its old style context.
2013-07-30 17:36:11 -07:00
L. David Baron
3975fd1525 Bug 898329 patch 3.5: Don't check undisplayed content if we're going to reframe. r=heycam
This avoids doing work that is unnecessary; if we're going to reframe
anyway, the frame destruction will clear the undisplayed content list,
and we'll then rebuild it when we recreate the frame (if needed).

It is also a prerequisite for patch 4, which replaces some uses of
newContext with mFrame->StyleContext().  These are the same as long as
we don't have a framechange hint, since when we do have a framechange
hint we leave the old style context on the frame to avoid violating
invariants.  This patch ensures that all such uses replaced in patch 4
are actually inside a check that we don't have a framechange hint.
(Most of them already were.)
2013-07-30 17:36:11 -07:00
L. David Baron
d0a38cd3d7 Bug 898329 patch 3: Create and use ElementRestyler::mWasFrameVisible. r=heycam 2013-07-30 17:36:11 -07:00
L. David Baron
d9183ecce5 Bug 898329 patch 2: Fix indentation in ReParentStyleContext from patch 1. r=heycam 2013-07-30 17:36:11 -07:00
L. David Baron
bf823bc2af Bug 898329 patch 1: Remove null-checks on oldContext and newContext and avoid manual reference counting. r=heycam 2013-07-30 17:36:11 -07:00
L. David Baron
adc472405b Bug 898209 patch 15: Use constructor flags on ElementRestyler's regular constructor to avoid manipulating mHintsHandled from the outside. r=heycam
This is the second of two patches added on top to address review
comments on patch 2.
2013-07-30 17:36:10 -07:00
L. David Baron
2b712678c7 Bug 898209 patch 14: Add constructor flags to ElementRestyler's regular constructor so we can avoid manipulating mHintsHandled from the outside. r=heycam
This is the first of two patches added on top to address review comments
on patch 2.
2013-07-30 17:36:10 -07:00
L. David Baron
44f4309783 Bug 898209 patch 13: Create and use ElementRestyler::mTreeMatchContext. r=heycam 2013-07-30 17:36:10 -07:00
L. David Baron
5c401f6edc Bug 898209 patch 12: Create and use ElementRestyler::mVisibleKidsOfHiddenElement. r=heycam 2013-07-30 17:36:10 -07:00
L. David Baron
6b2087e3e9 Bug 898209 patch 11: Create and use member variables for accessibility notifications. r=heycam 2013-07-30 17:36:10 -07:00
L. David Baron
52da8b2e0f Bug 898209 patch 10: Create and use ElementRestyler::mRestyleTracker. r=heycam 2013-07-30 17:36:10 -07:00
L. David Baron
ffab6ee16c Bug 898209 patch 9: Create and use ElementRestyler::mParentFrameHintsNotHandledForDescendants and mHintsNotHandledForDescendants. r=heycam 2013-07-30 17:36:10 -07:00
L. David Baron
ab9add6061 Bug 898209 patch 8: Create and use ElementRestyler::mChangeList. r=heycam 2013-07-30 17:36:10 -07:00
L. David Baron
18534428b7 Bug 898209 patch 7: Fix remaining variable shadowing warning. r=heycam 2013-07-30 17:36:10 -07:00
L. David Baron
529ddab6a0 Bug 898209 patch 6: Create and use ElementRestyler::mParentContent and mContent. r=heycam 2013-07-30 17:36:09 -07:00
L. David Baron
a376d8d7e4 Bug 898209 patch 5: Remove the localContent variable in favor of writing mFrame->GetContent(). r=heycam 2013-07-30 17:36:09 -07:00
L. David Baron
68918352db Bug 898209 patch 4: Remove aPresContext parameter to ElementRestyler::Restyle. r=heycam 2013-07-30 17:36:09 -07:00
L. David Baron
3cc8ad7edd Bug 898209 patch 3: Create and use ElementRestyler::mFrame. r=heycam 2013-07-30 17:36:09 -07:00
L. David Baron
d809931f96 Bug 898209 patch 2: Create and use ElementRestyler::mHintsHandled. r=heycam 2013-07-30 17:36:09 -07:00
L. David Baron
7ad914dbc3 Bug 898209 patch 1: Add ElementRestyler class to begin refactoring ReResolveStyleContext. r=heycam 2013-07-30 17:36:09 -07:00
L. David Baron
75e4462ced Bug 898893: Rename nsTextFrameThebes.cpp back to nsTextFrame.cpp, from which it originally forked. r=roc
This was discussed in both:
https://groups.google.com/d/topic/mozilla.dev.tech.layout/5e4O84CO-sw/discussion
https://groups.google.com/d/topic/mozilla.dev.tech.layout/Cmvapo3fWeg/discussion

--HG--
rename : layout/generic/nsTextFrameThebes.cpp => layout/generic/nsTextFrame.cpp
2013-07-30 17:36:09 -07:00
L. David Baron
861d8da5a3 Bug 898892: Move nsStyleConsts.h from layout/base to layout/style. r=heycam
This fixes a mistake from bug 272151, as discussed in the thread
https://groups.google.com/d/topic/mozilla.dev.tech.layout/5e4O84CO-sw/discussion

--HG--
rename : layout/base/nsStyleConsts.h => layout/style/nsStyleConsts.h
2013-07-30 17:36:09 -07:00
L. David Baron
c857e1a9dd Bug 898888: Transition manager should use SetStyleContext rather than SetStyleContextWithoutNotification. r=nrc
While debugging bug 858937 I noticed that the transition manager was
calling nsIFrame::SetStyleContextWithoutNotification rather than
nsIFrame::SetStyleContext.  SetStyleContextWithoutNotification should
only be used for things that aren't really style changes, but are
instead changes we make during frame construction before things are
really initialized.  Anything that's really a dynamic style change, as
these are, should use SetStyleContext.

I realize I said the opposite in bug 780692 comment 186, and bz said the
same in bug 780692 comment 204, which is why this is the state that it
is.
2013-07-30 17:36:08 -07:00
L. David Baron
dec690eacf Bug 896138 patch 10: Move beginning and ending of ProcessPendingRestyles into helper functions on the RestyleManager. r=heycam 2013-07-30 17:36:08 -07:00
Ryan VanderMeulen
2ebd22d781 Merge m-c to inbound. 2013-07-30 18:08:18 -04:00
David Zbarsky
795f349564 Bug 893117: Remove nsIDOMHTMLMeterElement r=bz 2013-07-30 14:55:13 -07:00
David Zbarsky
0246c16dd7 Bug 893117: Remove nsIDOMHTMLLegendElement r=bz 2013-07-30 14:55:12 -07:00
David Zbarsky
4a6c9a63c0 Bug 893117: Remove nsIDOMHTMLProgressElement r=peterv 2013-07-30 14:55:11 -07:00
Timothy Nikkel
0c2d304b5a Bug 899745. Remove top most z-index tracking from views because it is unused. r=mats 2013-07-30 16:10:28 -05:00
Kartikaya Gupta
e0f930eb52 Bug 866232 - Only fire mozbrowserasyncscroll events on the top-level scrollable for backwards compatibility. r=BenWa 2013-07-30 14:03:42 -04:00
Kartikaya Gupta
5371e49e39 Bug 866232 - Update TabChild to better handle scrolling subframes. r=BenWa, mattwoodrow 2013-07-30 14:03:42 -04:00
Kartikaya Gupta
5c723f09e5 Bug 866232 - Add an APZCTreeManager to encapsulate the multiple APZCs corresponding to a given layer tree. r=BenWa, mattwoodrow 2013-07-30 14:03:40 -04:00
David Zbarsky
82250218e6 Backout 40683014a638 for causing mochitest orange 2013-07-29 21:11:01 -07:00
Cameron McCormack
c6363b28a7 Bug 898909 - Reflow non-display SVG text under non-display outer <svg> frames. r=jwatt 2013-07-30 09:47:30 +10:00
Cameron McCormack
f14bc297d5 Bug 898951 - Ignore undisplayed characters when getting partial glyph advances. r=jwatt
--HG--
extra : rebase_source : 535f6cf6b159b964cf47ca54f718b60656e3ca48
2013-07-30 09:44:48 +10:00
David Zbarsky
3b2bbf2c84 Bug 898105 - Remove nsIDOMTouch r=reuben 2013-07-29 16:04:09 -07:00
Ryan VanderMeulen
78c8d092c8 Merge m-c to inbound. 2013-07-29 18:42:45 -04:00
Ryan VanderMeulen
05ac7b8b7c Merge m-c to birch. 2013-07-29 16:07:59 -04:00
Tomoaki Konno
b0f30c01ba Bug 797561 - Expose a server tcp socket API to web applications r=honza 2013-07-29 10:36:43 -07:00
Ed Morley
213793252e Backed out changeset 31a1b6fff957 (bug 857142) for reftest failures 2013-07-29 11:09:26 +01:00
Ed Morley
b8c5ca2e7d Backed out changeset 7174bdf1201e (bug 857142) 2013-07-29 11:08:49 +01:00
Ed Morley
55f428f433 Backed out changeset c2f27bb078fd (bug 857142) 2013-07-29 11:08:46 +01:00
John Daggett
c1c75a67bf Bug 857142 - add reftest for osx-font-smoothing. r=m_kato 2013-07-29 17:34:01 +09:00
John Daggett
f227c3953c Bug 857142 - change name and switch to grayscale value. r=dbaron 2013-07-29 17:33:52 +09:00
John Daggett
f843bbb3ea Bug 857142 - implement -moz-font-smoothing. r=dbaron 2013-07-29 17:33:35 +09:00
Mina Almasry
1daa6026a6 Bug 898455 - remove domUtils.getCSSValuesForProperty duplicate entries; r= bz
Removes duplicate entries from the values that are returned by getCSSValuesForProperty,
and returns url for the proper properties.
2013-07-29 14:42:51 +02:00
Robert O'Callahan
9d7b42cb9c Bug 837242. Part 1: Convert bool parameters to flags. r=mats 2013-07-26 14:31:41 +12:00
Daniel Holbert
d8fe286474 backout 5efda3c30be3 (the second cset for bug 873378) after dzbarsky backed out the first cset. (to fix Android R2 orange) 2013-07-26 18:43:13 -07:00
David Zbarsky
4a272eb16a Backout 4c89002460da (Bug 873378) for breaking the settings app on B2G 2013-07-26 13:20:23 -07:00
Ryan VanderMeulen
6f9d09c6ba Bug 874073 - Skip crashtests/852293.html due to frequent timeouts. 2013-07-26 13:35:33 -04:00
Ryan VanderMeulen
29571661ef Bug 873083 - Skip crashtests/813372-1.html due to frequent timeouts. 2013-07-26 13:35:33 -04:00
Mina Almasry
1906621cce Bug 899230 - domUtils.getCSSValuesForProperty doesn't return "logical" and "physical" any list. r=bz
This patch prevents inIDOMUtils from returning logical and physical from any list.
2013-07-30 15:38:01 -04:00
Max Vujovic
186ff21e2a Bug 897094 - Mismatched parenthesis in some CSS functions do not prevent parsing of subsequent CSS properties. r=heycam 2013-07-30 15:38:01 -04:00
Ehsan Akhgari
5ee21d6d3f Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
John Daggett
48ee16093c Bug 857142 - add reftest for osx-font-smoothing. r=m_kato 2013-07-30 05:01:24 +09:00
John Daggett
49087c1b1c Bug 857142 - change name and switch to grayscale value. r=dbaron 2013-07-30 05:01:14 +09:00
John Daggett
b439b6e590 Bug 857142 - implement -moz-font-smoothing. r=dbaron 2013-07-30 05:00:41 +09:00
Ryan VanderMeulen
fe2024e105 Backed out 6 changesets (bug 827713) for reftest failures.
Backed out changeset 014cc3de08fb (bug 827713)
Backed out changeset 4113172193aa (bug 827713)
Backed out changeset 27a5c8dd5ff7 (bug 827713)
Backed out changeset 6448c7e05f11 (bug 827713)
Backed out changeset b67a72618c66 (bug 827713)
Backed out changeset 1279664e0d41 (bug 827713)
2013-07-29 15:19:34 -04:00
Ryan VanderMeulen
3855022645 Bug 827713 - Adjust expected assertion annotations to fix WinXP debug mochitest orange. 2013-07-29 15:13:50 -04:00
Trevor Saunders
6b3c839046 backout bug 886526 because it probably made us use a lot more memory to link on windows 2013-07-29 11:03:21 -04:00
James Kitchener
2d474cb243 Bug 827713 - Part 4: Tests for merged script elements. r=fredw 2013-07-29 12:38:24 -04:00
James Kitchener
ee1f2fa75c Bug 827713 - Part 3: Use mmultiscripts to handle all script shift elements. r=fredw 2013-07-29 12:37:50 -04:00
James Kitchener
e7bf58f9b9 Bug 827713 - Part 3: Make mmultiscripts more like msubsup. r=karlt 2013-07-29 12:37:01 -04:00
James Kitchener
d1493c9881 Bug 827713 - Part 1: Changes to mmultiscripts to support merging of script elements. r=karlt 2013-07-29 12:36:23 -04:00
Matthew Noorenberghe
02c643a992 Bug 894796 - Ignore about:blank loads for gfx recording to prevent prematurely closing the window. r=Bas
--HG--
extra : rebase_source : 05e49e728cc6696b2d15cda67548ac86140d9fe2
2013-06-28 23:26:28 -04:00
Mina Almasry
118935225c Bug 734861 - Add a waitForExplicitFinish() call to match the finish() call in test. r=bz 2013-07-26 11:59:35 -04:00
Carsten "Tomcat" Book
d6c5183f6b Backed out changeset 44c751cee3b1 (bug 837242) for suspicion of causing OSX Bustage CLOSED TREE 2013-07-26 09:25:03 +02:00
Dirk Schulze
0998a055aa Bug 897392 - Implement parsing of filter:hue-rotate(). r=heycam 2013-07-26 16:02:33 +10:00
Robert O'Callahan
7e76ab4eb6 Bug 837242. Part 1: Convert bool parameters to flags. r=mats
--HG--
extra : rebase_source : e59fe41c41f2be6b4f0c78528cf954093f3011bd
2013-07-26 14:31:41 +12:00
Robert O'Callahan
b4b3da2365 Bug 885009. Handle clip-all-descendants cases with rounded corners. r=mats
--HG--
extra : rebase_source : 284587e5fa70532bc6435f987f03c1282edc9cb8
2013-07-26 13:36:05 +12:00
Ryan VanderMeulen
1a6cb4b613 Merge m-c to inbound. 2013-07-26 01:24:55 -04:00
Ryan VanderMeulen
e8b26d740c Backed out changesets 4f35e943f939 and da5fa63e90cb (bug 896250) for causing frequent OSX debug asserts on a CLOSED TREE. 2013-07-26 01:22:40 -04:00
Milan Sreckovic
54932e81d6 Bug 896250: Return the max number, not the flag checking if the number was set. r=joe 2013-07-22 17:05:21 -04:00
Mats Palmgren
5ee8afbf8a Bug 868327 - Only allow the drop-down menu to open above the combobox if there is room for it, otherwise open it below even though it doesn't fit. r=roc 2013-07-25 12:55:32 +00:00
Masayuki Nakano
04c0fc2c90 Bug 501496 part.13 nsListControlFrame should handle key navigation at keydown event handler r=neil 2013-07-25 15:09:29 +09:00
Masayuki Nakano
ee03864f22 Bug 501496 part.10 nsXULPopupManager should handle keydown events for non-printable keys r=enndeakin 2013-07-25 15:09:29 +09:00
Masayuki Nakano
0f31ecd06d Bug 501496 part.9 EventUtils and some tests shouldn't synthesize keypress event if precede keydown event is consumed r=smaug 2013-07-25 15:09:29 +09:00
John Daggett
604c4d61cc Bug 886691 - switch from references to pointers for values within GetValue. r=dbaron 2013-07-25 15:02:15 +09:00
John Daggett
63463bcb7d Bug 886691 - make tests and serialization code sensitive to font features pref. r=dbaron 2013-07-25 15:01:41 +09:00
Cameron McCormack
6fe5b240f5 Bug 890773 - Compute -x-text-zoom properly. r=dbaron 2013-07-25 10:42:11 +10:00
Mats Palmgren
abda743f5b Bug 303896 - Refactor AttributeChanged() to follow code style and make it easier to read (no functional change). r=ehsan 2013-07-24 23:03:39 +00:00
Mats Palmgren
976dee9ded Bug 303896 - Turn on displaying the selection when the 'disabled' attr is removed if the element has focus. r=ehsan 2013-07-24 23:03:38 +00:00
Max Vujovic
dd92ca0dd1 Bug 895182 - [CSS Filters] Implement parsing for blur, brightness, contrast, grayscale, invert, opacity, saturate, sepia. Co-authored with Dirk Schulze (krit). r=heycam 2013-07-22 15:08:33 -07:00
Ryan VanderMeulen
6b307780d7 Backed out 6 changesets (bug 743402) for reftest failures on a CLOSED TREE.
Backed out changeset 19848fff857e (bug 743402)
Backed out changeset 049168537ae0 (bug 743402)
Backed out changeset 3098fea37f2d (bug 743402)
Backed out changeset ada93e976dca (bug 743402)
Backed out changeset c7907c54187f (bug 743402)
Backed out changeset 2edbbf6440c4 (bug 743402)
2013-07-24 15:14:04 -04:00
Scott Johnson
2c00aaf97f Bug 743402, Part 6: Add unit tests for functionality of bug 743402. [r=roc] 2013-07-24 12:47:24 -05:00
Scott Johnson
09919e2120 Bug 743402, Part 5: Utilize new computed height calculations in nsSplittableFrame to correctly compute the height of a column set frame in paginated context. [r=roc] 2013-07-24 12:47:21 -05:00
Scott Johnson
a2790e3b0b Bug 743402, Part 4: Refactor ApplySkipSides() and GetSkipSides() to return the correct value during reflow by adding an optional nsHTMLReflowState parameter. [r=roc] 2013-07-24 12:47:17 -05:00
Scott Johnson
1f13056eae Bug 743402, Part 3: Refactor nsBlockFrame to utilize new calculations for paginated content. [r=roc] 2013-07-24 12:47:12 -05:00
Scott Johnson
46a7e24a4c Bug 743402, Part 2: Pull GetEffectiveComputedHeight() into nsSplittableFrame and refactor it to utilize consumed height for paginated content. [r=roc] 2013-07-24 12:47:06 -05:00
Scott Johnson
b6e4526ae0 Bug 743402, Part 1: Add a GetConsumedHeight() function to nsSplittableFrame in order to retrieve the portion of the computed height that was consumed by previous-in-flows. [r=roc] 2013-07-24 12:47:01 -05:00
Ryan VanderMeulen
bc61d30573 Merge m-c to inbound. 2013-07-25 21:59:02 -04:00
Stephen Pohl
d8a27a209b Bug 896443: Fix the z-ordering of overlay scrollbars to make them appear on top of content with z-index > 0. r=roc 2013-07-25 21:31:35 -04:00
John Schoenick
2ee0ec1124 Bug 874843 - Fix typo in test r=typo 2013-07-25 13:20:42 -07:00
Eitan Isaacson
a06caea296 Bug 895711 - Mark new touches in touchstart as changed in HandleEventInner. r=smaug 2013-07-25 08:52:29 -07:00
Scott Johnson
2a937dfa58 Bug 743402, Part 6: Add unit tests for functionality of bug 743402. [r=roc] 2013-07-25 10:34:38 -05:00
Scott Johnson
fbf113619e Bug 743402, Part 5: Utilize new computed height calculations in nsSplittableFrame to correctly compute the height of a column set frame in paginated context. [r=roc] 2013-07-25 10:34:31 -05:00
Scott Johnson
894c1e922c Bug 743402, Part 4: Refactor ApplySkipSides() and GetSkipSides() to return the correct value during reflow by adding an optional nsHTMLReflowState parameter. [r=roc] 2013-07-25 10:34:27 -05:00
Scott Johnson
a860b0c4e2 Bug 743402, Part 3: Refactor nsBlockFrame to utilize new calculations for paginated content. [r=roc] 2013-07-25 10:34:22 -05:00
Scott Johnson
be7c5a1e25 Bug 743402, Part 2: Pull GetEffectiveComputedHeight() into nsSplittableFrame and refactor it to utilize consumed height for paginated content. [r=roc] 2013-07-25 10:34:16 -05:00
Scott Johnson
8e92c99740 Bug 743402, Part 1: Add a GetConsumedHeight() function to nsSplittableFrame in order to retrieve the portion of the computed height that was consumed by previous-in-flows. [r=roc] 2013-07-25 10:34:12 -05:00
Simon Sapin
136d638d18 Bug 887741 - Allow CSS at-rules in declaration lists. r=dbaron 2013-07-25 09:43:29 -04:00
Mina Almasry
fe501b5633 Bug 734861 - Expose stylesheets, including UA, for a document via inIDOMUtils. r=bz
This patch adds an API to inspector utils that gets all stylesheets associated with a document, including UA sheets.
2013-07-25 09:31:14 -04:00
Timothy Nikkel
33438547b6 Bug 837242. Part 3. Keep track of what area is exposed to events so that covered frames don't get events. r=roc 2013-07-30 11:22:46 -05:00
Timothy Nikkel
3cbce855ee Bug 837242. Part 2. Add a function to calculate the area of an nsRegion. r=roc 2013-07-30 11:22:43 -05:00
Mats Palmgren
dbea38ef61 Bug 897852 - Don't flush if we were destroyed. r=roc 2013-07-30 15:47:19 +00:00
Bobby Holley
44ef67cca0 Bug 898939 - Flip custom scope automation prefs for 449149-1{a,b}.html. r=bz
Bonus fix I noticed while working on this.

This was done before we flipped the default to make reftests always run with
dom.use_xbl_scopes_for_remote_xul=false (see reftest-cmdline.js). So to get
the full test coverage we're looking for here, we need to force the opposite
pref.
2013-07-30 08:43:45 -07:00
Jeff Muizelaar
7dfe172ed7 Bug 891650. Use mTransform instead of GetDTTransform() in Mask(). r=bas
GetDTTransform includes the device offset. We need to avoid that in order for things to work properly.

--HG--
extra : rebase_source : 5a8ae0011f16b85421df182263ec3137cecf6a6b
2013-07-30 10:15:27 -04:00
Ehsan Akhgari
9854ac6166 Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
Xidorn Quan
48b3365f04 Bug 786254 - SVG effects rendering doesn't pixel snap, causing faint vertical lines appear on some tabs. r=roc 2013-07-24 09:03:11 -04:00
Robert O'Callahan
95a0f3bc12 Bug 889219. Part 5: Remove nsSimplePageSequenceFrame::mCurrentPageFrame. r=mats
Holding onto frame pointers is potentially dangerous. It's not really necessary
to do so here.

--HG--
extra : rebase_source : d92798b59cd7b3032a2bb77a80f00ff590b2213a
2013-07-24 23:48:55 +12:00
Robert O'Callahan
fa04fb6b6d Bug 889219. Part 4: Stop heap-allocating nsSharedPageData::mHeadFootFont. r=mats
--HG--
extra : rebase_source : beaa74d12c905b4737ab3b6e736f8e5ad90942bb
2013-07-24 23:48:55 +12:00
Robert O'Callahan
7d894511d0 Bug 889219. Part 3: Clean up string usage for printing date/time headers. r=mats
--HG--
extra : rebase_source : 019de7d34f60f354a1ddd943d62c0656628f6263
2013-07-24 23:48:54 +12:00
Robert O'Callahan
aa021ed17f Bug 889219. Part 2: Clean up string usage for page numbers/formats. r=mats
--HG--
extra : rebase_source : 8088904e1f0d552368eb003cff6982710f6c9276
2013-07-24 23:48:54 +12:00
Robert O'Callahan
f51c1e6524 Bug 889219. Part 1: Clean up nsPrintEngine string usage for document titles/URLs. r=mats
--HG--
extra : rebase_source : 17a67d9956e9df9e19c86ea70ac3045e636c49ae
2013-07-24 23:48:37 +12:00
Cameron McCormack
7bd29a23dc Bug 897342 - Don't try to adjust text for textLength="" when there is no opportunity to do so. r=jwatt 2013-07-24 21:47:07 +10:00
Ms2ger
834f814430 Merge m-c to inbound. 2013-07-24 11:53:22 +02:00
Ms2ger
65809ecc1e Bug 896261 - Remove aAppendedThemedBackground arguments from nsDisplayBackgroundImage::AppendBackgroundItemsToTop, nsFrame::DisplayBackgroundUnconditional; r=roc 2013-07-24 09:38:55 +02:00
Ms2ger
a7fe79ef2e Bug 893925 - Cleanup nsILayoutHistoryState and nsGenericHTMLElement::GetPrimaryPresState; r=smaug 2013-07-24 09:38:13 +02:00
Ms2ger
35163e629e Bug 893909 - Part i: Cleanup SetOptionsSelectedByIndex; r=dzbarsky 2013-07-24 09:37:14 +02:00
Ms2ger
38c131d4be Bug 892489 - Implement the WebIDL API for CSSRuleList; r=bz 2013-07-24 09:27:17 +02:00
Gavin Sharp
2c3f5fdcc5 Bug 870100 followup: disable the thumbnail service in reftest/crashtest as well, a=RyanVM for CLOSED TREE 2013-07-23 11:16:25 -07:00
Ryan VanderMeulen
18c13d9bac Backed out changeset 1e1b4d5c51b7 (bug 896250) to see if it fixes the Android reftest orange.
CLOSED TREE
2013-07-23 14:06:40 -04:00
Jesse Ruderman
9615e1adab Detab layout/reftests/bidi/dirAuto/setDir.js. (No bug, DONTBUILD) 2013-07-23 22:58:58 -07:00
Cameron McCormack
4ff0f92bc1 Bug 895311 - Avoid calling ScheduleReflowSVGNonDisplayText when constructing frames during reflow. r=jwatt 2013-07-24 15:13:54 +10:00
David Zbarsky
040dbd4c2b Bug 894646 - Various dom deCOM cleanups r=Ms2ger 2013-07-23 16:39:17 -07:00
Bear Travis
bd6f78fea7 Bug 893298 - Correctly calculate button and button child's desired height to vertically center the child. r=bz 2013-07-18 14:21:47 -07:00
Ed Morley
b8d2e3631d Backed out changeset f24d81b85929 (bug 895182) for Windows build failures on a CLOSED TREE 2013-07-23 16:36:45 +01:00
Ryan VanderMeulen
742db914d3 Backed out changeset 83f4f6f435cf (bug 734861) for mochitest-5 timeouts. 2013-07-23 11:13:50 -04:00
Milan Sreckovic
e41e09833c Bug 896250 - Return the max number, not the flag checking if the number was set. r=joe 2013-07-22 17:05:21 -04:00
Max Vujovic
695c4ee979 Bug 895182 - [CSS Filters] Implement parsing for blur, brightness, contrast, grayscale, invert, opacity, saturate, sepia. Co-authored with Dirk Schulze (krit). r=heycam 2013-07-23 10:47:16 -04:00
Milan Sreckovic
7482429c48 Bug 895003 - Introduce a second preference to control the chrome paint flashing - nglayout.debug.paint_flashing_chrome. r=roc
The original pref still controls content and chrome when set. The preference is now live, for content and chrome, the change will be seen on the next refresh. The cached value is now in nsPresContext, rather than nsRefreshDriver.
2013-07-22 11:51:38 -04:00
Simon Sapin
2db3b1337a Bug 483446 - CSS3 'background-attachment: local' support. r=roc 2013-07-23 09:22:58 -04:00
Mina Almasry
45f882832c Bug 734861 - Expose stylesheets, including UA, for a document via inIDOMUtils. r=bz
This patch adds an API to inspector utils that gets all stylesheets associated with a document, including UA sheets.
2013-07-23 09:20:19 -04:00
Jonathan Kew
7bda5a6c80 backout bug 879963 (changesets 4a3befee43f1, 09c9359bdd43, 32ffcd6db605) due to Nightly crashiness, see bug 896200. 2013-07-23 09:38:57 +01:00
Stephen Pohl
213ea873be Bug 877857: Make hovered overlay scrollbars appear on top of non-hovered ones. r=roc 2013-07-23 00:21:55 -04:00
Stephen Pohl
5f44dec822 Bug 877097: Improve readability of ScrollbarActivity::GetRefreshDriver. r=mats 2013-07-22 22:46:27 -04:00
Ryan VanderMeulen
b14d9d9372 Merge inbound to m-c. 2013-07-22 21:47:13 -04:00
Daniel Holbert
e48962413a Bug 895023: Null-check SVG image document's root frame, before dereferencing it. r=seth 2013-07-22 13:42:05 -07:00
Robert O'Callahan
f263be618e Fix bustage for bug 886295 2013-07-22 16:30:18 +12:00
Robert O'Callahan
b8737f4a7f Bug 886295. Backout fix for bug 880854 to fix regression. r=mats
--HG--
extra : rebase_source : 66bc089c3ece4dbe4f6533fce97a902abdd4871a
2013-07-22 14:04:46 +12:00
James Willcox
5b0eed3326 Bug 888446 - Fuzz/fail more tests for SkiaGL r=gwright 2013-07-19 16:58:56 -04:00
Corey Ford
2e7839e1b0 Bug 894629 - Reference containing block's content box for relatively positioned elements in RestyleManager::RecomputePosition. r=dbaron 2013-07-22 09:28:31 -07:00
Ryan VanderMeulen
bd37be9bca Backed out changeset 123821ef07b4 (bug 893298) for Linux reftest failures. 2013-07-22 11:23:42 -04:00
Jeff Muizelaar
acce7fcc23 Bug 896489. Enable Azure CoreGraphics for content. r=joe
This only has an impact on OSX 10.7 and 10.8 because
it's only hooked up through OMTC right now.

--HG--
extra : rebase_source : 91b413be68ed0eaef9ef1c55a0ec730e89eac1e0
2013-07-22 10:54:10 -04:00
Bear Travis
1b0304b280 Bug 893298 - Correctly calculate button and button child's desired height to vertically center the child. r=bz 2013-07-18 14:21:47 -07:00
John Schoenick
36e6f1d03f Bug 874843 - Cleanup plugin_focus_helper test events to try and fix intermittent orange. r=roc 2013-07-22 08:55:19 -04:00
Chris Lord
f6b2427db2 Bug 886298 - Convert Layers fixed position margins to typed units. r=kats 2013-07-22 09:50:13 +01:00
Chris Lord
3404ab9f9d Bug 886298 - Add a typed-units Margin. r=kats 2013-07-22 09:50:11 +01:00
Chris Lord
28526bfea8 Bug 886298 - Convert Layers fixed position anchor to typed units. r=kats 2013-07-22 09:50:09 +01:00
David Zbarsky
1dc2112e9a Bug 895116: Remove some duplicated reftests r=roc 2013-07-21 04:16:29 -07:00
L. David Baron
a7c92a8198 Bug 896138 patch 9: Move RecomputePosition to a more logical place in the .cpp file, near other hint handling implementations. No review. 2013-07-20 12:14:25 -07:00
L. David Baron
bddec5dcdc Bug 896138 patch 8: Add setter for RestyleManager::mInStyleRefresh rather than using friend. r=heycam (within review comments for patch 4)
(The friend declaration is still needed for access to RestyleElement,
which I'd rather leave private.)
2013-07-20 12:14:25 -07:00
L. David Baron
2f2bcdb660 Bug 896138 patch 7: Remove unused aFrameManager parameters to some functions. r=heycam 2013-07-20 12:14:25 -07:00
L. David Baron
af0d77ef1f Bug 896138 patch 6: Move restyle management code from nsFrameManager to RestyleManager. r=heycam
This is the second of two big chunks of code moved into the new
RestyleManager class from another sources.

Note that the undisplayed map remains in nsFrameManager, although it
could perhaps have moved.
2013-07-20 12:14:25 -07:00
L. David Baron
f6bcebd856 Bug 896138 patch 5: Expose UndisplayedNode list from nsFrameManager. r=heycam
This is needed for the following patch, which leaves the undisplayed map
in nsFrameManager rather than moving it to RestyleManager (I think one
could argue for either way, but it was easier not to move it).
2013-07-20 12:14:25 -07:00
L. David Baron
a187fb3edb Bug 896138 patch 4: Move restyle management code from nsCSSFrameConstructor to RestyleManager. r=heycam
This moves restyling management out of nsCSSFrameConstructor (thus
reducing its size), and keeps the restyling code closer together.

This is the first of two big chunks of code moved in this patch series.
A later patch in this series will move related code from nsFrameManager
into the same destination file.
2013-07-20 12:14:25 -07:00
L. David Baron
11ba191059 Bug 896138 patch 3: Remove forward declaration of struct that hasn't been in this class since changeset e0df6dfdaaca (Bug 479655 part 3). r=heycam 2013-07-20 12:14:24 -07:00
L. David Baron
7a1d9ead26 Bug 896138 patch 2: Add a RestyleManager class. r=heycam
The later patches in this series will move restyling code into this file
from nsCSSFrameConstructor and nsFrameManager.
2013-07-20 12:14:24 -07:00
L. David Baron
247e5c9e81 Bug 896138 patch 1: Move RestyleTracker and OverflowChangedTracker out of nested namespace mozilla::css (which shouldn't exist) into namespace mozilla. r=heycam 2013-07-20 12:14:24 -07:00
Jeff Muizelaar
033b09aa7a Bug 895135. Avoid normalizing gradients to a smaller interval than 0..1. r=roc
Previously if we had all the stops at the same location, we'd end up putting
them all at 0. This makes things harder for backends that implement gradients
with a lookup table because they don't have room for multiples entries at the
zero location. If instead we leave the stops at the same location on the 0-1
line we'll have a better chance of drawing them correctly.

--HG--
extra : rebase_source : d57553d90e3eef288ca41576573f1c1def97da7e
2013-07-20 08:58:10 -04:00
Nicholas Cameron
88b5d20e12 Bug 700926; reshuffle background image drawing. r=roc
--HG--
extra : rebase_source : 4e4786a75cfdccc47ffa524331792eab3a7a83ea
2013-07-19 20:40:02 +12:00
Nicholas Cameron
1e0a3c643f Bug 700926. Refactor image sizing to be closer to the spec and not tied to backgrounds. r=roc
--HG--
extra : rebase_source : b6fa8a526f8642089d9cd6af47948006f2673ab6
2013-07-19 20:39:58 +12:00
Ryan VanderMeulen
29494254ec Backed out changeset 319da88f992e (bug 893298) for B2G reftest failures. 2013-07-19 13:06:10 -04:00
Reuben Morais
c12172d5c5 Bug 873346 - Fix sometimes-unitialized warning in nsImageMap. r=dbaron
--HG--
extra : rebase_source : dcc8013bb0542a69edb43c86fddc3f4075b4e7d5
2013-07-17 20:28:23 -07:00
Robert O'Callahan
4adfeb412d Bug 894931. Add reftest. r=dbaron 2013-07-19 11:22:40 -04:00
Simon Montagu
a5867e85dd Move the caret invalidation from CharacterDataChanged to CharacterDataWillChange so that the text doesn't change under the caret before invalidation. Bug 887631, r=ehsan 2013-07-19 17:44:46 +03:00
Mina Almasry
4255fc61dd Bug 895076 - domUtils.getCSSValuesForProperty now returns non keyword values. r=bz
This patch makes getCSSValuesForProperty return some none keyword values: auto,
normal, none, all, calc, -moz-calc, -moz-element, -moz-element-rect, rgb, hsl, -moz-rgba, -moz-hsla, rgba, hsla, cubic-bezer, and steps.
2013-07-19 10:32:52 -04:00
Bear Travis
119cc532a5 Bug 893298 - Correctly calculate button and button child's desired height to vertically center the child. r=bz 2013-07-18 14:21:47 -07:00
Mina Almasry
dfa6ae2f5f Bug 291082 - preventDefault now blocks keyboard navigation in select-one drop-down lists. r=mounir, r=Neil
This patch makes select drop-down lists respect preventDefault keypress event, and so the select list doesn't process them anymore.
2013-07-19 10:32:51 -04:00
Jonathan Kew
620f28acc0 bug 879963 - test for redundant downloading of a repeated @font-face resource. r=dbaron 2013-07-17 12:53:38 +01:00
Jonathan Kew
61edd65b1e bug 879963 - part 2 - avoid adding duplicate face entries to a user font family. r=dbaron 2013-07-17 12:53:31 +01:00
Jonathan Kew
b4ef30ac5c bug 879963 - part 1 - preserve in-progress font loaders when updating the user font set. r=dbaron 2013-07-17 12:53:24 +01:00
Matt Woodrow
49016db6ea Bug 889515 - Get rid of static sCompositorParent. r=nical 2013-07-11 22:32:09 -04:00
Reuben Morais
48ce7155b0 Backed out changeset 12a2fa9940f4 (bug 893117) 2013-07-18 20:01:54 -07:00
James Willcox
1561ddb942 Bug 888446 - Add some fuzz to make Skia canvas pass on Android r=bjacob,gwright 2013-06-28 16:01:54 -04:00
David Zbarsky
b1219acb3f Bug 893117: Remove nsIDOMHTMLProgressElement r=peterv 2013-07-18 17:43:38 -07:00
Benoit Girard
4721c89e1c Bug 873378 - Mark layout/reftests/bugs/433700.html as passing on mobile because of layer restrictions. ON A CLOSED TREE r=bustage 2013-07-18 19:36:17 -04:00
Benoit Girard
72ce20909b Bug 873378 - Add a limit on mobile of 20 layers per container layer. r=roc 2013-07-16 16:17:18 -04:00
Ryan VanderMeulen
0439786998 Merge m-c to inbound on a CLOSED TREE. 2013-07-18 14:53:05 -04:00
Robert O'Callahan
3bf479558f Bug 870941. Make scrollframes put scrollbars etc above content in z-order if they're disappering scrollbars. r=mattwoodrow 2013-07-18 10:10:13 -04:00
L. David Baron
cf6b1d7395 Back out changeset e8bf739addfa (bug 868498 patch 2) for causing bug 894931. 2013-07-18 01:09:16 -07:00
Seth Fowler
513f5836e2 Bug 885939 (Part 3) - Disable SVG reftests involving extreme viewboxes that fail due to integer overflow. r=me 2013-07-16 15:41:36 -04:00