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

Side by Side Diff: sky/engine/core/rendering/RenderText.cpp

Issue 713073003: remove updateTouchEventTargetRectsIfNeeded (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: moar Created 6 years, 1 month 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 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 for (; previousText; previousText = previousText->previousInPreOrder()) 1179 for (; previousText; previousText = previousText->previousInPreOrder())
1180 if (!isInlineFlowOrEmptyText(previousText)) 1180 if (!isInlineFlowOrEmptyText(previousText))
1181 break; 1181 break;
1182 UChar prev = space; 1182 UChar prev = space;
1183 if (previousText && previousText->isText()) 1183 if (previousText && previousText->isText())
1184 if (StringImpl* previousString = toRenderText(previousText)->text().impl ()) 1184 if (StringImpl* previousString = toRenderText(previousText)->text().impl ())
1185 prev = (*previousString)[previousString->length() - 1]; 1185 prev = (*previousString)[previousString->length() - 1];
1186 return prev; 1186 return prev;
1187 } 1187 }
1188 1188
1189 void RenderText::addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) cons t
1190 {
1191 // Text nodes aren't event targets, so don't descend any further.
1192 }
1193
1194 void RenderText::setTextInternal(PassRefPtr<StringImpl> text) 1189 void RenderText::setTextInternal(PassRefPtr<StringImpl> text)
1195 { 1190 {
1196 ASSERT(text); 1191 ASSERT(text);
1197 m_text = text; 1192 m_text = text;
1198 1193
1199 ASSERT(m_text); 1194 ASSERT(m_text);
1200 1195
1201 m_isAllASCII = m_text.containsOnlyASCII(); 1196 m_isAllASCII = m_text.containsOnlyASCII();
1202 m_canUseSimpleFontCodePath = computeCanUseSimpleFontCodePath(); 1197 m_canUseSimpleFontCodePath = computeCanUseSimpleFontCodePath();
1203 } 1198 }
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 ASSERT(child->prevTextBox() == prev); 1642 ASSERT(child->prevTextBox() == prev);
1648 prev = child; 1643 prev = child;
1649 } 1644 }
1650 ASSERT(prev == m_lastTextBox); 1645 ASSERT(prev == m_lastTextBox);
1651 #endif 1646 #endif
1652 } 1647 }
1653 1648
1654 #endif 1649 #endif
1655 1650
1656 } // namespace blink 1651 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698