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

Unified Diff: Source/core/editing/EditingTestBase.cpp

Issue 1203613003: Make inSameLine() in VisibleUnits.cpp to work with positions in composed tree (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-24T17:52:54 Get rid of redundant explict in RenderedPosition Created 5 years, 6 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 | « Source/core/editing/EditingTestBase.h ('k') | Source/core/editing/PositionWithAffinity.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/EditingTestBase.cpp
diff --git a/Source/core/editing/EditingTestBase.cpp b/Source/core/editing/EditingTestBase.cpp
index d22b8d7e0fb046feb7439be5d14418472fa7a593..f437d241b9198e4e4bfe8f7630dab41b2deeea6d 100644
--- a/Source/core/editing/EditingTestBase.cpp
+++ b/Source/core/editing/EditingTestBase.cpp
@@ -8,6 +8,7 @@
#include "core/dom/Document.h"
#include "core/dom/Range.h"
#include "core/dom/Text.h"
+#include "core/frame/FrameView.h"
#include "core/html/HTMLElement.h"
#include "core/testing/DummyPageHolder.h"
@@ -48,6 +49,11 @@ PassRefPtrWillBeRawPtr<ShadowRoot> EditingTestBase::setShadowContent(const char*
return createShadowRootForElementWithIDAndSetInnerHTML(document(), "host", shadowContent);
}
+void EditingTestBase::updateLayoutAndStyleForPainting()
+{
+ document().view()->updateLayoutAndStyleForPainting();
+}
+
Position EditingTestBase::positionInDOMTree(Node& anchor, int offset)
{
return Position(&anchor, offset, Position::PositionIsOffsetInAnchor);
« no previous file with comments | « Source/core/editing/EditingTestBase.h ('k') | Source/core/editing/PositionWithAffinity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698