Kevin Schaaf
5bd4afd6cd
Merge branch '2.x' into perf-opt
2018-11-05 16:34:12 -08:00
Kevin Schaaf
8882c3db24
Merge pull request #5295 from Polymer/strict-template-policy-2.x
...
[2.x] Introduce strictTemplatePolicy
2018-11-05 11:31:39 -08:00
Steven Orvell
c274670456
TemplateStamp: fix TreeWalker
...
IE/older Safari require all arguments.
2018-11-01 15:33:01 -07:00
Steven Orvell
ca03e08df8
Factor telemetry to separate module
...
Also use exclusively in `properties-mixin`
2018-11-01 12:45:08 -07:00
Steven Orvell
0190e330e8
Address review feedback
...
* Uses `window.ShadyCSS.cssBuild` to avoid doing unnecessary work in `processElementStyles`
* Stores the list of active in-use behaviors in a legacy element's `behaviors` property. This only matters in the exotic case when elements with behaviors are extended with more behaviors and previously the list included only the subclasses behaviors (although the element otherwise worked as expected).
2018-10-31 18:03:19 -07:00
Kevin Schaaf
620ae42ed7
Sync with changes made in master.
2018-10-31 16:25:16 -07:00
Kevin Schaaf
10c4e80bfa
Merge branch '2.x' into strict-template-policy-2.x
2018-10-31 14:19:14 -07:00
Kevin Schaaf
763e40d198
Merge branch '2.x' into 5262-kschaaf-legacy-undefined
2018-10-31 10:48:55 -07:00
Steven Orvell
4f223035c3
Adds legacyOptimizations flag
...
Set using `Polymer.setLegacyOptimizations(true)`. This flag enables optimizaitons including, always stripping whitespace from templates and avoiding cloning element templates (assumes no inheritance is used)
Also re-enables dir-mixin.
2018-10-30 18:15:25 -07:00
Kevin Schaaf
09a6d1afda
stripWhitespace
2018-10-26 18:11:35 -07:00
Kevin Schaaf
c421f08d2a
noDirMixin
2018-10-26 18:10:55 -07:00
Kevin Schaaf
2a258182bf
noCloneTemplate
2018-10-26 18:08:13 -07:00
Kevin Schaaf
2f78573357
Fix prototype registration
2018-10-26 18:03:07 -07:00
Kevin Schaaf
f17180341c
Fix telemetry registrations to go eagerly
2018-10-25 18:29:12 -07:00
Kevin Schaaf
c61df6f422
Use TreeWalker for template-stamp.
2018-10-23 15:06:51 -07:00
Kevin Schaaf
527f519c9a
Avoid using mixins for behaviors.
2018-10-19 18:35:25 -07:00
Tomek Wytrębowicz
ffe8f7e8dc
Make event notification handler read the value from currentTarget, ( #5309 )
...
instead of target which may not be bound to any data.
Fixes https://github.com/Polymer/polymer/issues/5308
2018-08-02 11:46:17 +02:00
Kevin Schaaf
dfc8398bad
Revert to legacy template getter, update tests.
2018-07-24 11:47:29 -07:00
Kevin Schaaf
275491e05e
More updates based on code review.
2018-07-23 21:14:05 -07:00
Alexander Marks
04289ac787
Annotate Node parameter as not null.
2018-07-20 22:29:34 -07:00
Alexander Marks
748db7ce2e
Updates for improved type generation.
2018-07-20 22:05:18 -07:00
Kevin Schaaf
ed79071315
Updates based on code review.
2018-07-20 20:29:52 -07:00
Kevin Schaaf
a6331a25eb
Use setting set via global Polymer object.
2018-07-17 17:40:38 -07:00
Kevin Schaaf
ada72d4d83
Implement opt-in strictTemplatePolicy (flag TBD)
...
- disable dom-bind
- disable dom-module re-registration
- require elements with no template to implement null template
- disable templatizer of templates not stamped in trusted polymer template
2018-07-17 17:40:38 -07:00
Kevin Schaaf
c46a38de7c
Add legacy-data-mixin as 1.x->2.x migration aide. Fixes #5262 .
2018-06-20 17:46:19 -07:00
Kevin Schaaf
412bb1e019
Avoid closure warnings.
2018-04-05 14:59:48 -07:00
Kevin Schaaf
616f6662f0
Add ability to define importMeta on legacy elements. Fixes #5163
2018-04-05 14:12:54 -07:00
Kevin Schaaf
c8c9e24de5
Update docs.
2018-04-02 18:31:14 -07:00
Kevin Schaaf
d9d3e43912
Use Polymer.ResolveUrl.pathFromUrl
2018-04-02 18:08:21 -07:00
Kevin Schaaf
2128ebe2ff
Fix test under shadydom. Slight logic refactor.
2018-04-02 16:57:25 -07:00
Kevin Schaaf
f7672da9a7
Add importMeta getter to derive importPath from modules. Fixes #5163
2018-04-02 14:12:57 -07:00
Tim van der Lippe
89ab7385d2
Add note about performance vs correctness
2018-03-31 15:57:16 +02:00
Tim van der Lippe
8d97d1311e
Merge branch 'master' into rewrite-expression-parser
2018-03-31 15:52:33 +02:00
Peter Burns
91d4aebaa6
Pass through fourth namespace param on attributeChangedCallback.
2018-03-30 15:33:39 -07:00
Tim van der Lippe
2a6c0a2a10
Returning null in template should nullify parent template
2018-03-15 11:30:06 +01:00
Kevin Schaaf
5422bef956
Merge pull request #5125 from Polymer/auto-detect-attribute-capitalization
...
Automatically detect capitalized HTML attributes
2018-03-13 11:52:46 -07:00
Tim van der Lippe
0573d483c4
[ci skip] Add clarifying comment
2018-03-07 12:30:06 +01:00
Tim van der Lippe
bb698192a8
Merge branch 'master' into rewrite-expression-parser
2018-03-02 16:51:47 +01:00
Tim van der Lippe
d45dd5750c
Put attribute capitalization fix in property-effects
2018-02-28 13:12:09 +01:00
Kevin Schaaf
9c6e6fec8d
Merge pull request #5112 from Polymer/TimvdLippe-patch-1
...
Add note to updateStyles regarding updates to CSS mixins
2018-02-26 15:53:59 -08:00
Tim van der Lippe
211c223fb9
Update docs and types
2018-02-25 16:13:16 +01:00
Tim van der Lippe
ab93ab0892
Correct import paths
2018-02-25 16:07:38 +01:00
Tim van der Lippe
0f0ccdade8
Only store method once for dynamic functions
2018-02-25 16:07:05 +01:00
Tim van der Lippe
a4d4eb9a8f
Move strict-binding-parser to lib/mixins
2018-02-25 16:05:15 +01:00
Tim van der Lippe
57a142367b
Extract to a mixin
2018-02-25 16:04:40 +01:00
Tim van der Lippe
7eb1a627f9
Refactor to be functional and add more tests
2018-02-25 16:01:47 +01:00
Tim van der Lippe
79d05b8a22
Fix linter warnings
2018-02-25 16:01:47 +01:00
Tim van der Lippe
13b834dfb7
Rewrite expression parser to state machine
2018-02-25 16:01:47 +01:00
Daniel Freedman
a37ba7e2cb
fix tests and add dependency import
2018-02-21 14:08:21 -08:00
Daniel Freedman
8f8135b2de
fix typings
2018-02-21 12:52:00 -08:00