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

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

Issue 17471008: Rework compositor touch hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CR feedback - accumulate LayoutRects instead of IntRects, disable when page isn't composited. Also… Created 7 years, 5 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 | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/RenderView.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 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 while ((previousText = previousText->previousInPreOrder())) 1361 while ((previousText = previousText->previousInPreOrder()))
1362 if (!isInlineFlowOrEmptyText(previousText)) 1362 if (!isInlineFlowOrEmptyText(previousText))
1363 break; 1363 break;
1364 UChar prev = ' '; 1364 UChar prev = ' ';
1365 if (previousText && previousText->isText()) 1365 if (previousText && previousText->isText())
1366 if (StringImpl* previousString = toRenderText(previousText)->text().impl ()) 1366 if (StringImpl* previousString = toRenderText(previousText)->text().impl ())
1367 prev = (*previousString)[previousString->length() - 1]; 1367 prev = (*previousString)[previousString->length() - 1];
1368 return prev; 1368 return prev;
1369 } 1369 }
1370 1370
1371 void RenderText::addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentLayer, const LayoutPoint& layerOffset) const
1372 {
1373 // Text nodes aren't event targets, so don't descend any further.
1374 }
1375
1371 void applyTextTransform(const RenderStyle* style, String& text, UChar previousCh aracter) 1376 void applyTextTransform(const RenderStyle* style, String& text, UChar previousCh aracter)
1372 { 1377 {
1373 if (!style) 1378 if (!style)
1374 return; 1379 return;
1375 1380
1376 switch (style->textTransform()) { 1381 switch (style->textTransform()) {
1377 case TTNONE: 1382 case TTNONE:
1378 break; 1383 break;
1379 case CAPITALIZE: 1384 case CAPITALIZE:
1380 makeCapitalized(&text, previousCharacter); 1385 makeCapitalized(&text, previousCharacter);
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1921 1926
1922 SecureTextTimer* secureTextTimer = gSecureTextTimers->get(this); 1927 SecureTextTimer* secureTextTimer = gSecureTextTimers->get(this);
1923 if (!secureTextTimer) { 1928 if (!secureTextTimer) {
1924 secureTextTimer = new SecureTextTimer(this); 1929 secureTextTimer = new SecureTextTimer(this);
1925 gSecureTextTimers->add(this, secureTextTimer); 1930 gSecureTextTimers->add(this, secureTextTimer);
1926 } 1931 }
1927 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); 1932 secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
1928 } 1933 }
1929 1934
1930 } // namespace WebCore 1935 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698