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

Side by Side Diff: Source/core/dom/Text.cpp

Issue 16599003: :hover style not applied on hover if its display property is different from original style's (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch (fixed test that was expected to fail and is now passing) Created 7 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
« no previous file with comments | « Source/core/dom/Text.h ('k') | Source/core/dom/shadow/InsertionPoint.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 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 *
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 { 263 {
264 if (isSVGText(this) || isSVGShadowText(this)) 264 if (isSVGText(this) || isSVGShadowText(this))
265 return new (arena) RenderSVGInlineText(this, dataImpl()); 265 return new (arena) RenderSVGInlineText(this, dataImpl());
266 266
267 if (style->hasTextCombine()) 267 if (style->hasTextCombine())
268 return new (arena) RenderCombineText(this, dataImpl()); 268 return new (arena) RenderCombineText(this, dataImpl());
269 269
270 return new (arena) RenderText(this, dataImpl()); 270 return new (arena) RenderText(this, dataImpl());
271 } 271 }
272 272
273 void Text::attach() 273 void Text::attach(const AttachContext& context)
274 { 274 {
275 createTextRendererIfNeeded(); 275 createTextRendererIfNeeded();
276 CharacterData::attach(); 276 CharacterData::attach(context);
277 } 277 }
278 278
279 void Text::recalcTextStyle(StyleChange change) 279 void Text::recalcTextStyle(StyleChange change)
280 { 280 {
281 RenderText* renderer = toRenderText(this->renderer()); 281 RenderText* renderer = toRenderText(this->renderer());
282 282
283 if (change != NoChange && renderer) 283 if (change != NoChange && renderer)
284 renderer->setStyle(document()->styleResolver()->styleForText(this)); 284 renderer->setStyle(document()->styleResolver()->styleForText(this));
285 285
286 if (needsStyleRecalc()) { 286 if (needsStyleRecalc()) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 result.appendLiteral("; "); 341 result.appendLiteral("; ");
342 result.appendLiteral("value="); 342 result.appendLiteral("value=");
343 result.append(s); 343 result.append(s);
344 } 344 }
345 345
346 strncpy(buffer, result.toString().utf8().data(), length - 1); 346 strncpy(buffer, result.toString().utf8().data(), length - 1);
347 } 347 }
348 #endif 348 #endif
349 349
350 } // namespace WebCore 350 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Text.h ('k') | Source/core/dom/shadow/InsertionPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698