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

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

Issue 883443003: Remove PseudoId. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/frame/Window.idl ('k') | sky/engine/core/rendering/style/RenderStyle.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 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 if (oldStyle && !areCursorsEqual(oldStyle, style())) { 1355 if (oldStyle && !areCursorsEqual(oldStyle, style())) {
1356 if (LocalFrame* frame = this->frame()) 1356 if (LocalFrame* frame = this->frame())
1357 frame->eventHandler().scheduleCursorUpdate(); 1357 frame->eventHandler().scheduleCursorUpdate();
1358 } 1358 }
1359 } 1359 }
1360 1360
1361 void RenderObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) 1361 void RenderObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly)
1362 { 1362 {
1363 // FIXME: We could save this call when the change only affected non-inherite d properties. 1363 // FIXME: We could save this call when the change only affected non-inherite d properties.
1364 for (RenderObject* child = slowFirstChild(); child; child = child->nextSibli ng()) { 1364 for (RenderObject* child = slowFirstChild(); child; child = child->nextSibli ng()) {
1365 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) 1365 if (!child->isAnonymous())
1366 continue; 1366 continue;
1367 1367
1368 if (blockChildrenOnly && !child->isRenderBlock()) 1368 if (blockChildrenOnly && !child->isRenderBlock())
1369 continue; 1369 continue;
1370 1370
1371 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisp lay(style(), child->style()->display()); 1371 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisp lay(style(), child->style()->display());
1372 updateAnonymousChildStyle(child, newStyle.get()); 1372 updateAnonymousChildStyle(child, newStyle.get());
1373 child->setStyle(newStyle.release()); 1373 child->setStyle(newStyle.release());
1374 } 1374 }
1375 } 1375 }
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 { 2076 {
2077 if (object1) { 2077 if (object1) {
2078 const blink::RenderObject* root = object1; 2078 const blink::RenderObject* root = object1;
2079 while (root->parent()) 2079 while (root->parent())
2080 root = root->parent(); 2080 root = root->parent();
2081 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 2081 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
2082 } 2082 }
2083 } 2083 }
2084 2084
2085 #endif 2085 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/frame/Window.idl ('k') | sky/engine/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698