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

Side by Side Diff: third_party/WebKit/Source/core/editing/VisibleUnits.cpp

Issue 2010473002: Eliminate unnecessary includes and pointless forward declarations in LayoutBlock.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make it compile in release mode too Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLTableElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "core/layout/api/LayoutViewItem.h" 59 #include "core/layout/api/LayoutViewItem.h"
60 #include "core/layout/api/LineLayoutAPIShim.h" 60 #include "core/layout/api/LineLayoutAPIShim.h"
61 #include "core/layout/api/LineLayoutItem.h" 61 #include "core/layout/api/LineLayoutItem.h"
62 #include "core/layout/line/InlineIterator.h" 62 #include "core/layout/line/InlineIterator.h"
63 #include "core/layout/line/InlineTextBox.h" 63 #include "core/layout/line/InlineTextBox.h"
64 #include "core/paint/PaintLayer.h" 64 #include "core/paint/PaintLayer.h"
65 #include "platform/Logging.h" 65 #include "platform/Logging.h"
66 #include "platform/RuntimeEnabledFeatures.h" 66 #include "platform/RuntimeEnabledFeatures.h"
67 #include "platform/heap/Handle.h" 67 #include "platform/heap/Handle.h"
68 #include "platform/text/TextBoundaries.h" 68 #include "platform/text/TextBoundaries.h"
69 #include "platform/text/TextBreakIterator.h"
69 70
70 namespace blink { 71 namespace blink {
71 72
72 template <typename PositionType> 73 template <typename PositionType>
73 static PositionType canonicalizeCandidate(const PositionType& candidate) 74 static PositionType canonicalizeCandidate(const PositionType& candidate)
74 { 75 {
75 if (candidate.isNull()) 76 if (candidate.isNull())
76 return PositionType(); 77 return PositionType();
77 DCHECK(isVisuallyEquivalentCandidate(candidate)); 78 DCHECK(isVisuallyEquivalentCandidate(candidate));
78 PositionType upstream = mostBackwardCaretPosition(candidate); 79 PositionType upstream = mostBackwardCaretPosition(candidate);
(...skipping 3174 matching lines...) Expand 10 before | Expand all | Expand 10 after
3253 { 3254 {
3254 return previousPositionOfAlgorithm<EditingStrategy>(visiblePosition, rule); 3255 return previousPositionOfAlgorithm<EditingStrategy>(visiblePosition, rule);
3255 } 3256 }
3256 3257
3257 VisiblePositionInFlatTree previousPositionOf(const VisiblePositionInFlatTree& vi siblePosition, EditingBoundaryCrossingRule rule) 3258 VisiblePositionInFlatTree previousPositionOf(const VisiblePositionInFlatTree& vi siblePosition, EditingBoundaryCrossingRule rule)
3258 { 3259 {
3259 return previousPositionOfAlgorithm<EditingInFlatTreeStrategy>(visiblePositio n, rule); 3260 return previousPositionOfAlgorithm<EditingInFlatTreeStrategy>(visiblePositio n, rule);
3260 } 3261 }
3261 3262
3262 } // namespace blink 3263 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLTableElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698