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

Side by Side Diff: Source/core/rendering/RenderText.cpp

Issue 19614004: Compositor hit test performance improvement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk Created 7 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
« no previous file with comments | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/svg/RenderSVGModelObject.h » ('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 * (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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 while ((previousText = previousText->previousInPreOrder())) 1288 while ((previousText = previousText->previousInPreOrder()))
1289 if (!isInlineFlowOrEmptyText(previousText)) 1289 if (!isInlineFlowOrEmptyText(previousText))
1290 break; 1290 break;
1291 UChar prev = ' '; 1291 UChar prev = ' ';
1292 if (previousText && previousText->isText()) 1292 if (previousText && previousText->isText())
1293 if (StringImpl* previousString = toRenderText(previousText)->text().impl ()) 1293 if (StringImpl* previousString = toRenderText(previousText)->text().impl ())
1294 prev = (*previousString)[previousString->length() - 1]; 1294 prev = (*previousString)[previousString->length() - 1];
1295 return prev; 1295 return prev;
1296 } 1296 }
1297 1297
1298 void RenderText::addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentLayer, const LayoutPoint& layerOffset) const 1298 void RenderText::addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) cons t
1299 { 1299 {
1300 // Text nodes aren't event targets, so don't descend any further. 1300 // Text nodes aren't event targets, so don't descend any further.
1301 } 1301 }
1302 1302
1303 void applyTextTransform(const RenderStyle* style, String& text, UChar previousCh aracter) 1303 void applyTextTransform(const RenderStyle* style, String& text, UChar previousCh aracter)
1304 { 1304 {
1305 if (!style) 1305 if (!style)
1306 return; 1306 return;
1307 1307
1308 switch (style->textTransform()) { 1308 switch (style->textTransform()) {
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1853 1853
1854 SecureTextTimer* secureTextTimer = gSecureTextTimers->get(this); 1854 SecureTextTimer* secureTextTimer = gSecureTextTimers->get(this);
1855 if (!secureTextTimer) { 1855 if (!secureTextTimer) {
1856 secureTextTimer = new SecureTextTimer(this); 1856 secureTextTimer = new SecureTextTimer(this);
1857 gSecureTextTimers->add(this, secureTextTimer); 1857 gSecureTextTimers->add(this, secureTextTimer);
1858 } 1858 }
1859 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); 1859 secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
1860 } 1860 }
1861 1861
1862 } // namespace WebCore 1862 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/svg/RenderSVGModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698