Commit Graph

955 Commits

Author SHA1 Message Date
Mats Palmgren
8f8e2b6f4d Bug 898913 - Look for the floating first-letter frame to remove on the kPushedFloatsList too. r=dholbert 2013-08-10 23:00:46 +00:00
Corey Ford
b5d0de4090 Bug 901610 - Use nsStyleDisplay::IsRelativelyPositioned in constructing frames for IB splits. r=dbaron 2013-08-07 16:30:34 -07:00
Cameron McCormack
e9318247c3 Bug 899894 - Don't null check nsStyleSet::ResolveBlah return values. r=dbaron 2013-08-03 14:11:06 +10:00
David Zbarsky
c799af0ead Bug 893117: Remove nsIDOMHTMLLegendElement r=bz 2013-08-01 15:24:24 -07:00
David Zbarsky
59d52bfb66 backout Bug 893117 for mochitest failure 2013-08-01 01:54:09 -07:00
David Zbarsky
be987cad58 Bug 893117: Remove nsIDOMHTMLLegendElement r=bz 2013-07-31 23:12:40 -07:00
Nicholas Cameron
e91b1d6d0d Bug 895873 - backout bug 893117 for Win8 mc bustage 2013-07-30 23:32:35 -04:00
David Zbarsky
0246c16dd7 Bug 893117: Remove nsIDOMHTMLLegendElement r=bz 2013-07-30 14:55:12 -07: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
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
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
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
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
William Chen
9e883ad8f5 Bug 796061 - Part 2: Remove mInsertionParentTable from nsBindingManager. r=mrbkap 2013-07-17 09:05:06 -07:00
Cameron McCormack
4d5eacea09 Bug 890782 - Part 2: Make NS_STATE_SVG_NONDISPLAY_CHILD a global state bit and rename it. r=jwatt 2013-07-12 17:13:07 +10:00
Blake Kaplan
2a5c30ab9f Bug 890775 - Not all xbl:children elements should be treated specially. r=peterv 2013-07-11 17:52:49 -04:00
Blake Kaplan
ea4da60962 Bug 891088 - Rename nsXBLChildrenElement -> mozilla::dom::XBLChildrenElement. r=peterv
--HG--
rename : content/xbl/src/nsXBLChildrenElement.cpp => content/xbl/src/XBLChildrenElement.cpp
rename : content/xbl/src/nsXBLChildrenElement.h => content/xbl/src/XBLChildrenElement.h
2013-07-01 15:09:37 -07:00
Robert O'Callahan
4880204640 Bug 722923. Part 4: Don't walk continuation chain in SyncViewsAndInvalidateDescendants since DoApplyRenderingChangeToTree already does that. r=matspal
--HG--
extra : rebase_source : 76d249a52afdcb999f56da6842cf8c96c9e8088a
2013-07-06 23:53:42 +12:00
Robert O'Callahan
cd568e152e Bug 722923. Part 3: Rename UpdateViewsForFrame and document it properly. r=matspal
--HG--
extra : rebase_source : cc54527bec2d7d049b1abfb079587c183d35899d
2013-07-06 23:53:40 +12:00
Cameron McCormack
40bd0412fb Bug 842181 - Prevent text zoom from affecting SVG text. r=dbaron 2013-06-29 13:28:50 +10:00
William Chen
4adfddabf1 Bug 653881 - Push <xbl:children> in ancestor filter. r=bz,dbaron
--HG--
extra : rebase_source : 9aafffadd2451ca7274e99d7e07d0d71ea52ca02
2013-05-30 17:39:08 -07:00
Blake Kaplan
55ee93f1af Bug 653881 - Rework XBL insertion points and clean up related code to more closely follow the Web Components model. Instead of maintaining a hashtable of insertion points in bindings (and removing insertions points from the tree) leave the insertion points in the tree as explicit placeholders and teach all other relevant code how to walk the explicit children of elements via two iterators (ExplicitChildIterator and FlattenedChildIterator). Note that this patch does not maintain 100% compatibility with the previous code: there are bug fixes and behavior changes included. For example, by having explicit insertion points in the bindings, it is now easier to handle dynamic changes to the bound element correctly (as well as, eventually, handling dynamic changes to the binding correctly). Patch originally by sicking. r=bzbarsky
--HG--
extra : rebase_source : 6926ae8ea57b20f4067b16bd3d7bd85bda854756
2013-05-01 15:50:08 -07:00
Justin Lebar
6c46d0633d Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Justin Lebar
75c400493b Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else

