Scott Goodson
99fbc97bda
Optimizations for ASTextNode handling of renderer allocation and deallocation.
...
Optimizations for ASDisplayNode handling of bridged property "contentMode", especially for layer-backed nodes.
2015-12-25 01:36:32 -08:00
Scott Goodson
4ca97e2f4d
Optimize string handling for CALayer gravity & UIView content mode. Finally fix protocol rename.
2015-12-24 23:13:50 -08:00
Scott Goodson
928c440b4c
Several small optimizations, especially to _ASPendingState and other hot paths.
2015-12-23 16:38:33 -08:00
Scott Goodson
065625f246
Make ASCollectionView always create an ASCollectionNode. Add visibilityDidChange:, interfaceStateDidChange:fromState:
2015-12-22 21:46:46 -08:00
Adlai Holler
69767d558e
Merge branch 'master' into update-objc
...
Conflicts:
AsyncDisplayKit/Private/ASDisplayNode+FrameworkPrivate.h
2015-12-22 00:28:21 -05:00
Scott Goodson
b8602d1073
Fix ASBasicImageDownloader tests - prevent use of init / new instead of +sharedImageDownloader.
2015-12-20 15:42:57 -08:00
Scott Goodson
97bb05d326
Order-of-magnitude speedup in handling of "disable visibility notifications"
...
Before, it was expensive to check this value, even though it was rarely set.
Now the cost is moved to setting the value, and is made very cheap to check with _hierarchyState.
2015-12-20 12:47:42 -08:00
Scott Goodson
578d0f4f78
Final cleanup for initial version of removing the UIWindow-based render range.
...
The UIWindow mode remains enabled by default, but rendering and the test suite works correctly both enabled and disabled.
2015-12-18 18:47:08 -08:00
Adlai Holler
e202b18db9
Annotate some new stuff
2015-12-13 10:07:14 -08:00
Scott Goodson
872b3588d8
Complete merge of working window removal with ASHierarchyState changes in master.
2015-12-11 22:15:13 -08:00
Scott Goodson
00fe336ae7
Merge branch 'master' into RemoveWorkingWindow
2015-12-11 21:34:45 -08:00
Scott Goodson
271f288a19
Polish ASHierarchyState implementation, fix old comment typos, work on test breakages.
2015-12-06 15:04:47 -08:00
Scott Goodson
840884272d
Introduced ASHierarchyState. Created ASDisplayNode+FrameworkPrivate.h. Fixed deadlock.
2015-12-05 22:20:16 -08:00
Scott Goodson
3b6b48175d
Fix for an incorrect assertion firing when transforming an ASLayoutSpec-positioned node.
2015-12-01 17:49:11 -08:00
Scott Goodson
8bc65a9624
A few more debug changes for the removal of the working window.
2015-12-01 12:01:16 -08:00
Scott Goodson
9669f147ba
Efficiency improvements to consolidate display events for the window-less preload range.
2015-11-30 19:02:16 -08:00
Scott Goodson
7f59beb195
Initial experimental commit with functioning preloading, without the working window.
2015-11-30 19:01:57 -08:00
appleguy
d132416d90
Merge pull request #848 from nguyenhuy/JustifyContentSpaceBetweenAndAround
...
Implement "space between" and "space around" justify content options for stack layout
2015-11-29 21:46:42 -08:00
Scott Goodson
254f55b758
Add locking for ASInterfaceState. Misc. cleanup.
2015-11-29 14:57:43 -08:00
Scott Goodson
936730d46b
ASInterfaceStateVisible is now being driven by a new ASRangeHandlerVisible.
2015-11-29 13:24:42 -08:00
Scott Goodson
ff0e94b4e1
Introduce ASInterfaceState on ASDisplayNode.
...
Later, this will be added to ASViewController. Right now it is not hooked up to drive anything.
It will become the codepath that drives calls like -fetchData and -clearContents.
2015-11-28 18:22:03 -08:00
appleguy
37334273dd
Merge pull request #873 from nguyenhuy/AlignmentWrapper
...
[ASLayoutSpec] Implement horizontal and vertical alignments
2015-11-28 16:24:48 -08:00
Adlai Holler
d273cda2b0
Remove unneeded _block specifier
2015-11-26 10:46:26 -08:00
Adlai Holler
41ecaa7bb2
_ASHierarchyChangeSet: add section change mapping methods, fix section exclusions
2015-11-26 10:42:35 -08:00
Adlai Holler
4bfdd82568
_ASHierarchyChangeSet: Exclude item-level changes that are redundant with section-level changes
2015-11-25 17:18:58 -08:00
Adlai Holler
b5e19a24a9
Consistency
2015-11-24 18:48:07 -08:00
Adlai Holler
2d633f118b
Fix it better
2015-11-24 18:44:10 -08:00
Adlai Holler
6b3f0ada12
Fix table view change coalescing bug
2015-11-24 18:10:59 -08:00
Huy Nguyen
0077c3eec6
Implement horizontal and vertical alignments for stack layout
2015-11-24 20:57:19 +02:00
Huy Nguyen
1162e02b06
Implement "space between" and "space around" options of stack layout justify content
2015-11-16 19:34:08 +02:00
Scott Goodson
2a0b9c8e14
Substantially improve behavior of nested Table & Collection Nodes
...
This ensures memory cleanup happens correctly and introduces a new test project
to support developing new features while stressing tough use cases for correctness.
2015-11-14 15:25:35 -08:00
Scott Goodson
98010c4e16
Include moved UIResponder methods in UIViewBridging Category Implementation.
2015-11-08 00:12:13 -08:00
appleguy
0598935957
Merge pull request #793 from nguyenhuy/ImproveCellNodeRelayout
...
ASCellNode delegate to automatically resize in table & collection when -setNeedsLayout called.
2015-11-01 11:11:32 -08:00
Huy Nguyen
cd31f884dd
Move ASDisplayNodePerformBlockOnMainThread to ASInternalHelpers
2015-10-29 16:09:36 +02:00
Adlai Holler
50485663b9
Never use setAnimationsEnabled: so we don't risk corrupting enabledness
2015-10-28 16:09:56 -07:00
Ethan Nagel
a2bc2074cc
release any CGColor's set while the node is in a pending state
2015-10-28 11:01:01 -07:00
appleguy
2c8626e1f6
Merge pull request #753 from nguyenhuy/DataControllerSortedTransaction
...
Sort edit commands during batch updating of table and collection views
2015-10-26 13:40:06 -07:00
Huy Nguyen
fd0b3aaf52
Revert "Revert "Make ASDisplayNode.name Thread Safe""
...
This reverts commit 906d7c759b471eda67b95574199b6f91d46b6782.
2015-10-26 06:29:01 +02:00
Huy Nguyen
ecc5e1ac83
Remove duplicate steps while coalescing changes in _ASHierarchyChangeSet
2015-10-26 06:22:30 +02:00
Huy Nguyen
0315d628c5
Rename as_inverseCompare to asdk_inverseCompare for prefix consistency
2015-10-26 06:22:30 +02:00
Huy Nguyen
5ea4b1b92d
Implement ASChangeSetDataController.
2015-10-26 06:22:30 +02:00
appleguy
906d7c759b
Revert "Make ASDisplayNode.name Thread Safe"
2015-10-25 19:40:47 -07:00
Adlai Holler
0d53a82985
Remove dead flag
2015-10-24 01:20:42 -07:00
Adlai Holler
55e22d2e57
Clean up more remnants of Old Ways
2015-10-24 01:09:31 -07:00
Adlai Holler
5a8e7daace
Implement ASDisplayNode.name separate from CALayer
2015-10-24 00:56:00 -07:00
Huy Nguyen
5a2fea7c1d
Use bounds and position to layout subnodes, instead of frame because it is not safe in case the transform property constains a non-identity transform.
2015-10-07 21:54:48 +03:00
ricky cancro
89a216b90d
Fixes to baseline stack alignment
...
1) Set the ascender/descender of an ASTextNode when the attributeString is set. Previously ascender/descender were only being computed in `setValuesFromLayoutable` and only when the attribute string was not nil. May make sense to remove the computation from `setValuesFromLayoutable` entirely.
2) Remove ability to allow different children of a stack spec to aling to different baselines. This wasn't working before and I'm not convinced it is possible to do properly/useful enough to invest the time.
3) Have all stack spec run `ASStackBaselinePositionedLayout::compute` to compute the stack's ascender and descender. Even if the stack isn't aligning its children to a baseline, the stack itself may be a child of another stack that IS aligning to a baseline.
2015-10-06 21:41:39 -07:00
Garrett Moon
8a70c8d416
Adds support for disabling and re-enabling should rasterize.
2015-10-06 11:47:13 -07:00
Garrett Moon
b1d03f1d58
Address comments
2015-10-05 16:02:01 -07:00
Garrett Moon
d6c107a896
Fix shouldRasterizeSubnodes skipping setting offset and clipping.
2015-10-05 16:02:01 -07:00