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

Side by Side Diff: Source/core/dom/Position.cpp

Issue 421293004: Move Node::enclosingBlockFlowElement() to htmlediting.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 return true; 941 return true;
942 } 942 }
943 } 943 }
944 944
945 if (isHTMLBRElement(*deprecatedNode()) && pos.isCandidate()) 945 if (isHTMLBRElement(*deprecatedNode()) && pos.isCandidate())
946 return true; 946 return true;
947 947
948 if (isHTMLBRElement(*pos.deprecatedNode()) && isCandidate()) 948 if (isHTMLBRElement(*pos.deprecatedNode()) && isCandidate())
949 return true; 949 return true;
950 950
951 if (deprecatedNode()->enclosingBlockFlowElement() != pos.deprecatedNode()->e nclosingBlockFlowElement()) 951 if (enclosingBlockFlowElement(*deprecatedNode()) != enclosingBlockFlowElemen t(*pos.deprecatedNode()))
leviw_travelin_and_unemployed 2014/07/28 21:39:56 !inSameContainingBlockFlowElement(*deprecatedNode(
leviw_travelin_and_unemployed 2014/07/28 21:39:56 !inSameContainingBlockFlowElement(*deprecatedNode(
Inactive 2014/07/28 21:47:11 Done.
952 return true; 952 return true;
953 953
954 if (deprecatedNode()->isTextNode() && !inRenderedText()) 954 if (deprecatedNode()->isTextNode() && !inRenderedText())
955 return false; 955 return false;
956 956
957 if (pos.deprecatedNode()->isTextNode() && !pos.inRenderedText()) 957 if (pos.deprecatedNode()->isTextNode() && !pos.inRenderedText())
958 return false; 958 return false;
959 959
960 int thisRenderedOffset = renderedOffset(); 960 int thisRenderedOffset = renderedOffset();
961 int posRenderedOffset = pos.renderedOffset(); 961 int posRenderedOffset = pos.renderedOffset();
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 pos.showTreeForThis(); 1304 pos.showTreeForThis();
1305 } 1305 }
1306 1306
1307 void showTree(const blink::Position* pos) 1307 void showTree(const blink::Position* pos)
1308 { 1308 {
1309 if (pos) 1309 if (pos)
1310 pos->showTreeForThis(); 1310 pos->showTreeForThis();
1311 } 1311 }
1312 1312
1313 #endif 1313 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698