This is a mechanical change made with sed.  Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
L. David Baron
10bf116e6a Bug 858937 patch 1: Add nsLayoutUtils::GetStyleFrame() variant taking nsIContent*, and use it for two existing users of the variant taking nsIFrame*. r=nrc 2013-06-24 22:32:10 -07:00
Phil Ringnalda
42e2a3397c Back out 2332bb3fe186:10f70b8b04fe (bug 858937) for warnings-as-errors bustage
CLOSED TREE
2013-06-24 23:42:05 -07:00
L. David Baron
60056772e7 Bug 858937 patch 1: Add nsLayoutUtils::GetStyleFrame() variant taking nsIContent*, and use it for two existing users of the variant taking nsIFrame*. r=nrc 2013-06-24 22:32:10 -07:00
Robert O'Callahan
fcc41b30be Bug 880854. Part 2: Support reflows/frame reconstruction in print/print-preview documents by promoting them to frame reconstruction of the whole document. r=mats
--HG--
extra : rebase_source : e81c5cd0f9da7bbcd876669c4b9de46dac825a5d
2013-06-18 23:41:30 +12:00
Robert O'Callahan
8b77b266e2 Bug 875060. Make display:-moz-stack/-moz-inline-stack elements which are overflow:hidden clip all their descendants, including those for which it is not the containing block. r=mats 2013-06-17 17:16:27 +12:00
Daniel Holbert
8916bad070 Bug 403297: Skip "Unable to test style tree integrity" warning for viewport frames. r=bz 2013-06-17 19:44:09 -07:00
Ms2ger
5855c26d0d Bug 880694 - Improve HTMLSelectElement::IsCombobox and use it in nsCSSFrameConstructor; r=bz 2013-06-12 09:00:08 +02:00
David Zbarsky
8c198c4399 Bug 874770 - Always enable OMTA throttling r=nrc 2013-05-22 18:31:03 +08:00
Daniel Holbert
c5ae959774 Bug 864553 part 2: Minor cleanup to formerly-ifdef-MOZ_FLEXBOX code. r=dbaron 2013-05-22 11:44:52 +08:00
Daniel Holbert
cc7305fa0e Bug 864553 part 1: Remove ifdefs for MOZ_FLEXBOX and configure.in MOZ_FLEXBOX chunk. r=dbaron 2013-05-22 11:44:25 +08:00
Boris Zbarsky
f2de87b7cb Bug 851514. Make sure that we add the parent frame before its kids when constructing a scrollable block, so that things will appear in the right order in fixed-pos lists. r=dbaron 2013-05-21 14:15:30 -04:00
Jonathan Watt
c16760065b Bug 870443 - Add warning comment to DoApplyRenderingChangeToTree. r=dholbert
--HG--
extra : rebase_source : d6f6ba5f17f42f4606edc7c89f004d5782de447a
2013-05-12 10:25:10 +01:00
Jonathan Watt
502481f426 Bug 870415 - Simplify invalidation of SVG in DoApplyRenderingChangeToTree. r=dholbert
--HG--
extra : rebase_source : c189f97241b6ef3534c1ddffc2bfc426f892d4a5
2013-05-12 10:15:02 +01:00
Frédéric Wang
32e5e4ebf3 Bug 745131 - Improve how <semantics> determine the visible child. r=karlt
--HG--
rename : layout/mathml/nsMathMLmactionFrame.cpp => layout/mathml/nsMathMLSelectedFrame.cpp
rename : layout/mathml/nsMathMLmactionFrame.h => layout/mathml/nsMathMLSelectedFrame.h
2013-05-10 08:40:44 -04:00
Mats Palmgren
aa60079743 Bug 865602 - FieldSet block may be null for overflow containers. r=roc 2013-04-29 14:11:03 +02:00
Masatoshi Kimura
761bf787f0 Bug 859018 - Remove the MSVC exemption for FAIL_ON_WARNINGS in layout. r=dbaron 2013-04-28 19:02:35 +09:00
Aryeh Gregor
659b807986 Bug 859817 - Remove implicit conversions from raw pointer to already_AddRefed; r=Ms2ger 2013-04-22 14:15:59 +03:00
Gijs Kruitbosch
27cb228e61 Bug 852420 - Suppress NeededToWrapXUL warning for generated content, r=bz
--HG--
extra : rebase_source : e6aa39b0e7ea7faa3c95cd5a4fd5f87058441c16
2013-04-24 13:08:17 +02:00
Jonathan Watt
ca0209b32f Bug 864832 - Get rid of the majority of the remaining nsSVGUtils::InvalidateBounds calls, except for those related to transforms and nsSVGTextFrame2. r=mattwoodrow 2013-04-25 10:18:42 +01:00
Mats Palmgren
871e89e62a Bug 844178 - Make RecomputePosition adjust the CB size as ViewportFrame::Reflow does. r=tn 2013-04-24 18:17:55 +02:00
Cykesiopka
bd3f221ccc Bug 645402 - Remove ToInteger() workarounds in mozilla-central. r=bz 2013-04-24 08:36:09 -04:00
Jonathan Watt
364cd0025f Bug 864771 - Stop calling nsSVGUtils::InvalidateBounds in DoApplyRenderingChangeToTree, and use DLBI instead. r=mattwoodrow 2013-04-24 10:13:28 +01:00
Mats Palmgren
43d861e734 Bug 855898 - Limit ProcessChildren recursion depth to avoid exhausting stack space and crashing. r=bzbarsky 2013-04-23 13:37:18 +02:00
Robert O'Callahan
5667f99ae6 Bug 849996. Check the correct frame for transforms in PushAbsoluteContainingBlock --- it might not be the containing block itself. r=bzbarsky 2013-04-08 16:09:35 +12:00
Daniel Holbert
eef75b0252 Bug 847211: When reparenting style contexts, skip flex-item style fixup if our element is the root of an anonymous subtree. r=bz 2013-04-16 08:33:41 -07:00