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

Side by Side Diff: Source/WebCore/rendering/RenderObject.cpp

Issue 10383285: Merge 116174 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 7 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/WebCore/rendering/RenderInline.cpp ('k') | Source/WebCore/rendering/RenderRuby.cpp » ('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 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 continue; 1911 continue;
1912 1912
1913 if (blockChildrenOnly && !child->isRenderBlock()) 1913 if (blockChildrenOnly && !child->isRenderBlock())
1914 continue; 1914 continue;
1915 1915
1916 #if ENABLE(FULLSCREEN_API) 1916 #if ENABLE(FULLSCREEN_API)
1917 if (child->isRenderFullScreen() || child->isRenderFullScreenPlaceholder( )) 1917 if (child->isRenderFullScreen() || child->isRenderFullScreenPlaceholder( ))
1918 continue; 1918 continue;
1919 #endif 1919 #endif
1920 1920
1921 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyle(style() ); 1921 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisp lay(style(), child->style()->display());
1922 if (style()->specifiesColumns()) { 1922 if (style()->specifiesColumns()) {
1923 if (child->style()->specifiesColumns()) 1923 if (child->style()->specifiesColumns())
1924 newStyle->inheritColumnPropertiesFrom(style()); 1924 newStyle->inheritColumnPropertiesFrom(style());
1925 if (child->style()->columnSpan()) 1925 if (child->style()->columnSpan())
1926 newStyle->setColumnSpan(ColumnSpanAll); 1926 newStyle->setColumnSpan(ColumnSpanAll);
1927 } 1927 }
1928 1928
1929 // Preserve the position style of anonymous block continuations as they can have relative position when 1929 // Preserve the position style of anonymous block continuations as they can have relative position when
1930 // they contain block descendants of relative positioned inlines. 1930 // they contain block descendants of relative positioned inlines.
1931 if (child->isRelPositioned() && toRenderBlock(child)->isAnonymousBlockCo ntinuation()) 1931 if (child->isRelPositioned() && toRenderBlock(child)->isAnonymousBlockCo ntinuation())
1932 newStyle->setPosition(child->style()->position()); 1932 newStyle->setPosition(child->style()->position());
1933 1933
1934 newStyle->setDisplay(child->style()->display());
1935 child->setStyle(newStyle.release()); 1934 child->setStyle(newStyle.release());
1936 } 1935 }
1937 } 1936 }
1938 1937
1939 void RenderObject::updateFillImages(const FillLayer* oldLayers, const FillLayer* newLayers) 1938 void RenderObject::updateFillImages(const FillLayer* oldLayers, const FillLayer* newLayers)
1940 { 1939 {
1941 // Optimize the common case 1940 // Optimize the common case
1942 if (oldLayers && !oldLayers->next() && newLayers && !newLayers->next() && (o ldLayers->image() == newLayers->image())) 1941 if (oldLayers && !oldLayers->next() && newLayers && !newLayers->next() && (o ldLayers->image() == newLayers->image()))
1943 return; 1942 return;
1944 1943
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
2892 { 2891 {
2893 if (object1) { 2892 if (object1) {
2894 const WebCore::RenderObject* root = object1; 2893 const WebCore::RenderObject* root = object1;
2895 while (root->parent()) 2894 while (root->parent())
2896 root = root->parent(); 2895 root = root->parent();
2897 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 2896 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
2898 } 2897 }
2899 } 2898 }
2900 2899
2901 #endif 2900 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderInline.cpp ('k') | Source/WebCore/rendering/RenderRuby.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698