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

Unified Diff: third_party/WebKit/Source/core/dom/Range.h

Issue 2776103002: Make RenderedRectsForMarkers() to ignore disconnected nodes. (Closed)
Patch Set: change expected image Created 3 years, 9 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
Index: third_party/WebKit/Source/core/dom/Range.h
diff --git a/third_party/WebKit/Source/core/dom/Range.h b/third_party/WebKit/Source/core/dom/Range.h
index 295565840782f37a5314ca24455dd1d6858f541e..75fc4813ea2a8634c2730336af420c1d62ed7356 100644
--- a/third_party/WebKit/Source/core/dom/Range.h
+++ b/third_party/WebKit/Source/core/dom/Range.h
@@ -30,6 +30,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
#include "core/dom/RangeBoundaryPoint.h"
+#include "core/editing/EphemeralRange.h"
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntRect.h"
#include "platform/heap/Handle.h"
@@ -140,8 +141,8 @@ class CORE_EXPORT Range final : public GarbageCollected<Range>,
Node* pastLastNode() const;
// Not transform-friendly
- void textRects(Vector<IntRect>&, bool useSelectionHeight = false) const;
IntRect boundingBox() const;
+ IntRect computeBoundingBox(const EphemeralRange&) const;
// Transform-friendly
void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false) const;

Powered by Google App Engine
This is Rietveld 408576698