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

Unified Diff: Source/core/dom/Node.cpp

Issue 18080016: [CSS Regions] Elements in a region should be assignable to a named flow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Implemented suggestions from esprehn Created 7 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
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 6814c96b974c7e534a18b5ae7e3611e8e49e6477..6e881c0ab9faac23ab1a8f6664f2c86d85eee1e1 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -82,6 +82,7 @@
#include "core/page/Page.h"
#include "core/page/Settings.h"
#include "core/platform/Partitions.h"
+#include "core/rendering/FlowThreadController.h"
#include "core/rendering/RenderBox.h"
#include "wtf/HashSet.h"
#include "wtf/PassOwnPtr.h"
@@ -1193,6 +1194,12 @@ bool Node::canStartSelection() const
return parentOrShadowHostNode() ? parentOrShadowHostNode()->canStartSelection() : true;
}
+bool Node::isRegisteredWithNamedFlow(const FlowThreadController* flowThreadController) const
+{
+ ASSERT(flowThreadController);
+ return flowThreadController->isContentNodeRegisteredWithAnyNamedFlow(this);
esprehn 2013/07/01 18:27:19 Don't pass the flowThreadContorller in, just get i
+}
+
Element* Node::shadowHost() const
{
if (ShadowRoot* root = containingShadowRoot())

Powered by Google App Engine
This is Rietveld 408576698