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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 #include "core/html/HTMLFrameOwnerElement.h" 75 #include "core/html/HTMLFrameOwnerElement.h"
76 #include "core/html/HTMLStyleElement.h" 76 #include "core/html/HTMLStyleElement.h"
77 #include "core/html/RadioNodeList.h" 77 #include "core/html/RadioNodeList.h"
78 #include "core/inspector/InspectorCounters.h" 78 #include "core/inspector/InspectorCounters.h"
79 #include "core/page/ContextMenuController.h" 79 #include "core/page/ContextMenuController.h"
80 #include "core/page/EventHandler.h" 80 #include "core/page/EventHandler.h"
81 #include "core/page/Frame.h" 81 #include "core/page/Frame.h"
82 #include "core/page/Page.h" 82 #include "core/page/Page.h"
83 #include "core/page/Settings.h" 83 #include "core/page/Settings.h"
84 #include "core/platform/Partitions.h" 84 #include "core/platform/Partitions.h"
85 #include "core/rendering/FlowThreadController.h"
85 #include "core/rendering/RenderBox.h" 86 #include "core/rendering/RenderBox.h"
86 #include "wtf/HashSet.h" 87 #include "wtf/HashSet.h"
87 #include "wtf/PassOwnPtr.h" 88 #include "wtf/PassOwnPtr.h"
88 #include "wtf/RefCountedLeakCounter.h" 89 #include "wtf/RefCountedLeakCounter.h"
89 #include "wtf/UnusedParam.h" 90 #include "wtf/UnusedParam.h"
90 #include "wtf/Vector.h" 91 #include "wtf/Vector.h"
91 #include "wtf/text/CString.h" 92 #include "wtf/text/CString.h"
92 #include "wtf/text/StringBuilder.h" 93 #include "wtf/text/StringBuilder.h"
93 94
94 using namespace std; 95 using namespace std;
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 if (renderer()) { 1187 if (renderer()) {
1187 RenderStyle* style = renderer()->style(); 1188 RenderStyle* style = renderer()->style();
1188 // We allow selections to begin within an element that has -webkit-user- select: none set, 1189 // We allow selections to begin within an element that has -webkit-user- select: none set,
1189 // but if the element is draggable then dragging should take priority ov er selection. 1190 // but if the element is draggable then dragging should take priority ov er selection.
1190 if (style->userDrag() == DRAG_ELEMENT && style->userSelect() == SELECT_N ONE) 1191 if (style->userDrag() == DRAG_ELEMENT && style->userSelect() == SELECT_N ONE)
1191 return false; 1192 return false;
1192 } 1193 }
1193 return parentOrShadowHostNode() ? parentOrShadowHostNode()->canStartSelectio n() : true; 1194 return parentOrShadowHostNode() ? parentOrShadowHostNode()->canStartSelectio n() : true;
1194 } 1195 }
1195 1196
1197 bool Node::isRegisteredWithNamedFlow(const FlowThreadController* flowThreadContr oller) const
1198 {
1199 ASSERT(flowThreadController);
1200 return flowThreadController->isContentNodeRegisteredWithAnyNamedFlow(this);
esprehn 2013/07/01 18:27:19 Don't pass the flowThreadContorller in, just get i
1201 }
1202
1196 Element* Node::shadowHost() const 1203 Element* Node::shadowHost() const
1197 { 1204 {
1198 if (ShadowRoot* root = containingShadowRoot()) 1205 if (ShadowRoot* root = containingShadowRoot())
1199 return root->host(); 1206 return root->host();
1200 return 0; 1207 return 0;
1201 } 1208 }
1202 1209
1203 Node* Node::deprecatedShadowAncestorNode() const 1210 Node* Node::deprecatedShadowAncestorNode() const
1204 { 1211 {
1205 if (ShadowRoot* root = containingShadowRoot()) 1212 if (ShadowRoot* root = containingShadowRoot())
(...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after
2730 node->showTreeForThis(); 2737 node->showTreeForThis();
2731 } 2738 }
2732 2739
2733 void showNodePath(const WebCore::Node* node) 2740 void showNodePath(const WebCore::Node* node)
2734 { 2741 {
2735 if (node) 2742 if (node)
2736 node->showNodePathForThis(); 2743 node->showNodePathForThis();
2737 } 2744 }
2738 2745
2739 #endif 2746 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698