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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp

Issue 2015583003: Remove assorted unnecessary includes in core/layout/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 * 20 *
21 */ 21 */
22 22
23 #include "core/layout/LayoutTextFragment.h" 23 #include "core/layout/LayoutTextFragment.h"
24 24
25 #include "core/dom/FirstLetterPseudoElement.h" 25 #include "core/dom/FirstLetterPseudoElement.h"
26 #include "core/dom/PseudoElement.h" 26 #include "core/dom/PseudoElement.h"
27 #include "core/dom/StyleChangeReason.h" 27 #include "core/dom/StyleChangeReason.h"
28 #include "core/dom/Text.h" 28 #include "core/dom/Text.h"
29 #include "core/layout/HitTestResult.h" 29 #include "core/layout/HitTestResult.h"
30 #include "core/layout/LayoutBlock.h"
31 30
32 namespace blink { 31 namespace blink {
33 32
34 LayoutTextFragment::LayoutTextFragment(Node* node, StringImpl* str, int startOff set, int length) 33 LayoutTextFragment::LayoutTextFragment(Node* node, StringImpl* str, int startOff set, int length)
35 : LayoutText(node, str ? str->substring(startOffset, length) : PassRefPtr<St ringImpl>(nullptr)) 34 : LayoutText(node, str ? str->substring(startOffset, length) : PassRefPtr<St ringImpl>(nullptr))
36 , m_start(startOffset) 35 , m_start(startOffset)
37 , m_fragmentLength(length) 36 , m_fragmentLength(length)
38 , m_isRemainingTextLayoutObject(false) 37 , m_isRemainingTextLayoutObject(false)
39 , m_contentString(str) 38 , m_contentString(str)
40 , m_firstLetterPseudoElement(nullptr) 39 , m_firstLetterPseudoElement(nullptr)
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 LayoutObject::updateHitTestResult(result, point); 161 LayoutObject::updateHitTestResult(result, point);
163 162
164 // If we aren't part of a first-letter element, or if we 163 // If we aren't part of a first-letter element, or if we
165 // are part of first-letter but we're the remaining text then return. 164 // are part of first-letter but we're the remaining text then return.
166 if (m_isRemainingTextLayoutObject || !firstLetterPseudoElement()) 165 if (m_isRemainingTextLayoutObject || !firstLetterPseudoElement())
167 return; 166 return;
168 result.setInnerNode(firstLetterPseudoElement()); 167 result.setInnerNode(firstLetterPseudoElement());
169 } 168 }
170 169
171 } // namespace blink 170 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextControl.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTheme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698