Index: third_party/grpc/src/objective-c/RxLibrary/GRXWriter+Immediate.m |
diff --git a/third_party/WebKit/Source/core/html/HTMLWBRElement.cpp b/third_party/grpc/src/objective-c/RxLibrary/GRXWriter+Immediate.m |
similarity index 66% |
copy from third_party/WebKit/Source/core/html/HTMLWBRElement.cpp |
copy to third_party/grpc/src/objective-c/RxLibrary/GRXWriter+Immediate.m |
index 2523cfc5388c72e5e587d4d8b6f7f72e285437c7..1d55eb35293ecddf4757b792d8b0a764fb533a9d 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLWBRElement.cpp |
+++ b/third_party/grpc/src/objective-c/RxLibrary/GRXWriter+Immediate.m |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (C) 2014 Google Inc. All rights reserved. |
+ * |
+ * Copyright 2015, Google Inc. |
+ * All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -26,27 +28,37 @@ |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ * |
*/ |
-#include "core/html/HTMLWBRElement.h" |
+#import "GRXWriter+Immediate.h" |
+ |
+#import "GRXImmediateWriter.h" |
+ |
+@implementation GRXWriter (Immediate) |
-#include "core/HTMLNames.h" |
-#include "core/layout/LayoutWordBreak.h" |
++ (instancetype)writerWithEnumerator:(NSEnumerator *)enumerator { |
+ return [GRXImmediateWriter writerWithEnumerator:enumerator]; |
+} |
-namespace blink { |
++ (instancetype)writerWithValueSupplier:(id (^)())block { |
+ return [GRXImmediateWriter writerWithValueSupplier:block]; |
+} |
-using namespace HTMLNames; |
++ (instancetype)writerWithContainer:(id<NSFastEnumeration>)container { |
+ return [GRXImmediateWriter writerWithContainer:container]; |
+} |
-inline HTMLWBRElement::HTMLWBRElement(Document& document) |
- : HTMLElement(wbrTag, document) |
-{ |
++ (instancetype)writerWithValue:(id)value { |
+ return [GRXImmediateWriter writerWithValue:value]; |
} |
-DEFINE_NODE_FACTORY(HTMLWBRElement) |
++ (instancetype)writerWithError:(NSError *)error { |
+ return [GRXImmediateWriter writerWithError:error]; |
+} |
-LayoutObject* HTMLWBRElement::createLayoutObject(const ComputedStyle& style) |
-{ |
- return new LayoutWordBreak(this); |
++ (instancetype)emptyWriter { |
+ return [GRXImmediateWriter emptyWriter]; |
} |
-} // namespace blink |
+@end |