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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2516263002: Changed ETextTransform to an enum class and renamed its members (Closed)
Patch Set: Created 4 years 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 * 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. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 table = toLayoutTable(afterChild); 315 table = toLayoutTable(afterChild);
316 } else { 316 } else {
317 table = LayoutTable::createAnonymousWithParent(this); 317 table = LayoutTable::createAnonymousWithParent(this);
318 children->insertChildNode(this, table, beforeChild); 318 children->insertChildNode(this, table, beforeChild);
319 } 319 }
320 table->addChild(newChild); 320 table->addChild(newChild);
321 } else { 321 } else {
322 children->insertChildNode(this, newChild, beforeChild); 322 children->insertChildNode(this, newChild, beforeChild);
323 } 323 }
324 324
325 if (newChild->isText() && newChild->style()->textTransform() == CAPITALIZE) 325 if (newChild->isText() &&
326 newChild->style()->textTransform() == ETextTransform::Capitalize)
326 toLayoutText(newChild)->transformText(); 327 toLayoutText(newChild)->transformText();
327 328
328 // SVG creates layoutObjects for <g display="none">, as SVG requires children 329 // SVG creates layoutObjects for <g display="none">, as SVG requires children
329 // of hidden <g>s to have layoutObjects - at least that's how our 330 // of hidden <g>s to have layoutObjects - at least that's how our
330 // implementation works. 331 // implementation works.
331 // Consider: 332 // Consider:
332 // <g display="none"><foreignObject><body style="position: relative">FOO... 333 // <g display="none"><foreignObject><body style="position: relative">FOO...
333 // - layerTypeRequired() would return true for the <body>, creating a new 334 // - layerTypeRequired() would return true for the <body>, creating a new
334 // Layer 335 // Layer
335 // - when the document is painted, both layers are painted. The <body> layer 336 // - when the document is painted, both layers are painted. The <body> layer
(...skipping 3137 matching lines...) Expand 10 before | Expand all | Expand 10 after
3473 const blink::LayoutObject* root = object1; 3474 const blink::LayoutObject* root = object1;
3474 while (root->parent()) 3475 while (root->parent())
3475 root = root->parent(); 3476 root = root->parent();
3476 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3477 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3477 } else { 3478 } else {
3478 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); 3479 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)");
3479 } 3480 }
3480 } 3481 }
3481 3482
3482 #endif 3483 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698