Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Unified Diff: third_party/WebKit/public/web/WebRange.h

Issue 2260283002: Adapt WebRange to only deal with EphemeralRanges. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added back the isNull case, sorry. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebRange.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebRange.h
diff --git a/third_party/WebKit/public/web/WebRange.h b/third_party/WebKit/public/web/WebRange.h
index 36dcbea6b118f7c46b3a0a93937796e1cb8f06f2..a80d5456478f0b9f2401fcaa5f031f1251f4a812 100644
--- a/third_party/WebKit/public/web/WebRange.h
+++ b/third_party/WebKit/public/web/WebRange.h
@@ -32,12 +32,15 @@
#define WebRange_h
#include "public/platform/WebCommon.h"
+#if BLINK_IMPLEMENTATION
+#include "core/editing/EphemeralRange.h"
+#endif
namespace blink {
+class LocalFrame;
class Range;
class WebString;
-class LocalFrame;
class WebRange final {
public:
@@ -50,9 +53,9 @@ public:
bool isNull() const { return m_start == -1 && m_end == -1; }
#if BLINK_IMPLEMENTATION
- WebRange(Range*);
+ WebRange(const EphemeralRange&);
- Range* createRange(LocalFrame*) const;
+ EphemeralRange createEphemeralRange(LocalFrame*) const;
#endif
private:
« no previous file with comments | « third_party/WebKit/Source/web/WebRange.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698