gecko/dom
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
..
activities Bug 935561 - [Messaging] Attach icon is kept like pressed when tapping on it and cancel selecting a content to attach. r=fabrice 2013-11-22 13:45:05 +01:00
alarm Bug 937258 - Part a: Remove empty makefiles; r=gps 2013-11-28 15:25:40 +01:00
apps Bug 853356: backout p1 2013-12-10 01:00:18 -05:00
asmjscache Bug 941830 - Extend asm.js compiled code caching to Workers (r=bent) 2013-12-03 13:31:30 -06:00
audiochannel Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05:00
base Bug 937317 - Root around GC call GetIncumbentGlobal. r=bz 2013-12-11 17:51:58 -08:00
battery
bindings Bug 937317 - Root around GC call GetIncumbentGlobal. r=bz 2013-12-11 17:51:58 -08:00
bluetooth Bug 948247 - [bluedroid] Race condition in BluetoothSocket may result in segmentation fault, r=echou 2013-12-11 16:53:11 +08:00
browser-element Bug 941468 - Only load forms.js once per-process. r=yxl 2013-12-08 23:28:47 +08:00
camera Merge b2g-inbound to m-c. 2013-12-10 15:38:44 -05:00
cellbroadcast
contacts Bug 697343 - Create the results array in the content scope. r=bz 2013-12-09 19:01:42 -02:00
datastore Bug 947134 - Enable datastore/tests/test_certifiedApp.html for B2G Emulator, r=ehsan 2013-12-06 16:40:49 +00:00
devicestorage Bug 853356: backout p3 2013-12-10 01:03:21 -05:00
downloads Bug 938023 - Download API (Asynchronous Responses for API Tests). r=fabrice, gwagner 2013-11-27 23:18:17 -08:00
encoding Bug 947736 - Build modules/libpref/ in unified mode; r=bsmedberg 2013-12-10 18:10:01 -05:00
file Bug 932119 - convert nsIAtom to nsString in QuotaManager and IndexedDB, r=janv 2013-11-25 16:53:48 +00:00
fmradio Bug 937258 - Part a: Remove empty makefiles; r=gps 2013-11-28 15:25:40 +01:00
gamepad Bug 940780 - Build dom/gamepad in unified mode. r=bzbarsky 2013-11-21 09:22:25 -05:00
icc Bug 946557 - Bring test_icc_info.js back in automation. r=allstars.chh 2013-12-05 11:56:21 +08:00
identity
imptests Bug 943728 - Convert several resource install using double quotes to INSTALL_TARGETS and editor/libeditor/html/tests to mochitest manifest. r=gps,r=mshal 2013-12-03 06:34:21 +09:00
indexedDB Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05:00
inputmethod Bug 944681 - Don't fire inputcontextchange on selection change from mouseup. r=yxl 2013-12-10 10:14:39 -05:00
interfaces Bug 853356: backout p3 2013-12-10 01:03:21 -05:00
ipc Bug 937317 - Make TabChildGlobal implement nsIGlobalObject. r=bz 2013-12-11 17:51:56 -08:00
locales Bug 773296 - Part 18: Add error reporting for invalid variable references. r=dbaron 2013-12-12 13:09:44 +11:00
media Bug 853356: backout p2 2013-12-10 01:03:23 -05:00
messages Backed out 5 changesets (bug 811635) for B2G mochitest-8 orange. 2013-12-03 10:06:59 -05:00
mobilemessage Bug 946942 - Update APN settings on start if MMS call is already connected. r=gene 2013-12-06 12:01:30 -08:00
network Bug 944225 - Part 4: Add set/getPreferredNetworkType() API (tests). r=hsinyi 2013-12-11 11:15:25 +08:00
nfc
payment Bug 924565: Part 1: Declare nsIObserver QI in DOMRequestHelper child classes. r=fabrice 2013-11-20 13:33:10 +08:00
permission Bug 697343 - Introduce a slice hook to allow optimizing Array.prototype.slice for Proxies etc. r=jandem,bz 2013-12-05 20:07:24 +01:00
phonenumberutils Bug 924565: Part 1: Declare nsIObserver QI in DOMRequestHelper child classes. r=fabrice 2013-11-20 13:33:10 +08:00
plugins Bug 948003 - Mark GeckoAppShell.loadPluginClass() as used from JNI r=blassey 2013-12-11 15:53:06 -06:00
power Bug 937258 - Part a: Remove empty makefiles; r=gps 2013-11-28 15:25:40 +01:00
promise Bug 936700 - Worker Preferences cache. r=bent 2013-11-24 11:27:15 -08:00
push Bug 924565: Part 1: Declare nsIObserver QI in DOMRequestHelper child classes. r=fabrice 2013-11-20 13:33:10 +08:00
quota Bug 932119 - convert nsIAtom to nsString in QuotaManager and IndexedDB, r=janv 2013-11-25 16:53:48 +00:00
settings
speakermanager Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05:00
src Bug 937317 - Remove unnecessary AutoSystemCaller usage. r=bz 2013-12-11 17:51:58 -08:00
system Bug 944225 - Part 3: Add set/getPreferredNetworkType() API (ril). r=hsinyi 2013-12-11 11:15:03 +08:00
telephony Merge b2g-inbound to m-c. 2013-12-05 17:53:41 -05:00
tests Bug 924089 - 'Enable SharedWorker by default', r=ehsan+khuey. 2013-12-09 11:57:40 -08:00
time Bug 937258 - Part a: Remove empty makefiles; r=gps 2013-11-28 15:25:40 +01:00
voicemail Bug 946079 - Part 3: Remove testLevel1Indicator from test case. r=vyang 2013-12-05 18:39:22 +08:00
wappush
webidl Bug 946564 part 2. Make window._content chromeonly and define it in WebIDL. r=peterv 2013-12-09 10:34:04 -05:00
wifi Backed out 5 changesets (bug 811635) for B2G mochitest-8 orange. 2013-12-03 10:06:59 -05:00
workers Merge inbound to m-c. 2013-12-11 13:32:11 -05:00
moz.build Bug 938023 - Implement the download API : Part 2, implementation. r=auswerk 2013-11-27 23:18:08 -08:00