gecko/layout
Cameron McCormack ba08f38dc0 Bug 773296 - Part 18: Add error reporting for invalid variable references. r=dbaron
This adds CSS parser error reporting for parsing of custom properties
and normal properties that have variable references.

When re-parsing a normal property that had a variable reference, we
report any parse error to be at the beginning of the property value.
This is because it is difficult to keep track of where exactly each
variable substitution came from to point to the particular value
that would have caused the parse error.  For example, with this:

  :root {
    var-a: 1px 2px;
    var-b: 3px var(a);
  }
  p {
    margin: var(a) var(b);
  }

we would end up resolving the value of 'margin' to:

  "  1px 2px  3px  1px 2px"

In this string, the parse error occurs when we encounter the final
"2px", but by this point we don't know where that value came from.
So instead we just point to the line on which 'margin' was declared.

We extend ErrorReporter with an OutputError overload that takes the
specific line and column number to use in the error report to get this
right, and we store the line and column number for each token stream
we parse on the nsCSSValueTokenStream object.
2013-12-12 13:09:44 +11:00
..
analysis
base Bug 773296 - Part 16a: Followup to move to using nsCSSValueSharedList in OMTA code. r=roc 2013-12-12 13:09:44 +11:00
build Bug 945091. Part 3: Flatten layout/xul/base/* into layout/xul. r=glandium 2013-12-04 14:06:16 +13:00
doc
forms Bug 937317 - Replace all instance of null cx pushing with AutoSystemCaller. r=bz 2013-12-11 17:51:58 -08:00
generic Bug 937317 - Remove unnecessary AutoSystemCaller usage. r=bz 2013-12-11 17:51:58 -08:00
inspector Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05:00
ipc Merge b2g-inbound to m-c. 2013-12-10 15:38:44 -05:00
mathml Bug 945091. Part 3: Flatten layout/xul/base/* into layout/xul. r=glandium 2013-12-04 14:06:16 +13:00
media Bug 947160 remove MOZ_VP8_ENCODER. r=kinetik 2013-12-06 05:16:00 -08:00
printing Bug 937224 - Part e: Move LOCAL_INCLUDES to moz.build in layout/; r=mshal 2013-11-28 15:23:10 +01:00
reftests Bug 909170 - Add some tests for @supports conditions with tokens after a declaration's priority. r=dbaron 2013-12-12 13:09:39 +11:00
style Bug 773296 - Part 18: Add error reporting for invalid variable references. r=dbaron 2013-12-12 13:09:44 +11:00
svg Bug 943373, part 2 - Use MOZ_THIS_IN_INITIALIZER_LIST in SVG-ish stuff. r=birtles 2013-12-10 08:07:21 -08:00
tables Bug 945091. Part 3: Flatten layout/xul/base/* into layout/xul. r=glandium 2013-12-04 14:06:16 +13:00
tools Bug 922680 - Add ability to run b2g emulator reftests oop, r=jgriffin 2013-12-03 17:02:39 -05:00
xul Bug 947736 - Build modules/libpref/ in unified mode; r=bsmedberg 2013-12-10 18:10:01 -05:00
moz.build Bug 945091. Part 3: Flatten layout/xul/base/* into layout/xul. r=glandium 2013-12-04 14:06:16 +13:00