Commit Graph

  • 1baa239389 Remove isTextNode optimization Emil Sjolander 2016-11-08 09:07:48 -08:00
  • b50090a04e NSAssert -> NSCAssert. Dustin Shahidehpour 2016-11-08 07:08:12 -08:00
  • ba2905dd1d Add C# test script for macOS Kazuki Sakamoto 2016-11-07 19:31:29 -08:00
  • 997088ffbb Fix broken unit tests. Dustin Shahidehpour 2016-11-07 14:26:11 -08:00
  • ffb90e6ff2 Remove check for both modes being exact as this will never happen Emil Sjolander 2016-11-07 14:25:32 -08:00
  • 1c22a1aa53 Fix xplat CSSLayoutTests to compile on platforms without death tests. Rachit Siamwalla 2016-11-07 13:55:52 -08:00
  • 7082734c6b Kill border API. Dustin Shahidehpour 2016-11-07 13:35:03 -08:00
  • 366a61af8d Take care of pixel rounding for UIView. Dustin Shahidehpour 2016-11-07 13:32:27 -08:00
  • 18fe0959f0 Add inline definition for Microsoft Visual Studio 安秋亮 2016-11-07 12:54:03 -08:00
  • 1ffce3edb1 Sanitize results from sizeThatFits:, fix bug where only one of the measure modes is CSSMeasureModeExactly. Dustin Shahidehpour 2016-11-07 06:52:16 -08:00
  • 6165d7a2be Make CSSNode#measure final, cache more correct methodid Andy Street 2016-11-07 05:59:47 -08:00
  • 01a3881426 Lazy create children list when first child is added Andy Street 2016-11-07 05:40:11 -08:00
  • 9c1896043d Assert that node can have measure function <==> node is a leaf node Andy Street 2016-11-07 05:28:22 -08:00
  • 0f822bbef2 Remove overflow and flex from API. Dustin Shahidehpour 2016-11-04 13:26:33 -07:00
  • e00e30ca15 Only mark Nodes dirty if an actual node is removed. Dustin Shahidehpour 2016-11-03 13:30:34 -07:00
  • b938017ccf Add Sizing API that doesn't change view's frame. Dustin Shahidehpour 2016-11-03 13:00:02 -07:00
  • 630ae0972b Exposing layout cache check publicly Georgiy Kassabli 2016-11-03 10:41:27 -07:00
  • d8662805d5 Fix incorrect results from css_usesFlexbox Dustin Shahidehpour 2016-11-03 09:28:37 -07:00
  • 26e7490fc9 Make CSSNodeRef readonly. Dustin Shahidehpour 2016-11-03 09:01:01 -07:00
  • d94363ea7e Cleanup Measure method. Dustin Shahidehpour 2016-11-02 17:05:06 -07:00
  • af5e6771d7 Prevent array out of bound access Lukas Wöhrl 2016-11-01 20:47:23 -07:00
  • ced779b259 Prevent crash when accessing child count, but child list is NULL. Dustin Shahidehpour 2016-10-31 12:41:09 -07:00
  • a65e6930cf Some small simplifications for function return values Emil Sjolander 2016-10-31 11:05:24 -07:00
  • 267e17f23a void* -> CSSNodeRef in CSSNodeList Emil Sjolander 2016-10-31 11:04:48 -07:00
  • df6368e048 Add complex layout to benchmark Emil Sjolander 2016-10-31 10:31:52 -07:00
  • ba20d75992 Fix benchmark Emil Sjolander 2016-10-31 10:31:50 -07:00
  • 620cb3f507 Remove static method declarations. Dustin Shahidehpour 2016-10-27 12:45:07 -07:00
  • 3201e24780 Fix build and clean up Kazuki Sakamoto 2016-10-27 11:38:32 -07:00
  • 2cac77eaa1 Set layout outputs on java object from C Emil Sjolander 2016-10-27 10:52:12 -07:00
  • 46823878a5 BREAKING - Make first parameter of measure and print functions CSSNodeRef instead of just context Emil Sjolander 2016-10-27 10:52:11 -07:00
  • b59ce09109 BREAKING - Change measure() api to remove need for MeasureOutput allocation Emil Sjolander 2016-10-27 10:52:09 -07:00
  • c34299edc9 Reset java state in jni reset method Emil Sjolander 2016-10-26 07:24:44 -07:00
  • 1ba81d9ec7 Prevent GC and avoid new Kazuki Sakamoto 2016-10-26 06:51:39 -07:00
  • d6d817c142 Dont go down through JNI to figure out that no margin/padding/border/position was set Emil Sjolander 2016-10-26 02:57:07 -07:00
  • 01c2ac3369 Don't preallocate child lists Scott Wolchok 2016-10-25 17:10:24 -07:00
  • 0cc1b83569 Remove nanosleep from benchmark measure and increase loop count Emil Sjolander 2016-10-25 16:11:37 -07:00
  • c8d77b2aae Remove children from the end to prevent copying over Lukas Wöhrl 2016-10-25 12:19:55 -07:00
  • 01507044b3 Suggest the compiler to inline smaller functions Emil Sjolander 2016-10-25 10:31:56 -07:00
  • 2168d68007 Update CSSNodeFree for C#, Java and Objective-C Kazuki Sakamoto 2016-10-25 07:38:06 -07:00
  • 4d0e657653 Fix bug in canUseCachedMeasurement causing unneeded double measure Emil Sjolander 2016-10-25 07:33:58 -07:00
  • 4452c7be5c Remove no longer needed Spacing.cs Kazuki Sakamoto 2016-10-25 06:59:01 -07:00
  • 15f5c4cea5 Reduce duplicate function calls Emil Sjolander 2016-10-24 12:26:57 -07:00
  • 97fef59f96 Dont hold strong reference to java objects creating a cycle Emil Sjolander 2016-10-24 12:26:56 -07:00
  • e9b9973cae Dont create a spacing object for returning margin, padding, border, and position Emil Sjolander 2016-10-24 10:35:43 -07:00
  • 69c374e74e Simplify memory model between managed and unmanaged memory Emil Sjolander 2016-10-24 10:35:41 -07:00
  • 4c57029a28 Remove flex shorthand getter because it doesnt make a lot of sense Emil Sjolander 2016-10-24 03:34:55 -07:00
  • c28429efc8 Dont override flexShrink, flexGrow, and flexBasis with shorthand flex Emil Sjolander 2016-10-24 03:34:54 -07:00
  • ab4ce535b9 Forward gLogger output to adb on android platforms Emil Sjolander 2016-10-23 10:56:11 -07:00
  • 7fee10691c Add test to assert default values Emil Sjolander 2016-10-23 10:40:30 -07:00
  • 4d964bdbc3 Update README Kazuki Sakamoto 2016-10-23 10:27:34 -07:00
  • ef538a45cd Add generated tests Kazuki Sakamoto 2016-10-23 10:27:32 -07:00
  • dc5e613285 gentest for Java and C# Kazuki Sakamoto 2016-10-23 10:27:30 -07:00
  • 1488f822c3 Fix C# delegate calling conventions mattpodwysocki 2016-10-22 09:51:17 -07:00
  • 7673de823f Clean up the vm_args override and use_cxx_libraries instead Michael Lee 2016-10-20 15:21:15 -07:00
  • 26bcc1e072 Remove view.isHidden optimization from sizing/layout. Dustin Shahidehpour 2016-10-20 09:27:49 -07:00
  • 2e090cb1c8 Fixup format file for hopefully the last time in a while and re-format code Emil Sjolander 2016-10-20 06:18:23 -07:00
  • daed6f5b8a Introduce CSSLayoutSetLogger to pass the print result to C# side Kazuki Sakamoto 2016-10-19 11:01:24 -07:00
  • e4ad7d3c12 Change flex basis to override main axis size Emil Sjolander 2016-10-19 06:39:34 -07:00
  • fa2ffc72a4 Use typedefs from header Emil Sjolander 2016-10-18 10:19:08 -07:00
  • d1d9326fa4 Use switch instead of ifelse chain Emil Sjolander 2016-10-18 10:01:16 -07:00
  • 9c3970dd75 Fix flex-shrink when shrinking to zero size Emil Sjolander 2016-10-18 09:19:22 -07:00
  • 6152ca46c8 Tell the java wrapper to use the fbcode java Michael Lee 2016-10-18 08:04:57 -07:00
  • 9fb1b29f14 Remove default: usage to ensure compiler can help with missing cases Emil Sjolander 2016-10-18 06:52:08 -07:00
  • 82dafa75cf Move absolute layout calculation out into seperate function Emil Sjolander 2016-10-17 12:12:34 -07:00
  • eb4f1cdc96 Fix justify content + min dimension when children overflow Emil Sjolander 2016-10-17 08:01:26 -07:00
  • 501ed57784 Only look at computed style if key was not set inline Emil Sjolander 2016-10-17 06:27:59 -07:00
  • bfb9b926b3 Move flex basis calculation out into seperate function Emil Sjolander 2016-10-17 05:28:50 -07:00
  • b21efa45e6 Fix justify content + min dimension usage in root Emil Sjolander 2016-10-17 04:07:54 -07:00
  • c619c0be5a Proper fix for broken android builds. Dustin Shahidehpour 2016-10-14 17:38:27 -07:00
  • 63d3e8f3f3 Add uikit tests to Travis. Dustin Shahidehpour 2016-10-14 16:51:28 -07:00
  • 770fa6d254 Turn off the apple_test getting pulled into end-to-end tests Michael Lee 2016-10-14 16:13:10 -07:00
  • eedee80f25 Add Test to make sure associated objects live/die with lifetime of UIView. Dustin Shahidehpour 2016-10-14 14:52:22 -07:00
  • 0254e3e97f Don't call sizeThatFits: if measure modes are exact. Dustin Shahidehpour 2016-10-14 14:49:42 -07:00
  • 05ba3a2565 Do not measure the view if it is hidden. Dustin Shahidehpour 2016-10-14 14:22:49 -07:00
  • 89440f630f Add Testing to uikit. Dustin Shahidehpour 2016-10-14 13:25:24 -07:00
  • 832d07902e Modify unittest Kazuki Sakamoto 2016-10-14 07:00:50 -07:00
  • b45a7e3737 Don't assume a node with a measure function is a leaf node Emil Sjolander 2016-10-14 04:35:46 -07:00
  • 14009ec470 Rename C test target to match pattern of other test targets Emil Sjolander 2016-10-13 11:33:42 -07:00
  • 203e3dc9b8 Compatibility with Apple TVOS Georgiy Kassabli 2016-10-13 10:46:22 -07:00
  • 7548164edb Clean up MeasureFunc and PrintFunc Kazuki Sakamoto 2016-10-13 07:52:46 -07:00
  • 722bfb9032 Align C# implementation with Java Kazuki Sakamoto 2016-10-13 07:52:44 -07:00
  • 2a8a4e10c6 Update readme adding UIKit and fixing things that have changed Emil Sjolander 2016-10-13 06:21:48 -07:00
  • 8df9320f4c Fix build with -Wmissing-prototypes Scott Wolchok 2016-10-12 21:12:09 -07:00
  • df6b4d3682 Add tests for java jni bindings Emil Sjolander 2016-10-12 09:55:04 -07:00
  • 8939bcb96d UIView category Emil Sjolander 2016-10-12 09:32:40 -07:00
  • d3fc24e842 Implement SetPosition Kazuki Sakamoto 2016-10-12 09:08:34 -07:00
  • 7f6b942146 Move java rules into java directory Emil Sjolander 2016-10-12 09:02:02 -07:00
  • 29fa232129 Remove tests for CSSNodeDEPRECATED Emil Sjolander 2016-10-12 05:59:12 -07:00
  • 41b64478c4 Rename init() -> reinit() to be more in line with what it now does Emil Sjolander 2016-10-12 03:44:54 -07:00
  • 23acf2156f Rename reset() -> free() to be more in line with what it now does Emil Sjolander 2016-10-12 03:44:53 -07:00
  • 1de914737a Automatically init native memory when allocating java wrapper Emil Sjolander 2016-10-12 03:44:52 -07:00
  • 033658196f JNI version is the default, its name should reflect that Emil Sjolander 2016-10-12 03:44:50 -07:00
  • 136ec25e8c Remove xcode_public_headers_symlinks from open source Emil Sjolander 2016-10-12 03:16:31 -07:00
  • 62dba4c741 Clearly mark java CSSNode as deprecated. It will go away very soon Emil Sjolander 2016-10-12 02:49:37 -07:00
  • 871a7cf310 Move csharp tests into csharp folder Emil Sjolander 2016-10-11 06:57:37 -07:00
  • cdf4ee1e59 Move benchmark buck file into benchmark directory Emil Sjolander 2016-10-11 05:43:54 -07:00
  • 588d2c91ba Remove unused buck rule Emil Sjolander 2016-10-11 04:53:53 -07:00
  • f61fbd269e Add finalizer to release any unreleased native memory Emil Sjolander 2016-10-11 04:48:47 -07:00
  • d506e6ab94 Enable running within robolectric Emil Sjolander 2016-10-08 06:20:12 -07:00
  • 56f6efdecf Introduce CSSAssertSetFailFunc and CSSAsserFail to throw managed exception Kazuki Sakamoto 2016-10-07 12:31:06 -07:00